-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
424 lines (392 loc) · 22.1 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
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
<!doctype html>
<html class="no-js" lang="en-us">
<head>
<meta charset="utf-8">
<title>Climate by Forest</title>
<!-- demo dependencies, not required for the widget itself. -->
<link rel="stylesheet" href="vendor/skeleton.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.css"
integrity="sha256-uHu2MAd1LvCOVEAhvMld4LpJi7dUGS7GVzvG/5B3hlo=" crossorigin="anonymous"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/flexibility/2.0.1/flexibility.js"
integrity="sha256-ETXu4iIohKzvSucuk6Bv0DCdqiqaTTGeMsjZ72szPzM=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.css"
integrity="sha256-rByPlHULObEjJ6XQxW/flG2r+22R5dKiAoef+aXWfik=" crossorigin="anonymous"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.js"
integrity="sha256-T0Vest3yCU7pafRw9r+settMBX6JkKN06dqBnpQ8d30=" crossorigin="anonymous"></script>
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/jquery-autocomplete/1.0.7/jquery.auto-complete.min.css"
integrity="sha256-MFTTStFZmJT7CqZBPyRVaJtI2P9ovNBbwmr0/KErfEc=" crossorigin="anonymous"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-autocomplete/1.0.7/jquery.auto-complete.min.js"
integrity="sha256-zs4Ql/EnwyWVY+mTbGS2WIMLdfYGtQOhkeUtOawKZVY=" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.4/lodash.js"></script>
<script src="vendor/webfont.js"></script>
<style>
/* Portrait */
@media screen and (orientation: portrait) {
.columns {
float: none;
width: 100% !important;
margin: 0;
}
.outlinebox {
margin: 1rem 0;
}
}
/* Landscape */
@media screen and (orientation: landscape) {
.content {
-js-display: flex;
display: flex;
flex-direction: row;
overflow: auto
}
.content .outlinebox {
display: flex;
flex-direction: column;
}
.content, .outlinebox {
flex: 1 1 auto;
overflow: hidden;
}
}
html, body {
margin: 0;
padding: 0;
min-height: 500px;
height: 100vh;
background-color: #404952;
font-family: Lato, serif;
}
body {
-js-display: flex;
display: flex;
flex-direction: column;
margin-left: 1rem;
margin-right: 1rem;
}
.outlinebox {
margin: 1rem;
padding: 1.5rem;
border: 1px solid #ddd;
border-radius: 4px;
background-color: white;
position: relative;
}
h1 {
font-weight: 500;
font-size: 3.25rem;
margin-top: 1rem;
text-align: center;
padding-bottom: 0.6em;
border-bottom: solid 1px lightgrey;
margin-left: auto;
margin-right: auto;
width: 85%;
}
.nemac-logo {
display: block;
padding: 1rem;
position: absolute;
bottom: 0;
left: 0;
}
.nemac-logo > img {
display: block;
height: 5rem;
margin: 1rem auto;
}
#widget {
height: 250px;
width: 100%;
flex: 1 1 auto;
overflow: hidden;
}
.buttons-wrapper {
-js-display: flex;
display: flex;
flex-direction: row;
flex-wrap: wrap;
margin: 0.5rem;
}
.btn {
display: block;
padding: 0.5em;
margin: 0.5em;
border: solid 2px grey;
border-radius: 3px;
font-weight: bold;
font-size: 1em;
white-space: nowrap;
flex-shrink: 0;
min-height: 1.6em;
-webkit-user-select: none; /* Chrome all / Safari all */
-moz-user-select: none; /* Firefox all */
-ms-user-select: none; /* IE 10+ */
user-select: none; /* Likely future */
cursor: pointer;
}
.buttons-wrapper .fa {
margin: 0 0.4em;
}
.buttons-wrapper input[type=checkbox] {
display: none;
}
.buttons-wrapper > input[type=checkbox]:checked + label[for=rcp85] {
border-color: #ff3835;
background-color: rgba(255, 67, 67, 0.38);
}
.buttons-wrapper > input[type=checkbox]:checked + label[for=rcp45] {
border-color: #4b93ff;
background-color: rgba(75, 147, 255, 0.31);
}
#download-panel {
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
background-color: rgba(255, 255, 255, 0.8);
}
#download-panel .download-inner {
margin: auto;
position: relative;
top: 70px;
width: 700px;
border: 2px solid black;
background-color: rgba(255, 255, 255, 1.0);
padding: 30px;
}
#download-panel .download-inner li {
margin-left: 50px;
}
#slider-range {
width: 85%;
margin: auto;
}
label {
margin-top: 0.5em;
}
.center {
text-align: center;
}
.hidden {
display: none;
}
select:invalid {
border-color: red;
}
</style>
<!--<script src="vendor/multigraph-nojq-min.js"></script>-->
<!--<script src="src/main.js"></script>-->
<script src="climate-widget-graph.js"></script>
<script src="demo.js"></script>
</head>
<body>
<div class="content">
<div class="outlinebox" style="flex-basis: 30%; flex-shrink: 0; padding-bottom:6.5rem;">
<div>
<h1>Climate By Forest</h1>
</div>
<form onsubmit="return false;">
<div class="row">
<!--<div class="eight columns" style="min-width: 6rem;">-->
<label for="forest">National Forest</label>
<select id="forest" class="u-full-width">
<option value="" selected></option>
<option value="Allegheny National Forest">Allegheny National Forest</option>
<option value="Angeles National Forest">Angeles National Forest</option>
<option value="Apache-Sitgreaves National Forests">Apache-Sitgreaves National Forests</option>
<option value="Arapaho and Roosevelt National Forests">Arapaho and Roosevelt National Forests</option>
<option value="Ashley National Forest">Ashley National Forest</option>
<option value="Beaverhead-Deerlodge National Forest">Beaverhead-Deerlodge National Forest</option>
<option value="Bighorn National Forest">Bighorn National Forest</option>
<option value="Bitterroot National Forest">Bitterroot National Forest</option>
<option value="Black Hills National Forest">Black Hills National Forest</option>
<option value="Boise National Forest">Boise National Forest</option>
<option value="Bridger-Teton National Forest">Bridger-Teton National Forest</option>
<option value="Caribou-Targhee National Forest">Caribou-Targhee National Forest</option>
<option value="Carson National Forest">Carson National Forest</option>
<option value="Chattahoochee-Oconee National Forests">Chattahoochee-Oconee National Forests</option>
<option value="Chequamegon-Nicolet National Forest">Chequamegon-Nicolet National Forest</option>
<option value="Cherokee National Forest">Cherokee National Forest</option>
<option value="Chippewa National Forest">Chippewa National Forest</option>
<option value="Cibola National Forest">Cibola National Forest</option>
<option value="Cleveland National Forest">Cleveland National Forest</option>
<option value="Coconino National Forest">Coconino National Forest</option>
<option value="Columbia River Gorge National Scenic Area">Columbia River Gorge National Scenic Area</option>
<option value="Colville National Forest">Colville National Forest</option>
<option value="Coronado National Forest">Coronado National Forest</option>
<option value="Custer National Forest">Custer National Forest</option>
<option value="Dakota Prairie Grasslands">Dakota Prairie Grasslands</option>
<option value="Daniel Boone National Forest">Daniel Boone National Forest</option>
<option value="Deschutes National Forest">Deschutes National Forest</option>
<option value="Dixie National Forest">Dixie National Forest</option>
<option value="Eldorado National Forest">Eldorado National Forest</option>
<option value="Fishlake National Forest">Fishlake National Forest</option>
<option value="Flathead National Forest">Flathead National Forest</option>
<option value="Francis Marion and Sumter National Forests">Francis Marion and Sumter National Forests</option>
<option value="Fremont-Winema National Forests">Fremont-Winema National Forests</option>
<option value="Gallatin National Forest">Gallatin National Forest</option>
<option value="George Washington and Jefferson National Forest">George Washington and Jefferson National Forest</option>
<option value="Gifford Pinchot National Forest">Gifford Pinchot National Forest</option>
<option value="Gila National Forest">Gila National Forest</option>
<option value="Grand Mesa, Uncompahgre and Gunnison National Forests">Grand Mesa, Uncompahgre and Gunnison National Forests</option>
<option value="Green Mountain and Finger Lakes National Forests">Green Mountain and Finger Lakes National Forests</option>
<option value="Helena National Forest">Helena National Forest</option>
<option value="Hiawatha National Forest">Hiawatha National Forest</option>
<option value="Hoosier National Forest">Hoosier National Forest</option>
<option value="Humboldt-Toiyabe National Forest">Humboldt-Toiyabe National Forest</option>
<option value="Huron-Manistee National Forest">Huron-Manistee National Forest</option>
<option value="Idaho Panhandle National Forests">Idaho Panhandle National Forests</option>
<option value="Inyo National Forest">Inyo National Forest</option>
<option value="Kaibab National Forest">Kaibab National Forest</option>
<option value="Kisatchie National Forest">Kisatchie National Forest</option>
<option value="Klamath National Forest">Klamath National Forest</option>
<option value="Kootenai National Forest">Kootenai National Forest</option>
<option value="Lake Tahoe Basin Management Unit">Lake Tahoe Basin Management Unit</option>
<option value="Land Between the Lakes">Land Between the Lakes</option>
<option value="Lassen National Forest">Lassen National Forest</option>
<option value="Lewis and Clark National Forest">Lewis and Clark National Forest</option>
<option value="Lincoln National Forest">Lincoln National Forest</option>
<option value="Lolo National Forest">Lolo National Forest</option>
<option value="Los Padres National Forest">Los Padres National Forest</option>
<option value="Malheur National Forest">Malheur National Forest</option>
<option value="Manti-Lasal National Forest">Manti-Lasal National Forest</option>
<option value="Mark Twain National Forest">Mark Twain National Forest</option>
<option value="Medicine Bow-Routt National Forest">Medicine Bow-Routt National Forest</option>
<option value="Mendocino National Forest">Mendocino National Forest</option>
<option value="Midewin National Tallgrass Prairie">Midewin National Tallgrass Prairie</option>
<option value="Modoc National Forest">Modoc National Forest</option>
<option value="Monongahela National Forest">Monongahela National Forest</option>
<option value="Mt Baker-Snoqualmie National Forest">Mt Baker-Snoqualmie National Forest</option>
<option value="Mt. Hood National Forest">Mt. Hood National Forest</option>
<option value="National Forests in Alabama">National Forests in Alabama</option>
<option value="National Forests in Florida">National Forests in Florida</option>
<option value="National Forests in Mississippi">National Forests in Mississippi</option>
<option value="National Forests in North Carolina">National Forests in North Carolina</option>
<option value="National Forests in Texas">National Forests in Texas</option>
<option value="Nebraska National Forest">Nebraska National Forest</option>
<option value="Nez Perce-Clearwater National Forest">Nez Perce-Clearwater National Forest</option>
<option value="Ochoco National Forest">Ochoco National Forest</option>
<option value="Okanogan-Wenatchee National Forest">Okanogan-Wenatchee National Forest</option>
<option value="Olympic National Forest">Olympic National Forest</option>
<option value="Ottawa National Forest">Ottawa National Forest</option>
<option value="Ouachita National Forest">Ouachita National Forest</option>
<option value="Ozark-St. Francis National Forest">Ozark-St. Francis National Forest</option>
<option value="Payette National Forest">Payette National Forest</option>
<option value="Pike and San Isabel National Forests">Pike and San Isabel National Forests</option>
<option value="Plumas National Forest">Plumas National Forest</option>
<option value="Prescott National Forest">Prescott National Forest</option>
<option value="Rio Grande National Forest">Rio Grande National Forest</option>
<option value="Rogue River-Siskiyou National Forests">Rogue River-Siskiyou National Forests</option>
<option value="Salmon-Challis National Forest">Salmon-Challis National Forest</option>
<option value="San Bernardino National Forest">San Bernardino National Forest</option>
<option value="San Juan National Forest">San Juan National Forest</option>
<option value="Santa Fe National Forest">Santa Fe National Forest</option>
<option value="Savannah River Site">Savannah River Site</option>
<option value="Sawtooth National Forest">Sawtooth National Forest</option>
<option value="Sequoia National Forest">Sequoia National Forest</option>
<option value="Shasta-Trinity National Forest">Shasta-Trinity National Forest</option>
<option value="Shawnee National Forest">Shawnee National Forest</option>
<option value="Shoshone National Forest">Shoshone National Forest</option>
<option value="Sierra National Forest">Sierra National Forest</option>
<option value="Siuslaw National Forest">Siuslaw National Forest</option>
<option value="Six Rivers National Forest">Six Rivers National Forest</option>
<option value="Stanislaus National Forest">Stanislaus National Forest</option>
<option value="Superior National Forest">Superior National Forest</option>
<option value="Tahoe National Forest">Tahoe National Forest</option>
<option value="Tonto National Forest">Tonto National Forest</option>
<option value="Uinta-Wasatch-Cache National Forest">Uinta-Wasatch-Cache National Forest</option>
<option value="Umatilla National Forest">Umatilla National Forest</option>
<option value="Umpqua National Forest">Umpqua National Forest</option>
<option value="Wallowa-Whitman National Forest">Wallowa-Whitman National Forest</option>
<option value="Wayne National Forest">Wayne National Forest</option>
<option value="White Mountain National Forest">White Mountain National Forest</option>
<option value="White River National Forest">White River National Forest</option>
<option value="Willamette National Forest">Willamette National Forest</option>
</select>
<!--</div>-->
</div>
<div class="row">
<!--<div class="eight columns" style="min-width: 6rem;">-->
<label for="ecoregion">Ecoregion</label>
<select id="ecoregion" class="u-full-width">
<option value="" selected></option>
</select>
<!--</div>-->
</div>
<div class="row">
<label for="variable">Variable</label>
<select id="variable" class="u-full-width">
</select>
</div>
<div class="row">
<label for="frequency">Frequency</label>
<select id="frequency" class="u-full-width">
<option value="annual" selected="selected">Annual</option>
<option value="monthly">Monthly</option>
<option value="seasonal">Seasonal</option>
</select>
</div>
<div class="row hidden" id="timeperiod-wrapper">
<label for="timeperiod">Time Period</label>
<select id="timeperiod" class="u-full-width">
<option value="2025" selected="selected">30 Years Centered on 2025</option>
<option value="2050">30 Years Centered on 2050</option>
<option value="2075">30 Years Centered on 2075</option>
</select>
</div>
</form>
</div>
<div class="outlinebox" style="flex-basis: 70%; flex-shrink:1;">
<div id="widget">
<div style="width: 100%; height: 100%; -js-display: flex; display: flex; flex-direction: column; justify-content: center; align-items: center;">
<div>
<h3>Please select a national forest and ecoregion to begin.</h3>
<p style="margin-top: 1em; width:40em;">This interactive graph shows modeled RCP 8.5 and RCP 4.5
data for forest ecoregions. Downscaled modeled data: LOCA. Historical observed data: Livneh.</p>
</div>
</div>
</div>
<span id="x-axis-pan-note"
class="center">X-axis panning and zooming only enabled for annual frequency</span>
<div id="slider-range"></div>
<div class="buttons-wrapper">
<span class="btn" style="background-color: #d3d3d3;"><i class="fa fa-area-chart" aria-hidden="true"></i>Modeled History</span>
<span class="btn" style="background-color: #ffffff;"><i class="fa fa-bar-chart" aria-hidden="true"></i>Observed History</span>
<input type="checkbox" name="rcp85" id="rcp85" checked>
<label for="rcp85" class="btn"><i class="fa fa-area-chart" aria-hidden="true"></i>RCP 8.5</label>
<input type="checkbox" name="rcp45" id="rcp45" checked>
<label for="rcp45" class="btn"><i class="fa fa-area-chart" aria-hidden="true"></i>RCP 4.5</label>
<div style="margin-left: auto; -js-display: flex; display: flex; flex-direction: row;">
<button class="btn" id="download-button" title="Download Data"><i
class="fa fa-download"
aria-label="Download Data"></i></button>
<button class="btn"><a id="download-image-link" title="Download Image"><i class=" fa fa-picture-o"
aria-label="Download Image"></i></a>
</button>
</div>
</div>
</div>
</div>
<div id="download-panel" class="hidden">
<div class="download-inner">
<p>Use the following links to download this graph's data:</p>
<ul>
<li><a href="" id="download_hist_obs_data">Observed Data</a></li>
<li id="download_hist_mod_data_li"><a href="" id="download_hist_mod_data">Historical Modeled Data</a></li>
<li><a href="" id="download_proj_mod_data">Projected Modeled Data</a></li>
</ul>
<div class="center">
<button id="download-dismiss-button">Dismiss</button>
</div>
</div>
</div>
<!--[if IE]>
<script>flexibility(document.documentElement);</script>
<![endif]-->
</body>
</html>