-
Notifications
You must be signed in to change notification settings - Fork 0
/
results3.html
295 lines (283 loc) · 11.4 KB
/
results3.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>GEOGloWS Forecast Game</title>
<link rel="stylesheet" href="static/css/main.css">
<script src="static/js/main.js"></script>
</head>
<body onload="loadCheckboxTable()">
<div class="body-container">
<div class="navbar">
<header>
<nav>
<ul>
<li><a href="index.html">Rules</a></li>
<li><a href="round1.html">Play Round 1</a></li>
<li><a href="round2.html">Play Round 2</a></li>
<li><a href="round3.html">Supervised Play Round 1</a></li>
<li><a href="round4.html">Supervised Play Round 2</a> </li>
<li><a href="info.html">Info</a></li>
</ul>
</nav>
</header>
</div>
<h1>Final Results: 100-year Flood!!</h1>
<img src="static/img/round1/day_0.png"
alt="hydrograph for day of event"
id="100yr">
<h2>Cost of Actions Taken: </h2>
<p>These were the actions you decided to take throughout the decision-making period. </p>
<table id="resultTable">
<tr>
<th>Days of Anticipation</th>
<th>10 Days</th>
<th>9 Days</th>
<th>8 Days</th>
<th>7 Days</th>
<th>6 Days</th>
<th>5 Days</th>
<th>4 Days</th>
<th>3 Days</th>
<th>2 Days</th>
<th>1 Day</th>
<th>Totals</th>
</tr>
<tr>
<th>Prepositioning</th>
<td><label><input type="checkbox" value="25000" id="10-P"
onclick="handleCheckboxSelections()">$25,000</label>
</td>
<td><label><input type="checkbox" value="30000" id="9-P"
onclick="handleCheckboxSelections()">$30,000</label>
</td>
<td><label><input type="checkbox" value="35000" id="8-P"
onclick="handleCheckboxSelections()">$35,000</label>
</td>
<td><label><input type="checkbox" value="37500" id="7-P"
onclick="handleCheckboxSelections()">$37,500</label>
</td>
<td><label><input type="checkbox" value="40000" id="6-P"
onclick="handleCheckboxSelections()">$40,000</label>
</td>
<td><label><input type="checkbox" value="45000" id="5-P"
onclick="handleCheckboxSelections()">$45,000</label>
</td>
<td><label><input type="checkbox" value="50000" id="4-P"
onclick="handleCheckboxSelections()">$50,000</label>
</td>
<th><label>-</label></th>
<th><label>-</label></th>
<th><label>-</label></th>
<td id="row1Total"></td>
</tr>
<tr>
<th>Place Sandbags</th>
<td><label><input type="checkbox" value="30000" id="10-S"
onclick="handleCheckboxSelections()">$30,000</label>
</td>
<td><label><input type="checkbox" value="35000" id="9-S"
onclick="handleCheckboxSelections()">$35,000</label>
</td>
<td><label><input type="checkbox" value="40000" id="8-S"
onclick="handleCheckboxSelections()">$40,000</label>
</td>
<td><label><input type="checkbox" value="45000" id="7-S"
onclick="handleCheckboxSelections()">$45,000</label>
</td>
<td><label><input type="checkbox" value="50000" id="6-S"
onclick="handleCheckboxSelections()">$50,000</label>
</td>
<td><label><input type="checkbox" value="55000" id="5-S"
onclick="handleCheckboxSelections()">$55,000</label>
</td>
<td><label><input type="checkbox" value="60000" id="4-S"
onclick="handleCheckboxSelections()">$60,000</label>
</td>
<td><label><input type="checkbox" value="65000" id="3-S"
onclick="handleCheckboxSelections()">$65,000</label>
</td>
<th><label>-</label></th>
<th><label>-</label></th>
<td id="row2Total"></td>
</tr>
<tr>
<th>Alert Community</th>
<td><label><input type="checkbox" value="45000" id="10-A"
onclick="handleCheckboxSelections()">$45,000</label>
</td>
<td><label><input type="checkbox" value="32000" id="9-A"
onclick="handleCheckboxSelections()">$32,000</label>
</td>
<td><label><input type="checkbox" value="29000" id="8-A"
onclick="handleCheckboxSelections()">$29,000</label>
</td>
<td><label><input type="checkbox" value="26000" id="7-A"
onclick="handleCheckboxSelections()">$26,000</label>
</td>
<td><label><input type="checkbox" value="23000" id="6-A"
onclick="handleCheckboxSelections()">$23,000</label>
</td>
<td><label><input type="checkbox" value="20000" id="5-A"
onclick="handleCheckboxSelections()">$20,000</label>
</td>
<td><label><input type="checkbox" value="22000" id="4-A"
onclick="handleCheckboxSelections()">$22,000</label>
</td>
<td><label><input type="checkbox" value="25000" id="3-A"
onclick="handleCheckboxSelections()">$25,000</label>
</td>
<td><label><input type="checkbox" value="30000" id="2-A"
onclick="handleCheckboxSelections()">$30,000</label>
</td>
<td><label><input type="checkbox" value="40000" id="1-A"
onclick="handleCheckboxSelections()">$40,000</label>
</td>
<td id="row3Total"></td>
</tr>
<tr>
<th>Evacuate Community</th>
<td><label><input type="checkbox" value="100000" id="10-E"
onclick="handleCheckboxSelections()">$100,000</label>
</td>
<td><label><input type="checkbox" value="95000" id="9-E"
onclick="handleCheckboxSelections()">$95,000</label>
</td>
<td><label><input type="checkbox" value="85000" id="8-E"
onclick="handleCheckboxSelections()">$85,000</label>
</td>
<td><label><input type="checkbox" value="80000" id="7-E"
onclick="handleCheckboxSelections()">$80,000</label>
</td>
<td><label><input type="checkbox" value="75000" id="6-E"
onclick="handleCheckboxSelections()">$75,000</label>
</td>
<td><label><input type="checkbox" value="70000" id="5-E"
onclick="handleCheckboxSelections()">$70,000</label>
</td>
<td><label><input type="checkbox" value="65000" id="4-E"
onclick="handleCheckboxSelections()">$65,000</label>
</td>
<td><label><input type="checkbox" value="60000" id="3-E"
onclick="handleCheckboxSelections()">$60,000</label>
</td>
<td><label><input type="checkbox" value="90000" id="2-E"
onclick="handleCheckboxSelections()">$90,000</label>
</td>
<td><label><input type="checkbox" value="120000" id="1-E"
onclick="handleCheckboxSelections()">$120,000</label>
</td>
<td id="row4Total"></td>
</tr>
<tr>
<th>Total</th>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td id="overallTotal"></td>
</tr>
</table>
<br>
<h2>Cost of Damage: </h2>
<p>This table shows the estimated expenses caused by damages according to each return period.</p>
<table id="damageTable">
<tr>
<th>Flood Level</th>
<th>No Flooding</th>
<th>2-Year</th>
<th>25-Year</th>
<th>100-Year</th>
</tr>
<tr>
<th>Damage Costs</th>
<td>$0.00</td>
<td>$244,520</td>
<td>$48,504,460</td>
<td>$81,397,990</td>
</tr>
</table>
<br>
<h2>Benefits of Protective Measures:</h2>
<p>This table breaks down the money that is saved if a specific action was taken based on the resulting flood
damages.</p>
<table id="benefitsTable">
<tr>
<th>Action</th>
<th>2-Year</th>
<th>25-Year</th>
<th>100-Year</th>
</tr>
<tr>
<th>Prepositioning of Resources</th>
<td>$0.00</td>
<td>$7,000,000</td>
<td>$14,000,000</td>
</tr>
<tr>
<th>Placement of Sandbags</th>
<td>$0.00</td>
<td>$6,500,000</td>
<td>$13,000,000</td>
</tr>
<tr>
<th>Alerting the Public</th>
<td>$0.00</td>
<td>$6,000,000</td>
<td>$12,000,000</td>
</tr>
<tr>
<th>Evacuation</th>
<td>$0.00</td>
<td>$10,000,000</td>
<td>$20,000,000</td>
</tr>
</table>
<br>
<h2>Calculator</h2>
<p><b>Follow these steps to determine the net cost of damage for the scenario described above.</b>
<br>1) First, make sure that the cost of damage matches the return period of the flood event described above (if
there is no flood, make sure to put $0).
<br>2) Second, sum the benefit of each mitigative action (see the table labeled <b>Benefits of Protective
Measures</b>) that you decided to do during the 10 previous days. For example,
if Place Sandbags and Evacuate Community were the only options selected and the flood was of a 25-year return
period, then
6,500,000 and 10,000,000 are summed.
<br>3) Lastly, input the sum from the previous step and click calculate.</p>
<table id="calculator">
<tr>
<th>Cost of Protection</th>
<th></th>
<th>Cost of Damage</th>
<th></th>
<th>Benefits of Protection</th>
<th></th>
<th>Net Cost of Damage</th>
</tr>
<tr>
<td id="costOfProtection"></td>
<th>+</th>
<td id="costOfDamage">$81397000</td>
<th>-</th>
<td><label><input type="number" id="benefitsOfProtection"></label></td>
<th>=</th>
<td id="netCostOfDamage"></td>
</tr>
</table>
<br>
<button onclick="calculator()">Calculate</button>
<p>Click the button below to play again.</p>
<div class="button-container">
<button><a href="round1.html">Play Round 1</a></button>
<button><a href="round2.html">Play Round 2</a></button>
<button><a href="round3.html">Supervised Play Round 1</a></button>
<button><a href="round4.html">Supervised Play Round 2</a></button>
</div>
</body>
</html>