forked from ModelEarth/community
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.html
481 lines (430 loc) · 13.4 KB
/
header.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
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
<!-- MOVED TO LOCALSITE -->
<style>
/*
Could use these state shapes: https://github.com/coryetzkorn/state-svg-defs
*/
.logoholder {
background-size: 100% 100%;
background-position:center;
height:50px;
width:70px;
margin-top: -40px;
}
#logoholder {
background-size: 100% 100%;
float:left;
}
.logoholder-state {
background:url(img/logo/georgia-icon-on-gray.png) no-repeat;
margin-top: 5px;
height:50px;
width:70px;
}
.logoholder-modelearth {
background-image:url(../../../community/img/logo/model-earth.png) no-repeat;
margin-top: 15px;
margin-right: 24px;
height:25px;
width:25px;
}
.logolink:hover{
text-decoration: none;
}
#headerLocTitleHolder {
float:left;
padding:10px 0 0 0px;
font-size: 22px;
height:45px;
margin-left:-16px;
}
.headerLocTitleHolder-state {
margin-top: 7px;
}
#headerSiteTitle, #headerLocTitle {
font-size: 24px;
font-family: Helvetica !important;
font-weight: 100;
color: #777;
letter-spacing: 2px;
}
#headerLocTitle {
float:left;
padding-top:1px;
color:#9c9c9c;
font-size: 22px;
}
#homeMenu {
display: none;
border: 1px solid #ccc;
}
#homeMenu div {
height: 40px;
background-color: #fff;
padding:20px;
}
.headerbar {
height:100px;
background:#fff;
border-bottom: 1px solid #eee;
width:100%;
position:fixed;
overflow:visible;
z-index:1002;
}
.headerbar-margin {
marginX: 0 auto;
margin-top: 22px;
}
.filters-margin {
margin: 0 auto;
max-width:1000px;
}
.headerDropdown {
float:left;
display:none;
margin-left: 10px;
}
.headerDropdown select {
font-size: 18px;
color: #999;
border: 1px #ccc solid;
padding: 5px;
border-radius: 4px;
}
/* HEADER */
.headerLogo {
height:22px;
margin:7px 10px 4px 0px
}
.upperIcons > div {
border-left:1px solid #ddd;
height:100px;
padding:32px;
padding-left:37px;
}
.upperIcons > div:hover {
cursor: pointer;
}
#menuHolder {
height:100%;
position:fixed;
right:0px;
margin-leftX:-10px;
overflow: auto;
background: #fff;
width:250px;
margin-right:-250px;
-webkit-transition-duration: 0.3s;
-moz-transition-duration: 0.3s;
-o-transition-duration: 0.3s;
transition-duration: 0.3s;
box-sizing: border-box;
z-index: 9999;
}
#menuTop {
margin-left:20px;
}
#menuNav {
margin-top:20px;
}
#menuNav a {
display: block;
padding-left: 40px !important;
padding-top: 15px !important;
min-height: 50px;
box-sizing: border-box;
}
/*
#menuNav a:hover {
background-color: #ddd;
}
*/
#menuNav a {
font-size:16px;
font-weight: 500;
color: #ccc;
}
#menuNav a:hover {
background-color: #000;
}
@media (max-width: 600px) {
#menuNav a {
font-size:20px;
}
}
#menuHolder a {
padding: 10px;
text-decoration: none;
}
.hideMenu {
margin-top:15px;
margin-right:-20px;
cursor:pointer;
border: 2px solid #AEAEAE;
border-radius: 30px;
font-size: 32px;
font-weight: 100;
display: inline-block;
line-height: 0px;
padding: 11px 3px;
width: 27px;
position: relative;
}
.hideMenu:hover {
color:#fff;
border-color: #fff;
}
.hideMenuInner {
position:absolute;
top:3px;
left:4px;
color:#555;
display: none;
font-size: 20px;
display: inline-block;
line-height: 17px;
}
.hideMenuInner:hover {
color:#fff;
}
.hideMenuX:after {
position: absolute;
top: 10px;
left: 2px;
color:#aaa;
align-content: center; /* no effect, delete */
content: "×";
}
/* @media handheld { */
@media only screen and (max-width: 479px) { /* Since Lato font not available on Android */
.hideMenu:after {
top: 12px;
left: 4px;
}
}
/* END HEADER */
</style>
<div id="menuHolder" style="background:#333; display:none">
<!--
<div style="float:right;">
<div class="expandToFullscreen" style="border:0px; padding: 10px; cursor: pointer; color:#ccc">
<span style="font-size:34px;line-height:34px;padding-right:4px">❐</span>
</div>
<div class="reduceFromFullscreen" style="display:none; border:0px; padding: 10px; cursor: pointer">
<span style="font-size:33px;line-height:34px;padding-right:4px">❒</span>
</div>
</div>
-->
<div id="menuTop">
<div class="hideMenu"><span class="hideMenuInner" style="color:#aaa">✕</span></div>
</div>
<div id="menuNav">
<!-- Side Nav -->
<div class="neighborhood" style="display:none">
<a href="../"><b>Neighborhood</b></a>
<hr>
</div>
<div class="earth" style="display:none">
<a href="../community/tools"><b><span class="siteTitleShort"></span></b></a>
</div>
<div class="georgia" style="display:none">
<a href="../io/"><b><span class="siteTitleShort"></span></b></a>
</div>
<a href="../io/communities/">Communities</a>
<a href="../io/coders/">Coders & Designers</a>
<a href="../io/learn/">Teachers & Students</a>
<a href="../io/projects">Summer Projects</a>
<!--<a href="start/dataset">Goods & Services</a>-->
<hr>
<a href="../community/challenge/"><b>Web Challenge</b></a>
<a href="../community/start/">Starter Samples</a>
<a href="../community/start/maps/">Map Samples</a>
<a href="../community/start/charts/">Chart Starters</a>
<!--
<a href="start/maps/counties/counties.html">Regions & Counties</a>
-->
<div class="earth" style="display:none">
<a href="../community/zip/leaflet/#columns=JobsAgriculture:50;JobsManufacturing:50">Industry Mix</a>
</div>
<hr>
<!--
<a href="https://github.com/modelearth/community" target="_parent"><b>Git Involved!</b></a>
-->
<a href="../localsite/info/input/" target="_parent">Send Input</a>
</div>
</div>
<div class="headerbar headerbarheight">
<div class="upperIcons" style="float:right;">
<div class="showSearch local" style="display:none;float:left">
<!-- To do: use javascript to retain the current window.location.search value from URL when on a search page. -->
<a href="../localsite/info/" style="text-decoration:none"><div style="font-size:18pt;padding:2px 4px 0 2px;">🔍</div></a>
</div>
<div style="float:left;">
<div class="expandToFullscreen" style="border:0px; padding: 3px 3px; cursor: pointer;">
<span style="font-size:34px;line-height:34px;padding-right:4px; color:#555">❐</span>
</div>
<div class="reduceFromFullscreen" style="display:none; border:0px; padding: 3px 3px; cursor: pointer">
<span style="font-size:33px;line-height:34px;padding-right:4px; color:#555">❒</span>
</div>
</div>
<!--
<div class="showApps local" style="display:none; float:left;">
<i class="material-icons" style="font-size:30px; color:#ccc; padding:5px 4px 4px 0px"></i>
</div>
-->
<div class="showMenu" style="float:left;font-size:24px; color:#999;">
<div style="font-size: 28px; color:#999; padding: 2px 6px 0 2px; margin-top:-5px">☰</div>
</div>
</div>
<div class="contentpadding headerbar-margin" style="padding-top:0px">
<div id="logospace" style="line-height:32px; margin-left:-19px">
<a href="" id="logoholder"></a>
<div style="display:none; float:left; padding:8px 20px 0 20px">
<div style="font-size: 22px">
<a href="" class="logolink" style="display:none; color:#777; line-height:32px">
<!-- Resides in navigation.js -->
<span style="color:#555">model</span><span style="color:#999">earth1</span>
<span style="display:none;color:#999">Georgia</span>
<span style="display:none;color:#777">IO</span>
<!--
<span style="color:#777">LaGrange,</span> <span style="color:#999">Georgia</span>
-->
</a>
</div>
<div style="font-size: 24px; border-right:1px solid #ccc;"><a href="" class="logolink" style="color:#999; line-height:30px">model<span style="color:#777">georgia</span></a></div>
<!--
<div style="font-size: 24px"><a href="" class="logolink" style="color:#999; line-height:30px">model<span style="color:#777">earth</span></a></div>
-->
<!--
<a href=""><img class="headerLogo" src="img/logo/modelgeorgia.png" /></a>
-->
</div>
<div id="headerLocTitleHolder">
<span id="headerSiteTitle"></span>
<div style="padding-top:8px; float:right; display:none" class="mock-up">
<div class="arrowdown"></div>
</div>
<div class="headerDropdown mock-up">
<span class='arrownext' style='margin:10px 10px 0 10px'></span>
<select id="state_select" name="state" class="picklist">
<option value='AL'>Alabama</option>
<option value='AK'>Alaska</option>
<option value='AZ'>Arizona</option>
<option value='AR'>Arkansas</option>
<option value='CA'>California</option>
<option value='CO'>Colorado</option>
<option value='CT'>Connecticut</option>
<option value='DE'>Delaware</option>
<option value='DC'>District of Columbia</option>
<option value='FL'>Florida</option>
<option value='GA' selected>Georgia</option>
<option value='HI'>Hawaii</option>
<option value='ID'>Idaho</option>
<option value='IL'>Illinois</option>
<option value='IN'>Indiana</option>
<option value='IA'>Iowa</option>
<option value='KS'>Kansas</option>
<option value='KY'>Kentucky</option>
<option value='LA'>Louisiana</option>
<option value='ME'>Maine</option>
<option value='MD'>Maryland</option>
<option value='MA'>Massachusetts</option>
<option value='MI'>Michigan</option>
<option value='MN'>Minnesota</option>
<option value='MS'>Mississippi</option>
<option value='MO'>Missouri</option>
<option value='MT'>Montana</option>
<option value='NE'>Nebraska</option>
<option value='NV'>Nevada</option>
<option value='NH'>New Hampshire</option>
<option value='NJ'>New Jersey</option>
<option value='NM'>New Mexico</option>
<option value='NY'>New York</option>
<option value='NC'>North Carolina</option>
<option value='ND'>North Dakota</option>
<option value='OH'>Ohio</option>
<option value='OK'>Oklahoma</option>
<option value='OR'>Oregon</option>
<option value='PA'>Pennsylvania</option>
<option value='RI'>Rhode Island</option>
<option value='SC'>South Carolina</option>
<option value='SD'>South Dakota</option>
<option value='TN'>Tennessee</option>
<option value='TX'>Texas</option>
<option value='UT'>Utah</option>
<option value='VT'>Vermont</option>
<option value='VA'>Virginia</option>
<option value='WA'>Washington</option>
<option value='WV'>West Virginia</option>
<option value='WI'>Wisconsin</option>
<option value='WY'>Wyoming</option>
</select>
</div>
<a href="../community/tools" class="logolink">
<span id="headerLocTitle"></span>
</a>
</div>
</div>
<div id="homeMenu" style="position:absolute">
<div>Georgia Communities</div>
<div>United States</div>
</div>
</div>
</div>
<!-- Also update headerbar and headerOffset -->
<div class="headerbarheight" style="height:100px;"></div>
<script>
$(document).ready(function () {
$('.expandToFullscreen, .reduceFromFullscreen').click(function(event) {
toggleFullScreen();
});
});
function toggleFullScreen() {
if ((document.fullScreenElement && document.fullScreenElement !== null) ||
(!document.mozFullScreen && !document.webkitIsFullScreen)) {
// Only if video is not visible. Otherwise become black.
$('.moduleBackground').css({'z-index':'0'});
$('.expandFullScreen span').text("Shrink");
// To do: Change icon to 
if (document.documentElement.requestFullScreen) {
document.documentElement.requestFullScreen();
} else if (document.documentElement.mozRequestFullScreen) {
document.documentElement.mozRequestFullScreen();
} else if (document.documentElement.webkitRequestFullScreen) {
document.documentElement.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);
}
$('.expandToFullscreen').hide();
$('.reduceFromFullscreen').show();
} else {
$('.moduleBackground').css({'z-index':'-1'}); // Allows video to overlap.
$('.expandFullScreen span').text("Expand");
if (document.cancelFullScreen) {
document.cancelFullScreen();
} else if (document.mozCancelFullScreen) {
document.mozCancelFullScreen();
} else if (document.webkitCancelFullScreen) {
document.webkitCancelFullScreen();
}
$('.reduceFromFullscreen').hide();
$('.expandToFullscreen').show();
}
}
/**
* RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
* LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables*/
/*
var disqus_config = function () {
this.page.url = PAGE_URL; // Replace PAGE_URL with your page's canonical URL variable
this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
};
*/
/* Avoiding because disqus places doubleclick cookie */
/* Uncomment to reactivate
(function() { // DON'T EDIT BELOW THIS LINE
var d = document, s = d.createElement('script');
s.src = 'https://locally.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
*/
</script>