-
Notifications
You must be signed in to change notification settings - Fork 11
/
index.html
80 lines (60 loc) · 2.52 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
---
layout: main
published: true
---
<h1>Welcome to #DCFemTech</h1>
<p><em>Resistance is futile.</em></p>
<p>{% include about_text.html %}</p>
<h3>This Month's Events</h3>
<div id="calendar"></div>
<script type="text/javascript">
$(document).ready(function() {
// page is now ready, initialize the calendar...
$('#calendar').fullCalendar({
eventSources: [ {
url: 'https://www.google.com/calendar/feeds/7nffm8fujjn1gim5auqnqbbr24%40group.calendar.google.com/public/basic',
className: 'DCFemTech'
},
{
url: 'https://www.google.com/calendar/feeds/project101dc%40gmail.com/public/basic',
className: 'Project101'
}
]
});
var fetch_meetups = function(){
var groups = ['Ladies-Who-Code-Washington-DC','Girl-Develop-It-DC', 'dc-pyladies', 'Women-Who-Code-DC' ];
var api_url = 'http://api.meetup.com/2/events?order=time&key=2721217a7241b22132f3f30c715f64&group_urlname=NAME&callback=?';
for (i in groups){
var group_name = groups[i];
$.getJSON(api_url.replace('NAME', group_name),
function(data, text_status, jqxhr){
var events = [];
for (e in data['results']) {
var event = data['results'][e];
var date = new Date(event['time']).toString();
var o = {
'title': event['group']['name'] + ' - ' + event['name'],
'start': date,
'url': event['event_url'],
'className': event['group']['urlname'].toLowerCase()
};
events.push(o);
}
$('#calendar').fullCalendar('addEventSource', events);
}
)
}
}
fetch_meetups();
});
</script>
<script type="text/javascript" src="scripts/ui.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-55201529-1', 'auto');
ga('require', 'displayfeatures');
ga('send', 'pageview');
</script>