-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
662 lines (622 loc) · 36.4 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
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
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1.0,minimum-scale=1,user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<title>NWAC Observation App</title>
<link rel="shortcut icon" href="images/favicon.ico">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css"/>
<link rel="stylesheet" href="http://js.arcgis.com/3.7/js/esri/css/esri.css">
<link rel="stylesheet" type="text/css" href="assets/css/jqm-datebox.min.css" />
<link rel="stylesheet" href="assets/css/jquery.mobile.simpledialog.min.css"/>
<link rel="stylesheet" type="text/css" href="assets/css/mobile.css">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></script>
<script type="text/javascript" src="assets/js/jquery.validate.js"></script>
<script type="text/javascript" src="assets/js/jquery.form.js"></script>
<script type="text/javascript" src="http://dev.jtsage.com/cdn/datebox/latest/jqm-datebox.core.min.js"></script>
<script type="text/javascript" src="http://dev.jtsage.com/cdn/datebox/latest/jqm-datebox.mode.calbox.min.js"></script>
<script type="text/javascript" src="http://dev.jtsage.com/cdn/datebox/i18n/jquery.mobile.datebox.i18n.en_US.utf8.js"></script>
<script type="text/javascript" src="assets/js/jquery.mobile.simpledialog.min.js"></script>
<script src="http://js.arcgis.com/3.7compact/"></script>
<script type="text/javascript">var dojoConfig = {parseOnLoad : true};</script>
<script type="text/javascript" src="assets/js/map.js"></script>
</head>
<!-- body -->
<body id="pageBody" class="claro">
<div data-role="page" id="mapPage" data-prefetch>
<div id="banner">
<div id="logo"></div>
<div id="desktop-options"></div>
<div id="desktop-info"></div>
<svg id="desktop-legend" xmlns="http://www.w3.org/2000/svg">
<g>
<circle id="snowpack-icon" stroke="rgb(0, 0, 0)" fill-rule="evenodd" r="13.5" cy="14" cx="14" stroke-miterlimit="4" stroke-width="1.33333" fill-opacity="0.5" fill="rgb(0, 153, 255)" />
<text font-weight="bold" xml:space="preserve" text-anchor="middle" font-family="Sans-serif" font-size="24" id="svg_1" y="23" x="90" fill-opacity="0.5" stroke-width="0" stroke="rgb(0, 0, 0)" fill="#000000">Snowpack</text>
</g>
<g>
<circle id="avalanche-icon" stroke="rgb(0, 0, 0)" fill-rule="evenodd" r="13.5" cy="50" cx="14" stroke-miterlimit="4" stroke-width="1.33333" fill-opacity="0.5" fill="rgb(153, 151, 255)" />
<text id="svg_7" font-weight="bold" xml:space="preserve" text-anchor="middle" font-family="Sans-serif" font-size="24" y="59" x="90" fill-opacity="0.5" stroke-width="0" stroke="rgb(0, 0, 0)" fill="#000000">Avalanche</text>
</g>
</svg>
</div>
<div id="hsi-logo"></div>
<div id="footer">
<fieldset id="footerGroup" data-role="controlgroup" data-type="horizontal">
<a class="halfBTN" id="optionsBTN" data-role="button" data-icon="gear" data-inline="false">Options</a>
<a class="halfBTN" id="infoBTN" data-role="button" data-icon="info" data-inline="false">Info</a>
</fieldset>
</div>
<div id="infoDiv" >
<p>Enter observations by clicking the
<span class="options_text_mobile">options button and clicking "add observation."</span>
<span class="options_text_desktop">blue circle icon to add snowpack observations or the purple circle to add avalanche observations</span></p>
<p>Tap or click on an observation point to view it's details.</p>
<p>Observations are shown by default for the past two weeks. You can change the date range on the options <span class="options_text_desktop">(plus icon)</span> page.</p>
<button id="infoDivOKBtn">OK</button>
</div>
<div id="map"></div>
<div id="observation-view-toggle">
<ul data-role="listview" data-inset="true">
<li style="text-align:center;">View information for this observation?</li>
<li><button id="goToObsAttsButton" data-role="button" data-icon="info">View</button></li>
<li><button id="hideobservation-view-toggleButton" data-role="button">No</button></li>
</ul>
</div>
<div id="add-report-toggle">
<ul data-role="listview" data-inset="true">
<li id="sliderLI" data-role="fieldcontain">
<h4>Report type</h4>
<select id="changeReportSlider" data-theme="a" data-role="slider" data-native-menu="false">
<option value="snowpack">Snow</option>
<option value="avalanche">Avy</option>
</select>
</li>
<li><button id="add-report-toggleButton" data-role="button" data-icon="plus">Add</button></li>
<li><button id="hideAskObsFormDivButton" data-role="button" data-icon="delete">No</button></li>
</ul>
</div>
<div id="askAddStabTestDiv">
<ul data-role="listview" data-inset="true">
<li data-role="fieldcontain">
<h4 id="stabTestDivLabel">Add stability test with observation?</h4>
</li>
<li><button id="askAddStabTestDivButton" data-role="button" data-icon="plus" >Yes</button></li>
<li><button id="hideAskAddStabTestmDivButton" data-role="button" data-icon="delete">No</button></li>
</ul>
</div>
</div>
<!--Info dialog-->
<div data-role="page" id="info" data-prefetch data-dom-cache="true">
<div data-role="header" data-position="fixed">
<h1>Info</h1>
<a class="backToMapButton">Map</a>
</div>
<div data-role="content">
<ul data-role="listview" data-inset="true">
<li>Enter observations by clicking the <span class="options_text_mobile">options button and clicking "add observation."</span><span class="options_text_desktop">blue circle icon to add snowpack observations or the purple circle to add avalanche observations</span></li>
<li>Tap or click on an observation point to view it's details.</li>
<li>Observations are shown by default for the past two weeks. You can change the date range on the options <span class="options_text_desktop">(plus icon)</span> page.</li>
</ul>
<div><button id="info-dialog-ok-btn">OK</button></div>
</div>
</div>
<!--bookmarks page-->
<div data-role="page" id="bookmarksPage" data-prefetch data-dom-cache="true">
<div data-role="header" data-position="fixed">
<h1>Zoom to:</h1>
<a class="backToMapButton">Map</a>
</div>
<div data-role="content">
<ul id='bookmarks' data-role="listview" data-inset="true">
<li><a id="Full" class='bookmark'>All regions</a></li>
<li><a id="Olympics" class='bookmark'>Olympics</a></li>
<li><a id="MtHood" class='bookmark'>Mt Hood area</a></li>
<li><a id="StevensPass" class='bookmark'>Stevens Pass</a></li>
<li><a id="SnoqualmiePass" class='bookmark'>Snoqualmie Pass</a></li>
<li><a id="WhitePass" class='bookmark'>White Pass</a></li>
<li><a id="WestStevensNorth" class='bookmark'>West - north of Stevens Pass</a></li>
<li><a id="WestStevensToWhite" class='bookmark'>West - between Snoqualmie and White Pass</a></li>
<li><a id="WestStoqToWhite" class='bookmark'>West - between Stevens and Snoqualmie Pass</a></li>
<li><a id="WestWhiteSouth" class='bookmark'>West - south of White Pass</a></li>
<li><a id="EastStevensNorth" class='bookmark'>East - north of Stevens Pass</a></li>
<li><a id="EastStevensToSnoq" class='bookmark'>East - between Stevens and Snoqualmie Pass</a></li>
<li><a id="EastSnoqToWhite" class='bookmark'>East - between Snoqualmie and White Pass</a></li>
<li><a id="EastWhiteSouth" class='bookmark'>East - south of White Pass</a></li>
</ul>
</div>
</div>
<!--Add obs dialog-->
<div data-role="page" id="addObsPage" data-prefetch data-dom-cache="true">
<div data-role="header" data-position="fixed">
<h1>Add observation</h1>
<a class="backToMapButton">Map</a>
</div>
<div data-role="content">
<ul data-role="listview" data-inset="true">
<li><h3>Add Snowpack Report</h3></li>
<li><select id="addObSelect" name="addObSelect">
<option value="" >-- Select one --</option>
<option value="Click">Tap or click to add</option>
<option value="GeoLocation">Add at current location</option>
</select>
</li>
<li><h3>Add Avalanche Report</h3></li>
<li><select id="addAvyObSelect" name="addAvyObSelect" >
<option value="">-- Select one --</option>
<option value="Click">Tap or click to add</option>
<option value="GeoLocation">Add at current location</option>
</select>
</li>
</ul>
</div>
</div>
<!--Tool options dialog-->
<div data-role="page" id="options" data-prefetch data-dom-cache="true">
<div data-role="header" data-position="fixed">
<h1>Options</h1>
<a class="backToMapButton">Map</a>
</div>
<div data-role="content">
<form action="#">
<!-- <div data-role="controlgroup"> -->
<!-- zoom tos -->
<div data-role="fieldcontain">
<ul data-role="listview" data-inset="true">
<li><h3>Zoom to</h3></li>
<li><a id="select-region-btn" data-role="button">Select a region</a></li>
<li><a id="get-geo-location-btn" data-role="button">Current location</a></li>
</ul>
</div>
<!-- observations -->
<div data-role="fieldcontain">
<ul data-role="listview" data-inset="true">
<li><h3>Observations</h3></li>
<li data-role="fieldcontain">
<div data-role="fieldcontain">
<h4>Snow and Weather</h4>
<select id="obsFlip" data-theme="a" data-role="slider" data-native-menu="false">
<option value="hide">Hidden</option>
<option value="show" selected>Shown</option>
</select>
</div>
</li>
<li>
<div data-role="fieldcontain">
<h4>Avalanche</h4>
<select id="avyObsFlip" data-theme="a" data-role="slider" data-native-menu="false">
<option value="hide">Hidden</option>
<option value="show" selected>Shown</option>
</select>
</div>
</li>
<li><a class="calButton" id="from" data-role="button" href="#">Select from date...</a></li>
<li><a class="calButton" id="to" data-role="button" href="#">Select to date...</a></li>
<input name="fromDate" id="fromDate" type="date" data-role="datebox" data-options='{"mode": "calbox", "theme": "c", "beforeToday": true, "centerHoriz": true, "centerVert":true, "hideInput":true, "useHeader": false}'/>
<input name="toDate" id="toDate" type="date" data-role="datebox" data-options='{"mode": "calbox", "theme": "c", "beforeToday": true, "centerHoriz": true, "centerVert":true, "hideInput":true, "useHeader": false}'/>
<li><a id="add-observation-btn" data-role="button">Add an observation</a></li>
</ul>
</div>
<!-- basemaps -->
<div data-role="fieldcontain">
<ul data-role="listview" data-inset="true">
<li><h3>Change basemap</h3></li>
<li>
<select id="basemapSelect" data-native-menu="true">
<option value="">-- Select one --</option>
<option value="topo">Topo</option>
<option value="streets">Streets</option>
<option value="imagery">Aerial imagery</option>
</select>
</li>
</ul>
</div>
<a data-role="button" href="http://nwac.us/" target="_blank">Go to NWAC site for detailed forecasts</a>
<a id="back-to-map-btn" data-role="button">Back to map</a>
</form>
</div>
</div>
<!--avyReport dialog-->
<div data-role="page" id="avyReport" data-prefetch data-dom-cache="true">
<div data-role="header" data-position="fixed">
<h1>Avalanche Observation</h1>
<a class="backToMapButton">Map</a>
</div>
<div data-role="content">
<div data-role="controlgroup">
<form name="avyObsForm" method="post" action="http://dev2.nwac.us/api/v2/avalancheObservation/create/">
<fieldset data-role="controlgroup">
<ul data-role="listview" data-inset="true">
<li data-role='list-divider'><h2>Observer</h2></li>
<li><h4>Datetime</h4></li>
<li><a id="avalanche-frm-select-date" data-role="button" href="#"></a></li>
<input name="datetime" id="avalanche-frm-select-dateDate" type="date" data-role="datebox" data-options='{"mode": "calbox", "theme": "c", "beforeToday": true, "centerHoriz": true, "centerVert":true, "hideInput":true, "useHeader": false}'/>
<li><h4>Email</h4><em>*</em><input class="required email" id="id_avyObs_observer-email" type="text" name="observer-email" maxlength="75" /></li>
<li><h4>First name</h4><em>*</em><input class="required" id="id_avyObs_observer-first_name" type="text" name="observer-first_name" maxlength="255" /></li>
<li><h4>Last name</h4><em>*</em><input class="required" id="id_avyObs_observer-last_name" type="text" name="observer-last_name" maxlength="255" /></li>
<li data-role='list-divider'><h2>Location</h2></li>
<li><h4>Descriptive Location</h4> <textarea id="avy_id_location-description" rows="10" cols="40" name="location-description"></textarea></li>
<li><h4>Latitude</h4> <input type="text" class="required number" name="location-latitude" id="avy_location-latitude" /></li>
<li><h4>Longitude</h4> <input type="text" class="required number" name="location-longitude" id="avy_location-longitude"/></li>
<li><h4>Elevation</h4> <input type="text" class="number" name="location-elevation" id="avy_location-elevation" /></li>
<li><h4>Elevation units</h4>
<select name="location-elevation_units" id="avy_location-elevation_units" >
<option value="">--Select units--</option>
<option value="feet" selected>Feet</option>
<option value="meters">Meters</option>
</select></li>
<li><h4>Slope aspect</h4>
<select name="location-slope_aspect" id="avy_id_location-slope_aspect" >
<option value="" selected>--Select aspect--</option>
<option value="northwest">Northwest</option>
<option value="north">North</option>
<option value="northeast">Northeast</option>
<option value="east">East</option>
<option value="southeast">Southeast</option>
<option value="south">South</option>
<option value="southwest">Southwest</option>
<option value="west">West</option>
</select></li>
<li><h4>Slope angle</h4> <input type="text" class="number" name="location-slope_angle" id="avy_id_location-slope_angle" /></li>
<li data-role='list-divider'><h2>Observation</h2></li>
<li><h4>Cause</h4>
<select name="cause" id="id_cause" >
<option value="" selected>-- Select one --</option>
<option value="AS">Skier</option>
<option value="AR">Snowboarder</option>
<option value="AI">Snowshoer</option>
<option value="AM">Snowmobile</option>
<option value="AB">An explosive detonated above the snow surface (air blast)</option>
<option value="AO">Unclassified artificial trigger (specify in comments)</option>
<option value="AU">Unknown artificial trigger</option>
<option value="N">Natural trigger</option>
<option value="NC">Cornice fall</option>
<option value="NE">Earthquake</option>
<option value="NI">Ice fall</option>
<option value="NL">Avalanche triggered by loose snow avalanche</option>
<option value="NS">Avalanche triggered by slab avalanche</option>
<option value="NR">Rock fall</option>
<option value="NO">Unclassified natural trigger (specify in comments) </option>
<option value="AA">Artillery</option>
<option value="AE">An explosive thrown or placed on or under the snow surface by hand</option>
<option value="AL">Avalauncher</option>
<option value="AC">Cornice fall triggered by human or explosive action</option>
<option value="AX">Gas exploder</option>
<option value="AH">Explosives placed via helicopter</option>
<option value="AP">Pre-placed, remotely detonated explosive charge</option>
<option value="AW">Wildlife</option>
<option value="AK">Snowcat</option>
<option value="AV">Vehicle (specify vehicle type in comments)</option>
<option value="AF">Foot penetration</option>
<option value="AC">Cornice fall produced by human or explosive action</option>
</select></li>
<li><h4>Slide type</h4>
<select name="slide_type" id="id_slide_type" >
<option value="" selected>-- Select one --</option>
<option value="L">Loose-snow avalanche</option>
<option value="WL">Wet loose-snow avalanche</option>
<option value="SS">Soft slab avalanche</option>
<option value="HS">Hard slab avalanche</option>
<option value="WS">Wet slab avalanche</option>
<option value="I">Ice fal or avalanche</option>
<option value="SF">Slush flow</option>
<option value="C">Cornice fall (w/o additional avalanche) </option>
<option value="R">Roof avalanche</option>
<option value="U">Unknown</option>
</select></li>
<li><h4>Depth of Crown</h4> <input type="text" class="number" name="crown_depth" id="id_crown_depth" /></li>
<li><h4>Crown depth units</h4>
<select name="crown_depth_units" id="id_crown_depth_units" >
<option value="" selected>-- Select one --</option>
<option value="inches">Inches</option>
<option value="feet">Feet</option>
<option value="centimeters">Centimeters</option>
<option value="meters">Meters</option>
</select></li>
<li><h4>Width of Slide</h4> <input type="text" class="number" name="slide_width" id="id_slide_width" /></li>
<li><h4>Slide width units:</h4>
<select name="slide_width_units" id="id_slide_width_units" >
<option value="" selected>-- Select one --</option>
<option value="feet">Feet</option>
<option value="meters">Meters</option>
</select></li>
<li><h4>Length of Runout</h4> <input type="text" class="number" name="runout_length" id="id_runout_length" /></li>
<li><h4>Runout length units:</h4>
<select name="runout_length_units" id="id_runout_length_units" >
<option value="" selected>-- Select one --</option>
<option value="feet">Feet</option>
<option value="meters">Meters</option>
</select></li>
<li><h4>Number caught</h4> <input type="text" class="number" name="number_caught" id="id_number_caught" /></li>
<li><h4>Number carried</h4> <input type="text" class="number" name="number_carried" id="id_number_carried" /></li>
<li><h4>Number partially buried</h4> <input type="text" class="number" name="number_partially_buried" id="id_number_partially_buried" /></li>
<li><h4>Number buried</h4> <input type="text" class="number" name="number_buried" id="id_number_buried" /></li>
<li><h4>Number injured</h4> <input type="text" class="number" name="number_injured" id="id_number_injured" /></li>
<li><h4>Number killed</h4> <input type="text" class="number" name="number_killed" id="id_number_killed" /></li>
<li><h4>Bed surface</h4>
<select name="bed_surface" id="id_bed_surface" >
<option value="" selected>-- Select one --</option>
<option value="S">The avalanche released within a layer of recent storm snow.</option>
<option value="I">The avalanche released at the new snow/old snow interface.</option>
<option value="O">The avalanche released within the old snow.</option>
<option value="G">The avalanche released at the ground, glacial ice or firn.</option>
<option value="U">Unknown</option>
</select></li>
<li><h4>Weak layer</h4>
<select name="weak_layer" id="id_weak_layer" >
<option value="" selected>-- Select one --</option>
<option value="PP">Precipitation Particles (New Snow)</option>
<option value="MM">Machine Made snow</option>
<option value="DF">Decomposing and Fragmented Particles</option>
<option value="RG">Rounded Grains</option>
<option value="FC">Faceted Crystals</option>
<option value="DH">Depth Hoar</option>
<option value="SH">Surface Hoar</option>
<option value="MF">Melt Forms</option>
<option value="IF">Ice Formations</option>
</select></li>
<li><h4>Avalanche Size - Relative to Path:</h4>
<select name="avalanche_size_relative" id="id_avalanche_size_relative" >
<option value="" selected>-- Select one --</option>
<option value="R1">(R1) Very small, relative to the path</option>
<option value="R2">(R2) Small, relative to the path</option>
<option value="R3">(R3) Medium, relative to the path</option>
<option value="R4">(R4) Large, relative to the path</option>
<option value="R5">(R5) Major or maximum, relative to the path</option>
</select></li>
<li><h4>Avalanche Size - Destructive Force:</h4>
<select name="avalanche_size_destructive_force" id="id_avalanche_size_destructive_force" >
<option value="" selected>-- Select one --</option>
<option value="D1">(D1) Relatively harmless to people</option>
<option value="D2">(D2) Could bury, injure, or kill a person.</option>
<option value="D3">(D3) Could bury and destroy a car, damage a truck, destroy a wood frame house, or break a few trees.</option>
<option value="D4">(D4) Could destroy a railway car, large truck, several buildings, or a substantial amount of forest.</option>
<option value="D5">(D5) Could gouge the landscape. Largest snow avalanche known.</option>
</select></li>
<li><h4>Comments</h4> <textarea id="id_comments" rows="10" cols="40" name="comments"></textarea></li>
<li class="fileInput"><h4>Media:</h4> <input type="file" name="media" id="avy_id_media" /></li>
<li><button type="submit">Submit observation</button></li>
</ul>
</fieldset>
</form>
</div>
</div>
</div>
<!--Observation form dialog-->
<div data-role="page" id="obsReport" data-prefetch data-dom-cache="true">
<div data-role="header" data-position="fixed">
<h1>Snow/Weather Observation</h1>
<a class="backToMapButton">Map</a>
</div>
<div data-role="content">
<form id="obsForm" name="obsForm" method="post" action="http://dev2.nwac.us/api/v2/observation/create/">
<fieldset data-role="controlgroup">
<ul data-role="listview" data-inset="true">
<li data-role='list-divider'><h2>Observer</h2></li>
<li><h4>Datetime</h4></li>
<li><a id="snowpack-frm-select-date" data-role="button" href="#"></a></li>
<input name="datetime" id="snowpack-frm-select-dateDate" type="date" data-role="datebox" data-options='{"mode": "calbox", "theme": "c", "beforeToday": true, "centerHoriz": true, "centerVert":true, "hideInput":true, "useHeader": false, "dateFormat": "%m/%d/%Y"}'/>
<li><h4>Email</h4><em>*</em> <input id="id_obs_observer-email" type="text" name="observer-email" /></li>
<li><h4>First name</h4><em>*</em><input id="id_obs_observer-first_name" type="text" name="observer-first_name" /></li>
<li><h4>Last name</h4><em>*</em><input id="id_obs_observer-last_name" type="text" name="observer-last_name" /></li>
<li data-role='list-divider'><h2>Location</h2></li>
<li><h4>Descriptive Location</h4> <textarea id="obs_id_location-description" rows="10" cols="40" name="location-description"></textarea></li>
<li><h4>Latitude</h4> <input type="text" name="location-latitude" id="obs_location-latitude" /></li>
<li><h4>Longitude</h4> <input type="text" name="location-longitude" id="obs_location-longitude" /></li>
<li><h4>Elevation</h4> <input type="text" class="number" name="location-elevation" id="obs_location-elevation" /></li>
<li><h4>Elevation units</h4>
<select name="location-elevation_units" id="obs_location-elevation_units">
<option value="">--Select units--</option>
<option selected value="feet">Feet</option>
<option value="meters">Meters</option>
</select></li>
<li><h4>Slope aspect</h4>
<select name="location-slope_aspect" id="obs_id_location-slope_aspect" >
<option value="" selected>--Select aspect--</option>
<option value="northwest">Northwest</option>
<option value="north">North</option>
<option value="northeast">Northeast</option>
<option value="east">East</option>
<option value="southeast">Southeast</option>
<option value="south">South</option>
<option value="southwest">Southwest</option>
<option value="west">West</option>
</select></li>
<li><h4>Slope angle</h4> <input type="text" class="number" name="location-slope_angle" id="obs_id_location-slope_angle" /></li>
<li data-role='list-divider'><h2>Observation</h2></li>
<li><h4>Cloud cover</h4>
<select name="cloud_cover" id="id_cloud_cover" >
<option value="" selected>--Select one--</option>
<option value="clear">Clear</option>
<option value="few">Few</option>
<option value="scattered">Scattered</option>
<option value="broken">Broken</option>
<option value="obscured">Obscured</option>
<option value="overcast">Overcast</option>
</select></li>
<li><h4>Air temp</h4> <input type="text" class="number" name="air_temp" id="id_air_temp" /></li>
<li><h4>Air temp units</h4>
<select name="air_temp_units" id="id_air_temp_units" >
<option value="" selected>--Select units--</option>
<option value="fahrenheit">Fahrenheit</option>
<option value="celsius">Celsius</option>
</select></li>
<li><h4>Precipitation type</h4>
<select name="precipitation_type" id="id_precipitation_type" >
<option value="" selected>--Select type--</option>
<option value="none">None</option>
<option value="snow">Snow</option>
<option value="rain">Rain</option>
<option value="mixed">Mixed</option>
<option value="freezing_rain">Freezing Rain</option>
</select></li>
<li><h4>Precipitation intensity</h4>
<select name="precipitation_intensity" id="id_precipitation_intensity" >
<option value="" selected>--Select one--</option>
<option value="light">Light</option>
<option value="moderate">Moderate</option>
<option value="heavy">Heavy</option>
</select></li>
<li><h4>Wind speed</h4>
<select name="wind_speed" id="id_wind_speed" >
<option value="" selected>--Select one--</option>
<option value="calm">Calm</option>
<option value="light">Light</option>
<option value="moderate">Moderate</option>
<option value="strong">Strong</option>
<option value="extreme">Extreme</option>
</select></li>
<li><h4>Wind direction</h4>
<select name="wind_direction" id="id_wind_direction" >
<option value="" selected>--Select one--</option>
<option value="northwest">Northwest</option>
<option value="north">North</option>
<option value="northeast">Northeast</option>
<option value="east">East</option>
<option value="southeast">Southeast</option>
<option value="south">South</option>
<option value="southwest">Southwest</option>
<option value="west">West</option>
</select></li>
<label for="id_recent_avalanches">Recent avalanches?</label> <input type="checkbox" name="recent_avalanches" id="id_recent_avalanches" />
<label for="id_terrain_traps">Terrain traps?</label> <input type="checkbox" name="terrain_traps" id="id_terrain_traps" />
<label for="id_recent_loading">Recent loading?</label> <input type="checkbox" name="recent_loading" id="id_recent_loading" />
<label for="id_shooting_cracks">Shooting cracks?</label> <input type="checkbox" name="shooting_cracks" id="id_shooting_cracks" />
<label for="id_signs_of_collapse">Signs of collapse?</label> <input type="checkbox" name="signs_of_collapse" id="id_signs_of_collapse" />
<label for="id_rapid_warming">Rapid warming?</label> <input type="checkbox" name="rapid_warming" id="id_rapid_warming" />
<li><h4>Weather comments</h4>
<textarea id="id_weather_comments" rows="10" cols="40" name="weather_comments"></textarea></li>
<li><h4>Snowpack comments</h4>
<textarea id="id_snowpack_comments" rows="10" cols="40" name="snowpack_comments"></textarea></li>
<li><h4>Observation comments</h4>
<textarea id="id_observation_comments" rows="10" cols="40" name="observation_comments"></textarea></li>
<li class="fileInput"><h4>Snowpit profile image</h4>
<input type="file" name="snowpit_profile_image" id="id_snowpit_profile_image" /></li>
<li><h4>Snowpit profile image url</h4>
<input class="url" id="id_snowpit_profile_image_url" type="text" name="snowpit_profile_image_url" maxlength="255" /></li>
<li class="fileInput"><h4>Observation photo</h4>
<input type="file" name="media" id="obs_id_media" /></li>
<li><button type="submit">Submit observation</button></li>
</ul>
</fieldset>
</form>
</div>
</div>
<!--stabTest page-->
<div data-role="page" id="stabTest" data-prefetch data-dom-cache="true">
<div data-role="header" data-position="fixed">
<h1>Stability Test</h1>
<a id="add-stability-test-no-btn" class="backToMapButton">Map</a>
</div>
<div data-role="content">
<div data-role="controlgroup">
<form id="stabTestForm" name="stabTestForm" method="post" action="http://dev2.nwac.us/api/v2/stabilityTest/?format=json">
<fieldset data-role="controlgroup">
<ul data-role="listview" data-inset="true">
<li><h4>Test type</h4>
<select id="test_type" name="test_type" >
<option value="" selected >--Select one--</option>
<option value="rutschblock">Rutschblock</option>
<option value="shovel-shear">Shovel hear</option>
<option value="compression">Compression</option>
<option value="stuff-block">Stuff block</option>
<option value="extended-column">Extended column</option>
<option value="other">Other</option>
</select></li>
<li><h4>Shear depth</h4> <input class="number" id="shear_depth" name="shear_depth" type="text" maxlength="255" /></li>
<li><h4>Shear depth units</h4>
<select name="shear_depth_units" id="shear_depth_units" >
<option value="inches">Inches</option>
<option value="centimeters" selected>Centimeters</option>
</select></li>
<li><h4>Load at failure</h4> <input id="failure_load" type="text" name="failure_load" maxlength="10000" /></li>
<li><h4>Shear quality</h4>
<select name="shear_quality" id="shear_quality" >
<option value="" selected>--Select one--</option>
<option value="1">Q1</option>
<option value="2">Q2</option>
<option value="3">Q3</option>
</select></li>
<li><h4>Failure comments</h4> <input id="observations_comments" type="text" name="observations_comments" maxlength="10000" /></li>
<li><button type="submit">Submit</button></li>
</ul>
</fieldset>
</form>
</div>
</div>
</div>
<!-- Dynamically inject page of obs attributes -->
<div id="obsAttsPage" data-role="page">
<div data-role="header" data-position="fixed">
<h1>Observation info</h1>
<a class="backToMapButton">Map</a>
</div>
<div id="obsAttsContent" data-role="content">
<ul id="obsAtts" data-role="listview" data-inset="true">
<!-- GLOBAL OBSERVATION ATTRIBUTES -->
<li data-role='list-divider'>Date</li><li class="observation-attribute" id="datetime"></li>
<li data-role='list-divider'>Name</li><li class="observation-attribute" id="first_name"></li>
<li data-role='list-divider'>Latitude</li><li class="observation-attribute" id="latitude"></li>
<li data-role='list-divider'>Longitude</li><li class="observation-attribute" id="longitude"></li>
<li data-role='list-divider'>Elevation</li><li class="observation-attribute" id="elevation"></li>
<li data-role='list-divider'>Slope angle</li><li class="observation-attribute" id="slope_angle"></li>
<li data-role='list-divider'>Slope aspect</li><li class="observation-attribute" id="slope_aspect"></li>
<li data-role='list-divider'>Location Description</li><li class="observation-attribute" id="description"></li>
<!-- AVALANCHE OBSERVATION ATTRIBUTES -->
<li data-role='list-divider'>Slide type</li><li class="observation-attribute" id="slide_type"></li>
<li data-role='list-divider'>Caused by</li><li class="observation-attribute" id="cause"></li>
<li data-role='list-divider'>Slide width</li><li class="observation-attribute" id="slide_width"></li>
<li data-role='list-divider'>Vertical fall</li><li class="observation-attribute" id="runout_length"></li>
<li data-role='list-divider'>Crown Depth</li><li class="observation-attribute" id="crown_depth"></li>
<li data-role='list-divider'>Weak layer</li><li class="observation-attribute" id="weak_layer"></li>
<li data-role='list-divider'>Bed surface</li><li class="observation-attribute" id="bed_surface"></li>
<li data-role='list-divider'>Number caught</li><li class="observation-attribute" id="number_caught"></li>
<li data-role='list-divider'>Number carried</li><li class="observation-attribute" id="number_carried"></li>
<li data-role='list-divider'>Number buried</li><li class="observation-attribute" id="number_buried"></li>
<li data-role='list-divider'>Number partially buried</li><li class="observation-attribute" id="number_partially_buried"></li>
<li data-role='list-divider'>Number injured</li><li class="observation-attribute" id="number_injured"></li>
<li data-role='list-divider'>Numbered killed</li><li class="observation-attribute" id="number_killed"></li>
<li data-role='list-divider'>Size/Destructive force</li><li class="observation-attribute" id="avalanche_size_destructive_force"></li>
<li data-role='list-divider'>Size relative to path</li><li class="observation-attribute" id="avalanche_size_relative"></li>
<!-- SNOWPACK OBSERVATION ATTRIBUTES -->
<li data-role='list-divider'>Air temperature</li><li class="observation-attribute" id="air_temp"></li>
<li data-role='list-divider'>Cloud cover</li><li class="observation-attribute" id="cloud_cover"></li>
<li data-role='list-divider'>Precipitation type</li><li class="observation-attribute" id="precipitation_type"></li>
<li data-role='list-divider'>Precipitation intensity</li><li class="observation-attribute" id="precipitation_intensity"></li>
<li data-role='list-divider'>Wind direction</li><li class="observation-attribute" id="wind_direction"></li>
<li data-role='list-divider'>Wind speed</li><li class="observation-attribute" id="wind_speed"></li>
<li data-role='list-divider'>Rapid warming?</li><li class="observation-attribute" id="rapid_warming"></li>
<li data-role='list-divider'>Recent avalanches?</li><li class="observation-attribute" id="recent_avalanches"></li>
<li data-role='list-divider'>Recent loading</li><li class="observation-attribute" id="recent_loading"></li>
<li data-role='list-divider'>Shooting cracks</li><li class="observation-attribute" id="shooting_cracks"></li>
<li data-role='list-divider'>Signs of collapse?</li><li class="observation-attribute" id="signs_of_collapse"></li>
<li data-role='list-divider'>Terrain traps</li><li class="observation-attribute" id="terrain_traps"></li>
<li data-role='list-divider'>weather comments</li><li class="observation-attribute" id="weather_comments"></li>
<li data-role='list-divider'>Snowpack comments</li><li class="observation-attribute" id="snowpack_comments"></li>
<li data-role='list-divider'>Observation comments</li><li class="observation-attribute" id="observation_comments"></li>
<li data-role='list-divider'>Snowpit profile image</li><li class="observation-attribute" id="snowpit_profile_image"></li>
<li data-role='list-divider'>Snowpit profile image URL</li><li class="observation-attribute" id="snowpit_profile_image_url"></li>
<li data-role='list-divider'>Photo</li><li class="observation-attribute" id="media"></li>
<!-- STABILITY TEST ATTRIBUTES -->
</ul>
</div>
</div>
</body>
<!-- google analytics -->
<script type="text/javascript">
/*
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-28476932-1']);
_gaq.push(['_trackPageview']);
_gaq.push(['_setCustomVar',1,'NWAC', 'mobile site' ,3]);
_gaq.push(['_trackPageLoadTime']);
(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>
</html>