forked from brooklynjs/brooklynjs.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
320 lines (292 loc) · 9.24 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
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>BrooklynJS | The world's most popular programming language, in New York's most popular borough</title>
<meta name="description" content="BrooklynJS | a JavaScript meetup for New York's favorite borough">
<meta name="viewport" content="width=device-width">
<style>
body {
padding: 0;
background: #222;
color: #fff;
font-family: "Helvetica Neue", Helvetica, sans-serif;
font-weight: 300;
font-size: 125%;
letter-spacing: .015em;
}
footer {
text-align: center;
font-size: .7em;
width: 500px;
margin: 50px auto;
}
header {
width: 500px;
margin: 20px auto;
background: #222;
font-weight: bold;
font-size: 72px;
text-align: left;
border-top: 4px solid #fff;
line-height: 68px;
position: relative;
}
header span {
position: absolute;
top: 7px;
height: 72px;
width: 72px;
border-radius: 50%;
line-height: 72px;
font-size: 60px;
text-align: center;
background: #f7df1e;
color: #222;
}
header .j {
right: 80px;
}
header .s {
right: 0;
}
article {
width: 500px;
margin: 20px auto;
}
article p {
border: 1px solid #fff;
margin: 60px 0;
font-weight: bold;
padding: 20px;
text-align: center;
}
ol {
list-style-type: none;
list-style-position: inside;
text-align: left;
margin: 0 auto;
padding: 0 0 0 90px;
}
time {
color: #999;
position: absolute;
font-size: 16px;
left: -125px;
top: 20px;
width: 100px;
text-align: right;
}
.stop {
position: relative;
padding-left: 30px;
}
.stop:before {
content: "";
width: 12px;
height: 12px;
position: absolute;
background-color: #222;
border: 3px solid #fff;
border-radius: 50%;
display: block;
left: -9px;
top: 22px;
}
.end.stop:before {
background-color: #fff;
}
.walk {
border-left: 8px dotted #666;
margin: -12px 0 -25px -4px;
padding: 30px 0 40px 26px;
}
.ride {
border-left: 8px solid #f7df1e;
margin: -17px 0 -25px -4px;
height: 60px;
}
.speaker {
position: relative;
padding-left: 30px;
}
.speaker:before {
content: "";
width: 8px;
height: 8px;
position: absolute;
background-color: #f7df1e;
display: block;
left: 2px;
top: 25px;
}
small {
font-size: 16px;
color: #999;
display: block;
}
a {
color: #ddd;
text-decoration: none;
border-bottom: 1px dotted;
}
</style>
<script>
var then = new Date(2015,4,21)
var days = 'Sunday Monday Tuesday Wednesday Thursday Friday Saturday'.split(' ')
var months = 'January February March April May June July August September October November December'.split(' ')
function suffixed(number) {
if (number > 9 && number < 21)
return number + "th"
var lastDigit = number % 10
switch (lastDigit) {
case 1: return number + "st"
case 2: return number + "nd"
case 3: return number + "rd"
default: return number + "th"
}
}
function longEventDate() {
var weekday = days[then.getDay()]
var month = months[then.getMonth()]
var date = month + " " + suffixed(then.getDate())
document.write([weekday, date, "at 7pm"].join(", "))
}
function shortEventDate() {
document.write((then.getMonth()+1) + "/" + then.getDate())
}
function timeLeft() {
var now = new Date
var n = 0 | (then - now) / 86400000
document.write(
n > 1 ? n + " days" :
n == 1 ? "1 day" :
n == 0 ? "A while" : ""
)
}
function speakerTime() {
speakerTime.i = -~speakerTime.i
document.write("7:" + speakerTime.i + "0p")
}
</script>
</head>
<body>
<header>
Brooklyn
<span class="j">J</span>
<span class="s">S</span>
</header>
<article>
<p>
PLANNED DISRUPTION<br>
<script>longEventDate()</script><br><br>
Please follow the directions below.
</p>
<ol>
<li class="end stop">
<time>now</time>
<small>See the event board to</small>
<div><a href="http://brooklynjs19.peatix.com">Get your ticket</a> and <a href="http://brooklynjs19.peatix.com">tell your friends</a></div>
</li>
<li class="ride"></li>
<li class="stop">
<time>
<script>timeLeft()</script>
</time>
<small>Nothing to do but</small>
<div>Wait patiently</div>
</li>
<li class="ride"></li>
<li class="end stop">
<time><script>shortEventDate()</script></time>
<small>Make your way to our awesome venue,</small>
<div><a href="//61local.com">61 Local</a> on <a href="//www.google.com/maps?q=61+Bergen+St+11201">Bergen St.</a></div>
</li>
<li class="ride"></li>
<li class="end stop">
<time></time>
<small>Maybe come early and geek out for some</small>
<div><a href="http://brooklynjs19.peatix.com">Boroughgramming</a></div>
</li>
<li class="walk">
<small>Open the gray door in back, and</small>
<div>Walk upstairs</div>
</li>
<li class="end stop">
<time>7:00p</time>
<small>Grab a seat in time for</small>
<div>Introduction and kickoff</div>
</li>
<li class="ride"></li>
<li class="speaker">
<time><script>speakerTime()</script></time>
<!--
To add yourself to this slot, change the following two lines
and add a short description paragraph in the pull request.
-->
<small>Listen to our first speaker, or better yet</small>
<div><a href="https://github.com/brooklynjs/brooklynjs.github.io/edit/master/index.html">BE OUR FIRST SPEAKER</a></div>
</li>
<li class="ride"></li>
<li class="speaker">
<time><script>speakerTime()</script></time>
<!--
To add yourself to this slot, change the following two lines
and add a short description paragraph in the pull request.
-->
<small>Listen to our second speaker, or better yet</small>
<div><a href="https://github.com/brooklynjs/brooklynjs.github.io/edit/master/index.html">BE OUR SECOND SPEAKER</a></div>
</li>
<li class="ride"></li>
<li class="speaker">
<time><script>speakerTime()</script></time>
<!--
To add yourself to this slot, change the following two lines
and add a short description paragraph in the pull request.
-->
<small>Listen to our third speaker, or better yet</small>
<div><a href="https://github.com/brooklynjs/brooklynjs.github.io/edit/master/index.html">BE OUR THIRD SPEAKER</a></div>
</li>
<li class="ride"></li>
<li class="speaker">
<time><script>speakerTime()</script></time>
<!--
To add yourself to this slot, change the following two lines
and add a short description paragraph in the pull request.
-->
<small>Listen to our fourth speaker, or better yet</small>
<div><a href="https://github.com/brooklynjs/brooklynjs.github.io/edit/master/index.html">BE OUR FOURTH SPEAKER</a></div>
</li>
<li class="ride"></li>
<li class="speaker">
<time><script>speakerTime()</script></time>
<!--
To add yourself to this slot, change the following two lines
and add a short description paragraph in the pull request.
-->
<small>Listen to our fifth speaker, or better yet</small>
<div><a href="https://github.com/brooklynjs/brooklynjs.github.io/edit/master/index.html">BE OUR FIFTH SPEAKER</a></div>
</li>
<li class="ride"></li>
<li class="stop">
<time>8:00p</time>
<small>Wind down with the</small>
<div>Wrap-up</div>
</li>
<li class="walk">
<small>Round-trip downstairs to the bar to get some</small>
<div>Local <a href="//www.beermenus.com/places/2237-61-local">craft beer</a> / soda</div>
</li>
<li class="end stop">
<time>12:00a</time>
<small>Geek out with your boroughmates during</small>
<div>The beer.js social hour(s)</div>
</li>
</ol>
</article>
<footer>
BrooklynJS expects all speakers and attendees<br>to follow the <a href="//jsconf.com/codeofconduct.html">JSConf code of conduct</a>.
</footer>
</body>
</html>