forked from timd/sheffieldgeeks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
256 lines (213 loc) · 10.7 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
"http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:event="http://purl.org/NET/c4dm/event.owl#" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:dc="http://purl.org/dc/elements/1.1/">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>sheffieldgeek: what’s on</title>
<link charset="utf-8" href="media/css/reset.css" media="screen" rel="stylesheet" type="text/css" />
<link charset="utf-8" href="media/css/core.css" media="screen" rel="stylesheet" type="text/css" />
<link charset="utf-8" href="media/css/events.css" media="screen" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="media/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
//<![CDATA[
$(document).ready(function() {
Date.prototype.endOfMonth = function() {
var then = new Date(this);
// Set the time as late as possible.
then.setHours(23);
then.setMinutes(59);
then.setSeconds(59);
then.setMilliseconds(999);
// Work out the last day of the month.
then.setDate(29);
while(then.getMonth() == this.getMonth()) {
then.setDate(then.getDate() + 1);
}
then.setDate(then.getDate() - 1);
return then;
}
Date.prototype.startOfMonth = function() {
var then = new Date(this);
then.setHours(0);
then.setMinutes(0);
then.setSeconds(0);
then.setMilliseconds(0);
then.setDate(1);
return then;
}
Date.prototype.parseRelative = function(string) {
var now = new Date(),
offset = /^(First|Second|Third|Fourth) /i,
meetupDay = / ((Mon|Tues|Wednes|Thurs|Fri|Sat|Sun)day)$/i,
dayNumber = { 'sunday': 0, 'monday': 1, 'tuesday': 2, 'wednesday': 3, 'thursday': 4, 'friday': 5, 'saturday': 6 },
modifierNumber = { 'first': 0, 'second': 1, 'third': 2, 'fourth': 3 };
if(offset.test(string)) {
var modifiers = offset.exec(string),
modifierName = modifiers[1].toLowerCase(),
modifier = modifierNumber[modifierName],
days = meetupDay.exec(string),
dayName = days[1].toLowerCase(),
day = dayNumber[dayName];
countBackwards = new RegExp('^' + modifierName + ' Last ' + dayName + '$', 'i');
if(countBackwards.test(string)) {
var then = now.endOfMonth();
while(true) {
while(then.getDay() != day) {
then.setDate(then.getDate() - 1);
}
for(var i = 0; i < modifier; i++) {
then.setDate(then.getDate() - 7);
}
if(then.getTime() > now.getTime()) {
break;
}
then.setMonth(then.getMonth() + 1);
then = then.endOfMonth();
}
return then;
} else {
var then = now.startOfMonth();
while(true) {
while(then.getDay() != day) {
then.setDate(then.getDate() + 1);
}
for(var i = 0; i < modifier; i++) {
then.setDate(then.getDate() + 7);
}
if(then.getTime() > now.getTime()) {
break;
}
then.setMonth(then.getMonth() + 1);
then = then.startOfMonth();
}
return then;
}
}
}
function showNextDate(event) {
var when = $(event.target).children('.when'),
then = (new Date()).parseRelative(when.text());
if(then) {
when.data('when:original', when.text());
when.addClass('date');
if(then.toDateString() == (new Date()).toDateString()) {
when.text('Next: Today!');
} else {
when.text('Next: ' + then.toDateString())
}
}
}
function showOriginal(event) {
var when = $(event.target).children('.when');
if(when.data('when:original') != "") {
when.removeClass('date');
when.text(when.data('when:original'));
}
}
$(".events li").each(function(index, element) {
$(element).hover(showNextDate, showOriginal);
})
});
//]]>
</script>
</head>
<body>
<h1>sheffieldgeeks: what’s on</h1>
<article>
<section>
<header><h2>Monthly</h2></header>
<ol class="events">
<li typeof="event:Event" id="geeksinthepub" about="http://www.gitpub.org.uk/">
<h2 rel="event:agent"><a typeof="foaf:Group" property="foaf:name" rel="foaf:homepage" href="http://www.gitpub.org.uk/">Geeks In The Pub</a></h2>
<p class="who">Everyone</p>
<p property="event:Time" class="when">Monthly - first Wednesday</p>
</li>
<li typeof="event:Event" id="shrug" about="http://shrug.org">
<h2 rel="event:agent"><a typeof="foaf:Group" property="foaf:name" rel="foaf:homepage" href="http://shrug.org">Sheffield Ruby Users</a></h2>
<p class="who">Developers</p>
<p property="event:Time" class="when">Monthly - second Monday</p>
</li>
<li typeof="event:Event" id="pysheff" about="https://twitter.com/pysheff">
<h2 rel="event:agent"><a typeof="foaf:Group" property="foaf:name" rel="foaf:homepage" href="https://twitter.com/pysheff">Python Sheffield</a></h2>
<p class="who">Developers</p>
<p property="event:Time" class="when">Monthly - last Tuesday</p>
</li>
<li typeof="event:Event" id="firstplay" about="http://firstplaysheffield.tumblr.com">
<h2 rel="event:agent"><a typeof="foaf:Group" property="foaf:name" rel="foaf:homepage" href="http://firstplaysheffield.tumblr.com">First Play Sheffield</a></h2>
<p class="who">Everyone</p>
<p property="event:Time" class="when">Monthly - third Thursday</p>
</li>
<li typeof="event:Event" id="dotnet" about="https://twitter.com/dotnetsheff">
<h2 rel="event:agent"><a typeof="foaf:Group" property="foaf:name" rel="foaf:homepage" href="https://twitter.com/dotnetsheff">dot Net Sheffield</a></h2>
<p class="who">Developers</p>
<p property="event:Time" class="when">Monthly - first Thursday</p>
</li>
<li typeof="event:Event" id="wpsheffield" about="https://twitter.com/sheffieldword">
<h2 rel="event:agent"><a typeof="foaf:Group" property="foaf:name" rel="foaf:homepage" href="https://twitter.com/sheffieldword">WordPress Sheffield</a></h2>
<p class="who">Developers</p>
<p property="event:Time" class="when">Monthly - second Tuesday</p>
</li>
<li typeof="event:Event" id="hardwarehackers" about="https://groups.google.com/forum/?hl=en&fromgroups#!forum/sheffield-hardware-hackers">
<h2 rel="event:agent"><a typeof="foaf:Group" property="foaf:name" rel="foaf:homepage" href="https://groups.google.com/forum/?hl=en&fromgroups#!forum/sheffield-hardware-hackers">Hardware Hackers</a></h2>
<p class="who">Hackers & Makers</p>
<p property="event:Time" class="when">Monthly - Last Monday</p>
</li>
<li typeof="event:Event" id="opendata" about="https://groups.google.com/forum/?hl=en&fromgroups=#!forum/opendatasheffield">
<h2 rel="event:agent"><a typeof="foaf:Group" property="foaf:name" rel="foaf:homepage" href="https://groups.google.com/forum/?hl=en&fromgroups=#!forum/opendatasheffield">Open Data</a></h2>
<p class="who">Everyone</p>
<p property="event:Time" class="when">TBC</p>
</li>
<li typeof="event:Event" id="openrightsgroup" about="http://twitter.com/orgshef">
<h2 rel="event:agent"><a typeof="foaf:Group" property="foaf:name" rel="foaf:homepage" href="http://twitter.com/orgshef">Open Rights Group</a></h2>
<p class="who">Everyone</p>
<p property="event:Time" class="when">TBC</p>
</li>
<li typeof="event:Event" id="php" about="http://twitter.com/shefphp">
<h2 rel="event:agent"><a typeof="foaf:Group" property="foaf:name" rel="foaf:homepage" href="http://twitter.com/shefphp">PHP</a></h2>
<p class="who">Developers</p>
<p property="event:Time" class="when">TBC</p>
</li>
<li typeof="event:Event" id="raspi" about="http://twitter.com/guru">
<h2 rel="event:agent"><a typeof="foaf:Group" property="foaf:name" rel="foaf:homepage" href="http://shefjam.eventbrite.com/">Raspberry Jam</a></h2>
<p class="who">Everyone</p>
<p property="event:Time" class="when">Monthly - Last Wednesday</p>
</li>
<li typeof="event:Event" id="startup" about="https://groups.google.com/forum/?hl=en&fromgroups=#!forum/startup-club-sheffield">
<h2 rel="event:agent"><a typeof="foaf:Group" property="foaf:name" rel="foaf:homepage" href="https://groups.google.com/forum/?hl=en&fromgroups=#!forum/startup-club-sheffield">Startup Club</a></h2>
<p class="who">Developers, Hackers</p>
<p property="event:Time" class="when">1st Friday & 3rd Thursday</p>
</li>
<li typeof="event:Event" id="startup" about="http://dorkbotsheffield.lurk.org/about/">
<h2 rel="event:agent"><a typeof="foaf:Group" property="foaf:name" rel="foaf:homepage" href="http://dorkbotsheffield.lurk.org/">Dorkbot Sheffield</a></h2>
<p class="who">Everyone</p>
<p property="event:Time" class="when">Monthlyish</p>
</li>
<li id="add_event">
<a href="/editing.html">Add or update your event</a>
</li>
</ol>
</section>
</article>
<section>
<article>
<h1>Events Calendar</h1>
<p>Events can be automatically added to the calendar by sending a regular calendar invitation to [email protected].</p>
<p> </p>
</article>
<iframe src="https://www.google.com/calendar/embed?height=400&wkst=1&bgcolor=%23FFFFFF&src=events%40thegistfoundation.org&color=%232F6309&ctz=Europe%2FLondon" style=" border-width:0 " width="742" height="400" frameborder="0" scrolling="no"></iframe>
</section>
<footer>
<p class="footer" about="http://sheffieldgeeks.org.uk/">Idea stolen from <a href="http://edinburgh2.com/">edinburgh2.com</a> which is a <a href="http://sneeu.com/">sneeu.com</a> thing. <a href="http://sheffieldgeeks.org.uk/" property="dc:title" rel="dc:identifier">sheffieldgeeks.org.uk</a> is maintained by <span rel="dc:creator"><a typeof="foaf:Person" about="" rel="foaf:homepage" property="foaf:name" href="http://adoptioncurve.net/">Tim Duckett</a></span>. If I got some details wrong it'd be great if you could <a href="./editing.html">update them</a>.</p>
</footer>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-1131882-9']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>