-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
492 lines (463 loc) · 23 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
<!doctype html>
<html>
<head>
<!--Required-->
<meta charset="utf-8">
<title>Canada COVID-19 Stats</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.6.0/dist/leaflet.css"
integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ=="
crossorigin="" />
<link rel='stylesheet' href='https://cdn.datatables.net/1.10.20/css/dataTables.bootstrap4.min.css'>
<link rel="stylesheet" href="style.css">
<!-- Make sure you put this AFTER Leaflet's CSS -->
<script src="https://unpkg.com/leaflet@1.6.0/dist/leaflet.js"
integrity="sha512-gZwIG9x3wUXg2hdXF6+rVkLF/0Vi9U8D2Ntg4Ga5I5BZpVkVxlJWbSQtXPSiUTtC0TjtGOmxa1AJPuV0CPthew=="
crossorigin=""></script>
<script src="https://kit.fontawesome.com/6c5e2ea966.js" crossorigin="anonymous"></script>
<script src="mapdata.js"></script>
</head>
<body>
<div class="progress" style="height: 2px;">
<div class="progress-bar" role="progressbar" style="width: 10%;" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<nav class="navbar sticky-top navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand" href="#">Canada COVID-19 Stats</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavAltMarkup"
aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
<ul class="navbar-nav mr-auto">
<a class="nav-item nav-link active" href="index.html">Overview<i class="fas fa-home"></i></a>
<a class="nav-item nav-link cases_link" href="#cases" onclick="cases()">Cases<i
class="fas fa-viruses"></i></a>
<a class="nav-item nav-link death_link" href="#motality" onclick="death()">Mortality<i
class="fas fa-heart-broken"></i></a>
<a class="nav-item nav-link recov_link" href="#recovered" onclick="recov()">Recovered<i class="fas fa-procedures"></i></a>
<a class="nav-item nav-link test_link" href="#tested" data-toggle="modal"
data-target="#staticBackdrop">Tested<i class="fas fa-syringe"></i></i></a>
<a class="nav-item nav-link travel_link" href="#travel" onclick="travel()">Travel History<i
class="fas fa-plane-departure"></i></a>
</ul>
<div class="spinner-grow spinner-grow-sm text-danger" role="status">
<span class="sr-only"></span>
</div>
<span class="badge badge-danger today_date">Updating...</span>
<span class="navbar-text "></span>
</div>
</nav>
<nav class="navbar sticky-top navbar-expand-lg navbar-dark bg-dark search-bar">
<div class='row death_nav double_nav'>
<div class='col-sm'>
<div class='row'>
<div class='col-sm'>
<h4 class=""><span class="badge badge-danger totalDeath"> Deaths</span></h4>
</div>
<div class='col-sm'>
<h4 class=""><span class="badge badge-danger compare_yesterday_death"> New Deaths</span></h4>
</div>
</div>
</div>
<div class='col-sm'>
<div class="input-group dropdown-cases death-select">
<select class="custom-select province-selection" id="death-province-select">
<option value="Canada" selected>Canada</option>
</select>
<div class="input-group-append">
<button class="btn btn-outline-secondary" id="death_get_province" type="button">
<span id='search-spinner' class="spinner-border spinner-border-sm" role="status"
aria-hidden="true"></span>
Search</button>
</div>
</div>
</div>
</div>
<div class='row cases_nav double_nav'>
<div class='col-sm'>
<div class='row'>
<div class='col-sm'>
<h4 class=""><span class="badge badge-danger totalCases"> Cases</span></h4>
</div>
<div class='col-sm'>
<h4 class=""><span class="badge badge-danger compare_yesterday"> New Cases</span></h4>
</div>
</div>
</div>
<div class='col-sm'>
<div class="input-group dropdown-cases">
<select class="custom-select province-selection" id="province-select"
aria-label="Example select with button addon">
<option value="Canada" selected>Canada</option>
</select>
<div class="input-group-append">
<button class="btn btn-outline-secondary" id="get_province" type="button">
<span id='search-spinner' class="spinner-border spinner-border-sm" role="status"
aria-hidden="true"></span>
Search</button>
</div>
</div>
</div>
</div>
<div class='row recov_nav double_nav'>
<div class='col-sm'>
<h4 class=""><span class="badge badge-danger totalRecov"> Recovered</span></h4>
</div>
<div class='col-sm'>
<h4 class=""><span class="badge badge-danger compare_yesterday_recov"> New Recovered</span></h4>
</div>
</div>
</nav>
<div class="tab container-fluid main tab">
<div class="row" style='padding-bottom: 10px;'>
<div class="col-sm-2">
<div class="card text-white bg-dark total-cases">
<div class="card-body">
<h6><i class="fas fa-viruses"></i>Total Cases</h6>
<h3 class="card-title totalCases"></h3>
<p class="card-text compare_yesterday"></p>
<div class="spinner-border text-light spinner-loader" role="status">
<span class="sr-only">Loading...</span>
</div>
</div>
</div>
</div>
<div class='col-sm-10'>
<div class="card text-white bg-dark sub-data">
<div class="card-body">
<div class='row'>
<div class='col-sm'>
<h6><i class="fas fa-heart-broken"></i>Total Death</i></h6>
<h3 class="card-title totalDeath"></h3>
<p class="card-text compare_yesterday_death"></p>
<div class="spinner-border text-light spinner-loader" role="status">
<span class="sr-only">Loading...</span>
</div>
<hr>
</div>
<div class='col-sm'>
<h6><i class="fas fa-procedures"></i>Total Recovered</h6>
<h3 class="card-title totalRecov"></h3>
<p class="card-text compare_yesterday_recov"></p>
<div class="spinner-border text-light spinner-loader" role="status">
<span class="sr-only">Loading...</span>
</div>
<hr>
</div>
<div class='col-sm'>
<h6><i class="fas fa-syringe"></i>Total Tested</h6>
<h3 class="card-title totalTest"></h3>
<p class="card-text compare_yesterday_test"></p>
<div class="spinner-border text-light spinner-loader" role="status">
<span class="sr-only">Loading...</span>
</div>
<hr>
</div>
<div class='col-sm'>
<h6 style='margin-bottom: 11px;'><span class="badge badge-warning ">Global Confirmed</span></h6>
<h3 id="TotalConfirmed" class='card-title'></h3>
<p class="card-text NewConfirmed"></p>
<div class="spinner-border text-light spinner-global" role="status">
<span class="sr-only">Loading...</span>
</div>
<hr>
</div>
<div class='col-sm'>
<h6 style='margin-bottom: 11px;'><span class="badge badge-warning ">Global Deaths</span>
</h6>
<h3 id="TotalDeaths" class='card-title'></h3>
<p class="card-text NewDeaths"></p>
<div class="spinner-border text-light spinner-global" role="status">
<span class="sr-only">Loading...</span>
</div>
<hr>
</div>
<div class='col-sm'>
<h6 style='margin-bottom: 11px;'><span class="badge badge-warning ">Global Recovered</span>
</h6>
<h3 id="TotalRecovered" class='card-title'></h3>
<p class="card-text NewRecovered"></p>
<div class="spinner-border text-light spinner-global" role="status">
<span class="sr-only">Loading...</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row" style="padding-bottom: 10px;">
<div class="col-sm">
<div id="nation_map" class='map'></div>
</div>
<div class='col-sm'>
<div class="card text-white bg-dark main_card line-chart">
<div class="card-header"><i class="fas fa-chart-line"></i>Chart | Reported Case</div>
<div class="card-body myChartDiv">
<div class="text-center spinner-loader">
<div class="spinner-border" role="status">
<span class="sr-only">Loading...</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="card text-white bg-dark mb-3 main_card table-chart">
<div class="card-header"><i class="fas fa-table"></i>Table | Reported Case</div>
<div class="card-body">
<div class="table-responsive">
<table id="prov_data_table" class="table table-dark table-sm">
<thead>
<tr>
<th scope="col">Province</th>
<th scope="col">Cases</th>
<th scope="col">New Cases</th>
<th scope="col">Deaths</th>
<th scope="col">New Deaths</th>
<th scope="col">Recovered</th>
<th scope="col">New Recovered</th>
<th scope="col">Tested</th>
<th scope="col">New Tested</th>
</tr>
</thead>
<tbody class="table_body"></tbody>
</table>
<div class="text-center spinner-loader">
<div class="spinner-border" role="status">
<span class="sr-only">Loading...</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="tab container-fluid cases">
<div class="row" style='margin-bottom: 10px;'>
<div class="col-sm">
<div id="mapid" class="cases_mod map"></div>
</div>
<div class="col-sm">
<div class="card text-white bg-dark line-chart">
<div class="card-header"><i class="fas fa-chart-line"></i>Chart | Reported Case</div>
<div class="card-body region_chart">
<div class="text-center spinner-loader">
<div class="spinner-border" role="status">
<span class="sr-only">Loading...</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class='row' style='margin-bottom: 10px;'>
<div class='col-sm'>
<div class="card text-white bg-dark mb-3 age-table bar-chart">
<div class="card-header">
<i class="far fa-chart-bar"></i>Chart | Canada Reported Cases Age Cumulative
</div>
<div class="card-body">
<div class="text-center spinner-cases">
<div class="spinner-border" role="status">
<span class="sr-only">Loading...</span>
</div>
</div>
</div>
</div>
</div>
<div class='col-sm'>
<div class="card text-white bg-dark mb-3 gender-table bar-chart">
<div class="card-header">
<i class="far fa-chart-bar"></i>Chart | Canada Reported Cases Gender Cumulative
</div>
<div class="card-body"></div>
</div>
</div>
</div>
<div class="card text-white bg-dark mb-3 region_table table-chart">
<div class="card-header">
<i class="fas fa-times" aria-hidden="true"></i>
</div>
<div class="card-body">
<table class="table table-dark table-sm">
<thead>
<tr>
<th scope="col">Health Region</th>
<th scope="col"># of Case</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>
<div class='tab container-fluid death'>
<div class='row' style="margin-bottom: 10px;">
<div class="col-sm">
<div id='death_map' class='map'></div>
</div>
<div class='col-sm'>
<div class='card text-white bg-dark death_case line-chart'>
<div class="card-header"><i class="fas fa-chart-line"></i>Chart | Mortality Cumulative</div>
<div class="card-body">
<div class="spinner-border text-light spinner-loader" role="status">
<span class="sr-only">Loading...</span>
</div>
</div>
</div>
</div>
</div>
<div class='row' style='margin-bottom: 10px;'>
<div class='col-sm'>
<div class='card text-white bg-dark mb-3 death_age bar-chart'>
<div class="card-header"><i class="far fa-chart-bar"></i>Chart | Mortality Age Cumulative</div>
<div class="card-body">
<div class="spinner-border text-light spinner-loader" role="status">
<span class="sr-only">Loading...</span>
</div>
</div>
</div>
</div>
<div class='col-sm'>
<div class='card text-white bg-dark mb-3 death_gender bar-chart'>
<div class="card-header"><i class="far fa-chart-bar"></i>Chart | Mortality Gender Cumulative</div>
<div class="card-body">
<div class="spinner-border text-light spinner-loader" role="status">
<span class="sr-only">Loading...</span>
</div>
</div>
</div>
</div>
</div>
<div class="card text-white bg-dark mb-3 line-chart">
<div class='card-header'>
Table | Mortality Cumulative
</div>
<div class="card-body">
<table class="table table-dark death_table table-sm">
<thead>
<tr>
<th scope="col">Province</th>
<th scope="col">Cumulative Mortality</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div class="spinner-border text-light spinner-loader" role="status">
<span class="sr-only">Loading...</span>
</div>
</div>
</div>
</div>
<div class='tab container-fluid travel'>
<div class="text-center spinner-cases">
<div class="spinner-border travel_map_spinner" role="status" style='color:white;'>
<span class="sr-only">Loading...</span>
</div>
</div>
<div>
<div class='map t_map' id="travel_map"></div>
</div>
<div class="card text-white bg-dark mb-3">
<div class="card-header">
Table | Travel History
<i class="fas fa-times" aria-hidden="true"></i>
</div>
<div class="card-body">
<table class="table table-dark table-sm">
<thead>
<tr>
<th scope="col">Country/City</th>
<th scope="col"># of Case</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div class="text-center spinner-cases">
<div class="spinner-border" role="status" style='color:white;'>
<span class="sr-only">Loading...</span>
</div>
</div>
</div>
</div>
</div>
<div class='tab container-fluid recov'>
<div id="recov_map" class='map t_map'></div>
</div>
<div class='footer'>
<div class='container-fluid'>
<div class='row'>
<div class="col-sm">
<div class="row">
<div class='col-sm-3'>
<p style="color:#5d93ff;font-weight: 800;">DATA FROM</p>
</div>
<div class='col-sm-9'>
<a style='color:white' href='https://github.com/ishaberry/Covid19Canada'>Epidemiological
Data from the COVID-19 Outbreak in Canada</a>
<br>
<a style="color:white" href='https://github.com/sitrucp/canada_covid_health_regions'>Canada
Covid-19 Confirmed Cases by Provincial Health Regions</a>
</div>
</div>
</div>
<div class='col-sm'>
<div class="row">
<div class='col-sm-3'>
<p style="color:#5d93ff;font-weight: 800;">CREATED BY</p>
</div>
<div class='col-sm-9'>
<p style="color:white">Donald Zou</p>
<a href='github.com/donaldzou'>
<i style='font-size: 20px;' class="fab fa-github"></i>
</a>
</div>
</div>
</div>
</div>
<hr>
</div>
</div>
<div class="modal fade" id="staticBackdrop" data-backdrop="static" tabindex="-1" role="dialog"
aria-labelledby="staticBackdropLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="staticBackdropLabel">Sorry...</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
This is still under construction :) Come back later.
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</body>
<script src="https://code.jquery.com/jquery-3.4.1.min.js"
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"
integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6"
crossorigin="anonymous"></script>
<script src="jquery.csv.min.js"></script>
<script src='https://cdn.datatables.net/1.10.20/js/jquery.dataTables.min.js'></script>
<script src='https://cdn.datatables.net/1.10.20/js/dataTables.bootstrap4.min.js'></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.js"></script>
<script src="main.js"></script>
<script src='cases.js'></script>
<script src='death.js'></script>
<script src='recov.js'></script>
<script src='travel.js'></script>
</html>