-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
372 lines (320 loc) · 9.83 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
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
<!DOCTYPE html>
<meta charset="utf-8">
<html>
<head>
<title>Welcome to Maptime Boston!</title>
<link target="_blank" href='http://fonts.googleapis.com/css?family=PT+Sans:400,700' rel='stylesheet' type='text/css'>
<style>
/*
This template was taken from
https://github.com/maptimeBoston/better-know-a-slippy-map
SLIDE STYLES:
All slides are assumed to contain one 'p' element, one 'img' element, or one of each.
<div class="slide">
-- Default style. If no image, text is centered. If image present, it is centered and text is at the top.
-- Arbitrary content could go here too (e.g. I used a couple of iframes), but default behavior will mess with any p or img elements.
<div class="slide image_full">
-- Full 1024x768 img, somewhat faded to black and with bold white text (p) centered on top.
<div class="slide image_bottom">
-- Mostly like default except that image appears at the bottom. (Basically just to give more room for longer text).
Can make additional class styles for p elements and such if you need different text sizes, colors, etc.
(e.g. there is a p.title style with a bigger font)
img elements themselves are not displayed; rather, their src attributes are applied as div backgrounds. This is to make centering easier, basically.
*/
html, body{
margin: 0;
font: 20px/24px "PT Sans", sans-serif;
background-color: #d1c9b8;
}
.slide, .slide div{
position: absolute;
top: 0;
left: 0;
width: 1024px;
height: 768px;
background-position: center center;
background-repeat: no-repeat;
font-size: 64px;
line-height: 72px;
font-weight: bold;
}
.slide{
background-color: #d1c9b8;
}
.slide.image_bottom{
background-position: center bottom;
}
.slide p{
position: absolute;
text-align: center;
margin: 15px 1% 0 1%;
width: 98%;
}
.slide img{
display: none;
}
.slide.image_full{
background-color: black;
}
.slide.image_full div{
opacity: .5;
}
.slide.image_full p{
color: white;
text-shadow:0px 0px 10px #000000;
}
.slide p.title{
font-size: 84px;
line-height: 94px;
}
.slide.bullets p{
text-align: left;
margin-left: 5%;
width: 90%;
}
.slide.bullets ul{
position: absolute;
margin-left: 5%;
width: 90%;
}
.slide ul.contact{
line-height: 52px;
font-weight: normal;
}
.slide ul.contact li{
margin-top: 20px;
}
.slide ul.contact span{
font-size: 48px;
}
a{
color: #669;
text-decoration: none;
}
a:hover{
text-decoration: underline;
}
a.citation{
position: absolute;
bottom: 5px;
right: 5px;
color: #000;
background-color: rgba(255,255,255,.75);
font-size: 18px;
line-height: 24px;
}
.code{
font-family: 'Courier New';
}
blink, .blink {
-webkit-animation: blink 1s step-end infinite;
-moz-animation: blink 1s step-end infinite;
-o-animation: blink 1s step-end infinite;
animation: blink 1s step-end infinite;
}
@-webkit-keyframes blink { 67% { opacity: 0 }}
@-moz-keyframes blink { 67% { opacity: 0 }}
@-o-keyframes blink { 67% { opacity: 0 }}
@keyframes blink { 67% { opacity: 0 }}
</style>
</head>
<body>
<div class="slide image_full">
<img src="images/boston_fireworks.jpg"/>
<p class="title">
Welcome to Maptime Boston!
</p>
<a class="citation"
href="https://www.flickr.com/photos/sunsetnoir/5905385616/">From Lei Han CC BY-NC-ND 2.0</a>
</div>
<div class="slide">
<p>
What is Maptime?<br>
For more info:<br>
www.maptime.io/about<br><br>
lyzidiamond.com/posts/why-maptime
</p>
</div>
<div class="slide">
<a class="citation" href="http://www.maptime.io/about/">Paraphrased from About Maptime</a>
<p>
"We realized that we wanted to become better mapmakers, but were frustrated
with the lack of resources for learning how to make them."<br>
</p>
</div>
<div class="slide">
<a class="citation" href="http://lyzidiamond.com/posts/why-maptime">Why Maptime</a>
<p>
"organized community around learning and teaching geospatial open source"
</p>
</div>
<div class="slide">
<p class="title">Maptimes All Over the World</p>
<img src="images/maptime-chapters-june2019.png"/>
<a class="citation"
href="http://maptime.io/chapters/">http://maptime.io/chapters/</a>
</div>
<div class="slide bullets">
<a class="citation" href="http://lyzidiamond.com/posts/why-maptime/">Why
Maptime</a>
<p>
Maptime is about:</p>
<ul>
<li>Helping each other</li>
<li>Learning from and teaching together</li>
<li>Making a safe space for learning</li>
<li>Making maps more democratic</li>
<li>Bringing the Geo community together</li>
<li>Having fun!</li>
</ul>
</div>
<div class="slide bullets">
<a class="citation" href="http://lyzidiamond.com/posts/why-maptime/">Why
Maptime</a>
<p>
Maptime is NOT about:</p>
<ul>
<li>Being too technical</li>
<li>Sales pitches</li>
<li>Arguing</li>
<li>Violence</li>
<li>Judgement</li>
<li>Getting other people to do your work for free ←NO</li>
<li>Having no fun :(</li>
</ul>
</div>
<div class="slide">
<p>
Upcoming events
</p>
</div>
<div class="slide image_bottom">
NACIS<br>
October 16–19, Tacoma WA<br>
<a href="http://nacis.org">
https://nacis.org/
</a><br>
(North American Cartographic Information Society)
</p>
</div>
<div class="slide">
<p>
Thank you to Facebook for hosting and feeding us!<br><br>
Please get in touch if you can help sponsor future events!
</p>
</div>
<div class="slide">
<p style="font-size: 75%; line-height: 90%;">
Thank you to members who have donated! Small donations help cover:<br>
<span style="font-size:50%">
- Meetup.com fees, nearly $200/year! :(<br>
- Food if not sponsored ($50+ per event)<br>
- Occasional supplies (e.g. for hand-drawn map events)<br></span>
Venmo: @awoodruff (Andrew Woodruff)<br>
<span style="font-size:50%">(^ Leave a fun note or emoji!)</span><br>
or cash in the donation cups!
</span>
</p>
</div>
<script>
// The following is mostly derived from https://github.com/tmcw/big
var slides = document.getElementsByClassName("slide"),
current = 0;
function go(n){
current = n;
var slide = slides[n],
classes = slide.className.split(" ");
for (var i = 0; i < slides.length; i++) slides[i].style.display = 'none';
slide.style.display = 'block';
slide.style.left = (window.innerWidth - slide.offsetWidth) / 2 + "px";
slide.style.top = (window.innerHeight - slide.offsetHeight) / 2 + "px";
if ( classes[1] && styleSlide[classes[1]] ) styleSlide[classes[1]](slide);
else styleSlide.normal(slide);
resize();
if (window.location.hash !== n) window.location.hash = n;
}
var styleSlide = {
heading: function(slide){
var p = slide.getElementsByTagName("p")[0];
p.style.marginTop = (slide.offsetHeight - p.offsetHeight) / 2 + "px";
},
img: function(slide){
var img = slide.getElementsByTagName("img")[0];
slide.style.backgroundImage = 'url(' + img.src + ')';
img.style.display = 'none';
},
image_full: function(slide){
var img = slide.getElementsByTagName("img")[0];
var p = slide.getElementsByTagName("p")[0];
var div = slide.getElementsByTagName("div")[0] || document.createElement("div");
div.style.backgroundImage = 'url(' + img.src + ')';
slide.insertBefore(div,p);
img.style.display = 'none';
p.style.marginTop = (slide.offsetHeight - p.offsetHeight) / 2 + "px";
},
img_top: function(slide){
var img = slide.getElementsByTagName("img")[0];
slide.style.backgroundImage = 'url(' + img.src + ')';
img.style.display = 'none';
},
img_bottom: function(slide){
var img = slide.getElementsByTagName("img")[0];
slide.style.backgroundImage = 'url(' + img.src + ')';
img.style.display = 'none';
},
normal: function(slide){
var img = slide.getElementsByTagName("img")[0];
var p = slide.getElementsByTagName("p")[0];
if ( img ){
slide.style.backgroundImage = 'url(' + img.src + ')';
} else {
if ( p ){
p.style.marginTop = (slide.offsetHeight - p.offsetHeight) / 2 + "px";
}
}
},
bullets: function(slide){
var p = slide.getElementsByTagName("p")[0];
var ul = slide.getElementsByTagName("ul")[0];
ul.style.marginTop = (slide.offsetHeight - ul.offsetHeight) / 2 + "px";
if ( p ){
p.style.marginTop = (slide.offsetHeight - ul.offsetHeight) / 2 - p.offsetHeight + "px";
}
}
}
document.onclick = function() { go(++current % (slides.length)); };
function fwd() { go(Math.min(slides.length - 1, ++current)); }
function rev() { go(Math.max(0, --current)); }
document.onkeydown = function(e) {
if (e.which === 39 || e.which === 34 || e.which === 40) fwd();
if (e.which === 37 || e.which === 33 || e.which === 38) rev();
};
document.ontouchstart = function(e) {
var x0 = e.changedTouches[0].pageX;
document.ontouchend = function(e) {
var x1 = e.changedTouches[0].pageX;
if (x1 - x0 < 0) fwd();
if (x1 - x0 > 0) rev();
};
};
function parse_hash() {
return Math.max(Math.min(slides.length - 1,
parseInt(window.location.hash.substring(1), 10)), 0);
}
if (window.location.hash) current = parse_hash() || current;
window.onhashchange = function() {
var c = parse_hash();
if (c !== current) go(c);
};
window.onresize = resize;
function resize(){
var s = Math.min( 1, Math.min( window.innerHeight / 768, window.innerWidth / 1024 ) );
slides[current].style.webkitTransform = "scale(" + s + "," + s +")";
slides[current].style.MozTransform = "scale(" + s + "," + s +")";
slides[current].style.msTransform = "scale(" + s + "," + s +")";
slides[current].style.transform = "scale(" + s + "," + s +")";
}
go(current);
</script>
</body>
</html>