-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
172 lines (159 loc) · 6.95 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>US Natural Events</title>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"
integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY="
crossorigin=""/>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="frontpage">
<div class="sidebar">
<div class="eventtype">
<h3>Display</h3>
<form id="event_show_cb">
<div>
<input type="checkbox" id="quakes_cb" name="quake_cb" checked />
<label for="quake_cb">Earthquake</label>
</div>
<div>
<input type="checkbox" id="volcs_cb" name="volc_cb" checked />
<label for="volc_cb">Volcano</label>
</div>
<div>
<input type="checkbox" id="fires_cb" name="fires_cb" />
<label for="fires_cb">Fire Perimeters</label>
</div>
<div>
<input type="checkbox" id="firms_cb" name="firms_cb" />
<label for="firms_cb">FIRMS Hotspots</label>
</div>
<div>
<input type="checkbox" id="weather_cb" name="weather_cb" />
<label for="weather_cb">Weather</label>
</div>
</form>
</div>
<div class="eventtype">
<h3>Earthquake Parameters</h3>
<form id="myForm" class="form">
<label for="magF">Minimum Magnitude (1-10): </label>
<input type="number" id="magField" name="magF" value="4">
<label for="daysF">Past Number of Days : </label>
<input type="number" id="daysField" name="daysF" value="7">
<div></div>
<input type="button" onclick="updateQuakes()" value="Update Quakes">
</form>
</div>
<div class="eventtype">
<h3>Volcano Alert Level</h3>
<form id="volc_event_type">
<!-- <div>
<input type="checkbox" id="volc_all_cb" name="volc_all" checked />
<label for="volc_cb_all">All</label>
</div> -->
<div>
<input type="checkbox" id="volc_green_cb" name="volc_green" checked />
<label for="volc_green">Green</label>
</div>
<div>
<input type="checkbox" id="volc_yellow_cb" name="volc_yellow" checked />
<label for="volc_yellow">Yellow</label>
</div>
<div>
<input type="checkbox" id="volc_orange_cb" name="volc_orange" checked />
<label for="volc_orange">Orange</label>
</div>
<div>
<input type="checkbox" id="volc_red_cb" name="volc_red" checked/>
<label for="volc_red">Red</label>
</div>
</form>
</div>
<div class="eventtype">
<h3>Current Wildfire Parameters</h3>
<form id="myForm1" class="form">
<label for="minAcre">Minimum Acreage (0 - 100000): </label>
<input type="number" id="acreField" name="minAcre" value="1000">
<div></div>
<input type="button" onclick="updateFires()" value="Update Fires">
</form>
</div>
<div class="eventtype">
<h3>Current FIRMS Hotspots</h3>
<form id="myForm2" class="form">
<label for="tperCBox">Time Period</label>
<select id="timePeriodCBox" class="cbox" name="tperCBox">
<option value="24h" class="myoption">24 Hour</option>
<option value="48h">48 Hour</option>
<option value="7d">7 Days</option>
</select>
<label for="minConf">Minimum Confidence (0 - 100): </label>
<input type="number" id="confField" name="minConf" value="90">
<div></div>
<input type="button" onclick="updateFIRMS()" value="Update FIRMS">
</form>
</div>
<div class="eventtype">
<h3>NWS Alerts</h3>
<form id="weather_severe_level" class="form">
<h5>Severity</h5>
<div>
<input type="checkbox" id="extreme_cb" name="nws_extreme" checked />
<label for="extreme_cb">Extreme</label>
</div>
<div>
<input type="checkbox" id="severe_cb" name="nws_severe" checked />
<label for="severe_cb">Severe</label>
</div>
<div>
<input type="checkbox" id="moderate_cb" name="moderate_cb" checked />
<label for="moderate_cb">Moderate</label>
</div>
</form>
</div>
</div>
<div class="main">
<div class="main-content">
</div>
<div class="tablesec">
<div class="tab">
<button class="tablinks active" onclick="openType(event, 'equake')">Earthquakes</button>
<button class="tablinks" onclick="openType(event, 'volc')">Volcanos</button>
<button class="tablinks" onclick="openType(event, 'wildf')">Wildfires</button>
<button class="tablinks" onclick="openType(event, 'weather')">NWS Alerts</button>
</div>
<table id='toptable' class="content-table" onclick="tableClick(event)">
<tr>
<th>Company</th>
<th>Contact</th>
<th>Country</th>
</tr>
<tr>
<td>Alfreds Futterkiste</td>
<td>Maria Anders</td>
<td>Germany</td>
</tr>
<tr>
<td>Centro comercial Moctezuma</td>
<td>Francisco Chang</td>
<td>Mexico</td>
</tr>
</table>
</div>
</div>
</div>
<script src="https://unpkg.com/leaflet@1.9.2/dist/leaflet.js"></script>
<script src="https://volcanoes.usgs.gov/hans-public/api/volcano/getMonitoredVolcanoes"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<script src="ajax-utils.js"></script>
<script src="index.js"></script>
<script src="volcano.js"></script>
<script src="fire_perim.js"></script>
<script src="firms.js"></script>
<script src="weather.js"></script>
</body>
</html>