-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
427 lines (377 loc) · 18.8 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Themes and PWA Tags -->
<meta name="theme-color" content="#151725">
<meta name="apple-mobile-web-app-status-bar" content="#151725">
<link rel="apple-touch-icon" href="images/Icon/icon96.png">
<!-- Materialize CSS and Icons -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link type="text/css" rel="stylesheet" href="css/materialize.min.css">
<link type="text/css" rel="stylesheet" href="css/materialize.css">
<link href="https://fonts.googleapis.com/css2?family=Nunito:wght@500;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/styles.css">
<link rel="icon" type="image/png" href="http://example.com/myicon.png">
<!-- Mapbox -->
<script src='https://api.mapbox.com/mapbox-gl-js/v1.8.1/mapbox-gl.js'></script>
<script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script>
<link href='https://api.mapbox.com/mapbox-gl-js/v1.8.1/mapbox-gl.css' rel='stylesheet' />
<!-- PWA Manifest -->
<link rel="manifest" href="/manifest.json">
<!-- Materialize JS -->
<script src="js/materialize.min.js"></script>
<script src="js/materialize.js"></script>
<script src="https://code.jquery.com/jquery-3.5.0.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.js"></script>
<title>YACT - Yet Another Covid Tracker</title>
</head>
<body>
<nav class="navbar">
<ul class="navbar-nav" id="menu_bar">
<li class="logo">
<a href="#" class="nav-link">
<span class="link-text logo-text">Y.A.C.T.</span>
<svg
aria-hidden="true"
focusable="false"
data-prefix="fad"
data-icon="angle-double-right"
role="img"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 448 512"
class="svg-inline--fa fa-angle-double-right fa-w-14 fa-5x"
>
<g class="fa-group">
<path
fill="currentColor"
d="M224 273L88.37 409a23.78 23.78 0 0 1-33.8 0L32 386.36a23.94 23.94 0 0 1 0-33.89l96.13-96.37L32 159.73a23.94 23.94 0 0 1 0-33.89l22.44-22.79a23.78 23.78 0 0 1 33.8 0L223.88 239a23.94 23.94 0 0 1 .1 34z"
class="fa-secondary"
></path>
<path
fill="currentColor"
d="M415.89 273L280.34 409a23.77 23.77 0 0 1-33.79 0L224 386.26a23.94 23.94 0 0 1 0-33.89L320.11 256l-96-96.47a23.94 23.94 0 0 1 0-33.89l22.52-22.59a23.77 23.77 0 0 1 33.79 0L416 239a24 24 0 0 1-.11 34z"
class="fa-primary"
></path>
</g>
</svg>
</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link" onclick="changepage(1)">
<svg
aria-hidden="true"
focusable="false"
data-prefix="fad"
data-icon="space-shuttle"
role="img"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 640 512"
class="svg-inline--fa fa-space-shuttle fa-w-20 fa-5x"
>
<g class="fa-group">
<path
fill="currentColor"
d="M32 416c0 35.35 21.49 64 48 64h16V352H32zm154.54-232h280.13L376 168C243 140.59 222.45 51.22 128 34.65V160h18.34a45.62 45.62 0 0 1 40.2 24zM32 96v64h64V32H80c-26.51 0-48 28.65-48 64zm114.34 256H128v125.35C222.45 460.78 243 371.41 376 344l90.67-16H186.54a45.62 45.62 0 0 1-40.2 24z"
class="fa-secondary"
></path>
<path
fill="currentColor"
d="M592.6 208.24C559.73 192.84 515.78 184 472 184H186.54a45.62 45.62 0 0 0-40.2-24H32c-23.2 0-32 10-32 24v144c0 14 8.82 24 32 24h114.34a45.62 45.62 0 0 0 40.2-24H472c43.78 0 87.73-8.84 120.6-24.24C622.28 289.84 640 272 640 256s-17.72-33.84-47.4-47.76zM488 296a8 8 0 0 1-8-8v-64a8 8 0 0 1 8-8c31.91 0 31.94 80 0 80z"
class="fa-primary"
></path>
</g>
</svg>
<span class="link-text">Stats</span>
</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link" onclick="changepage(2)">
<svg
aria-hidden="true"
focusable="false"
data-prefix="fad"
data-icon="telescope"
role="img"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 640 512"
class="svg-inline--fa fa-alien-monster fa-w-18 fa-9x">
<g class="fa-group">
<path fill="currentColor" d="M263.3594,347.79914,136.3008,391.44163c-8.7539,3.00781-18.05078-.69335-21.26953-8.46678l-8.74219-21.10738L42.17971,388.42211A15.99837,15.99837,0,0,1,21.27737,379.762L1.21877,331.34018a16.00653,16.00653,0,0,1,8.66406-20.90425L73.9844,283.88129,65.24221,262.772c-3.21875-7.77342.73828-16.96481,9.05469-21.02925L380.4219,92.1336l78.125,188.62074-66.60157,22.87691a71.98089,71.98089,0,0,0-143.96093.36914A71.08619,71.08619,0,0,0,263.3594,347.79914Z"
class="fa-secondary"></path>
<path fill="currentColor" d="M638.77737,216.83064,553.06252,9.88181a15.99836,15.99836,0,0,0-20.90234-8.66014L414.84377,49.81923a15.99639,15.99639,0,0,0-8.65625,20.90426l85.71094,206.94883a16.00274,16.00274,0,0,0,20.90625,8.66014l117.3125-48.59757A15.99819,15.99819,0,0,0,638.77737,216.83064ZM376.13283,348.50812a71.27481,71.27481,0,0,0,15.85157-44.50773,72,72,0,0,0-144,0,71.27859,71.27859,0,0,0,15.87109,44.53507l-47.46484,142.404A16.00061,16.00061,0,0,0,231.57033,512h16.85938a16.00416,16.00416,0,0,0,15.17969-10.94139l42.16406-126.49585a71.05048,71.05048,0,0,0,28.44922-.002l42.168,126.4978A16.00046,16.00046,0,0,0,391.57033,512h16.85938a16.00062,16.00062,0,0,0,15.17969-21.06051ZM319.9844,328.00035a24,24,0,1,1,24-24A24.03627,24.03627,0,0,1,319.9844,328.00035Z"
class="fa-primary">
</path></g>
</svg>
<span class="link-text">Centers</span>
</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link" onclick="changepage(3)">
<svg
aria-hidden="true"
focusable="false"
data-prefix="fad"
data-icon="space-station-moon-alt"
role="img"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 512 512"
class="svg-inline--fa fa-space-station-moon-alt fa-w-16 fa-5x"
>
<g class="fa-group">
<path
fill="currentColor"
d="M501.70312,224H448V160H368V96h48V66.67383A246.86934,246.86934,0,0,0,256,8C119.03125,8,8,119.0332,8,256a250.017,250.017,0,0,0,1.72656,28.26562C81.19531,306.76953,165.47656,320,256,320s174.80469-13.23047,246.27344-35.73438A250.017,250.017,0,0,0,504,256,248.44936,248.44936,0,0,0,501.70312,224ZM192,240a80,80,0,1,1,80-80A80.00021,80.00021,0,0,1,192,240ZM384,343.13867A940.33806,940.33806,0,0,1,256,352c-87.34375,0-168.71094-11.46094-239.28906-31.73633C45.05859,426.01953,141.29688,504,256,504a247.45808,247.45808,0,0,0,192-91.0918V384H384Z"
class="fa-secondary"
></path>
<path
fill="currentColor"
d="M256,320c-90.52344,0-174.80469-13.23047-246.27344-35.73438a246.11376,246.11376,0,0,0,6.98438,35.998C87.28906,340.53906,168.65625,352,256,352s168.71094-11.46094,239.28906-31.73633a246.11376,246.11376,0,0,0,6.98438-35.998C430.80469,306.76953,346.52344,320,256,320Zm-64-80a80,80,0,1,0-80-80A80.00021,80.00021,0,0,0,192,240Zm0-104a24,24,0,1,1-24,24A23.99993,23.99993,0,0,1,192,136Z"
class="fa-primary"
></path>
</g>
</svg>
<span class="link-text">Fundraiser</span>
</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link" onclick="changepage(4)">
<svg
aria-hidden="true"
focusable="false"
data-prefix="fad"
data-icon="alien-monster"
role="img"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 576 512"
class="svg-inline--fa fa-alien-monster fa-w-18 fa-9x"
>
<g class="fa-group">
<path
fill="currentColor"
d="M560,128H528a15.99954,15.99954,0,0,0-16,16v80H480V176a15.99954,15.99954,0,0,0-16-16H416V96h48a16.00079,16.00079,0,0,0,16-16V48a15.99954,15.99954,0,0,0-16-16H432a15.99954,15.99954,0,0,0-16,16V64H368a15.99954,15.99954,0,0,0-16,16v48H224V80a15.99954,15.99954,0,0,0-16-16H160V48a15.99954,15.99954,0,0,0-16-16H112A15.99954,15.99954,0,0,0,96,48V80a16.00079,16.00079,0,0,0,16,16h48v64H112a15.99954,15.99954,0,0,0-16,16v48H64V144a15.99954,15.99954,0,0,0-16-16H16A15.99954,15.99954,0,0,0,0,144V272a16.00079,16.00079,0,0,0,16,16H64v80a16.00079,16.00079,0,0,0,16,16h48v80a16.00079,16.00079,0,0,0,16,16h96a16.00079,16.00079,0,0,0,16-16V432a15.99954,15.99954,0,0,0-16-16H192V384H384v32H336a15.99954,15.99954,0,0,0-16,16v32a16.00079,16.00079,0,0,0,16,16h96a16.00079,16.00079,0,0,0,16-16V384h48a16.00079,16.00079,0,0,0,16-16V288h48a16.00079,16.00079,0,0,0,16-16V144A15.99954,15.99954,0,0,0,560,128ZM224,320H160V224h64Zm192,0H352V224h64Z"
class="fa-secondary"
></path>
<path
fill="currentColor"
d="M160,320h64V224H160Zm192-96v96h64V224Z"
class="fa-primary"
></path>
</g>
</svg>
<span class="link-text">About</span>
</a>
</li>
</ul>
</nav>
<!-- <nav class="dark_header" style="box-shadow: unset;">
<div class="nav-wrapper">
<a href="#" class="brand-logo center">Covid-19</a>
</div>
</nav> -->
<!-- Tabs (India or Worldwide) -->
<main>
<div class="header"><span class="fa-primary">Y. A.</span><span class="red-covid"> C.</span> T.</div>
<div class="tabcontent" id="page_1">
<div id="body">
<div class="containter">
<div id="map"></div>
</div>
<ul id="tabs" class="tabs tabs-fixed-width tab-demo z-depth-1">
<li class="tab col s3"><a class="active white-text" href="#test-india">India</a></li>
<li class="tab col s3"><a class="white-text"href="#test-world">Worldwide</a></li>
</ul>
<div id="test-india">
<!-- Numbers -->
<div class="row valign-wrapper">
<div id="card-confirm" class="card-panel col s3 z-depth-0">
<span class="flow-text title">Confirmed</span><br>
<span class="flow-text" id="confirmed"></span><br>
<span id="del-confirmed"></span>
</div>
<div id="card-active" class="card-panel col s3 z-depth-0">
<span class="flow-text title">Active</span><br>
<span class="flow-text" id="active"></span><br>
<span id="del-active"><br></span>
</div>
<div id="card-recover" class="card-panel col s3 z-depth-0">
<span class="flow-text title">Recovered</span><br>
<span class="flow-text" id="recovered"></span><br>
<span id="del-recovered"></span>
</div>
<div id="card-decease" class="card-panel col s3 z-depth-0">
<span class="flow-text title">Deceased</span><br>
<span class="flow-text" id="deceases"></span><br>
<span id="del-deaths"></span>
</div>
</div>
<!-- Graphs -->
<div class="row graphs">
<div class="col s2 card-panel z-depth-0" id="gr-cn">
<canvas id="graph-confirm"></canvas>
</div>
<div class="col s2 card-panel z-depth-0" id="gr-ac">
<canvas id="graph-active"></canvas>
</div>
<div class="col s2 card-panel z-depth-0" id="gr-rc">
<canvas id="graph-recover"></canvas>
</div>
<div class="col s2 card-panel z-depth-0" id="gr-dc">
<canvas id="graph-decease"></canvas>
</div>
</div>
<div class="add_spacing">
</div>
<!-- List of States -->
<div class="container">
<table>
<thead>
<tr>
<th class="white-text">States</th>
<th class="red-covid">C</th>
<th class="blue-covid">A</th>
<th class="green-covid">R</th>
<th class="gray-covid">D</th>
</tr>
</thead>
<tbody id="state-list">
</tbody>
</table>
</div>
</div>
<!-- World Wide -->
<div id="test-world">
<!-- Numbers -->
<div class="row valign-wrapper">
<div id="card-confirm" class="card-panel col s3 z-depth-0">
<span class="flow-text title">Confirmed</span><br>
<span class="flow-text" id="wconfirmed"></span><br>
<span id="wdel-confirmed"></span>
</div>
<div id="card-active" class="card-panel col s3 z-depth-0">
<span class="flow-text title">Active</span><br>
<span class="flow-text" id="wactive"></span><br>
<span id="wdel-active"><br></span>
</div>
<div id="card-recover" class="card-panel col s3 z-depth-0">
<span class="flow-text title">Recovered</span><br>
<span class="flow-text" id="wrecovered"></span><br>
<span id="wdel-recovered"><br></span>
</div>
<div id="card-decease" class="card-panel col s3 z-depth-0">
<span class="flow-text title">Deceased</span><br>
<span class="flow-text" id="wdeceases"></span><br>
<span id="wdel-deaths"></span>
</div>
</div>
<!-- List of Countries -->
<div class="container">
<table>
<thead>
<tr>
<th class="white-text">Countries</th>
<th class="red-covid">C</th>
<th class="blue-covid">A</th>
<th class="green-covid">R</th>
<th class="gray-covid">D</th>
</tr>
</thead>
<tbody id="country-list">
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- Test Centers List -->
<div class="tabcontent" id="page_2">
<div class="containter center">
<!-- Search Bar -->
<div class="row">
<div class="input-field col s8 offset-s2 l6 offset-l2">
<input placeholder="Search" id="search-labs" type="text" class="validate">
</div>
<div class="col l2 hide-on-med-and-down">
<select class="browser-default" id="sel-labType">
<option value="" disabled selected>Lab Type</option>
<option value="Public">Public</option>
<option value="Private">Private</option>
</select>
</div>
</div>
<div class="row hide-on-large-only">
<div class="col s4 offset-s4">
<select class="browser-default" id="selm-labType" onchange="selectLab()">
<option value="" disabled selected>Lab Type</option>
<option value="Public">Public</option>
<option value="Private">Private</option>
</select>
</div>
</div>
<!-- List of Centers -->
<div class="container">
<table>
<thead>
<tr id="labs-header">
<th class="blue-text">Place</th>
<th class="blue-text">State</th>
<th class="blue-text wide-cell">Test Type</th>
<th class="blue-text">Org</th>
</tr>
</thead>
<tbody id="lab-list">
<!-- Here the Lab List will appear-->
</tbody>
</table>
</div>
</div>
</div>
<div class="tabcontent" id="page_3">
<div class="container center">
<div class="add_spacing"></div>
<lottie-player src="https://assets1.lottiefiles.com/packages/lf20_505w5e.json" id="lottie_placeholder" background="transparent" speed="1" style="width: 300px; height: 300px;" loop autoplay></lottie-player>
<div class="add_spacing"></div>
<span id="about-fundraiser" class="flow-text white-text">Hold on for sometime! <br>This page shall be updated soon.</span>
</div>
</div>
<div class="tabcontent" id="page_4">
<div class="container center">
<div class="add_spacing"></div>
<span id="about-main" class="flow-text white-text"></span>
<div class="add_spacing"></div>
<table>
<thead>
<tr id="dev-header">
<th class="blue-text">Name</th>
<th class="blue-text">Profiles</th>
</tr>
</thead>
<tbody id="dev-list">
<!-- Here the dev List will appear-->
</tbody>
</table>
<div class="add_spacing"></div>
<table>
<thead>
<tr id="src-header">
<th class="blue-text">Sources</th>
</tr>
</thead>
<tbody id="src-list">
<!-- Here the Sources List will appear-->
</tbody>
</table>
</div>
</div>
<div class="add_spacing">
</div>
</main>
<script src="js/transition.js"></script>
<script src="js/main.js"></script>
<script src="js/about.js"></script>
<script src="js/app.js"></script>
<script src="js/testCenters.js"></script>
</script>
</body>
</html>