-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathanalytics2.html
352 lines (334 loc) · 13.5 KB
/
analytics2.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
<!DOCTYPE html>
<html>
<head>
<title>COVID-19 Tracker</title>
<link rel="stylesheet" href="css/materialize.min.css">
<!--Import Google Icon Font-->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src='https://api.mapbox.com/mapbox-gl-js/v1.8.1/mapbox-gl.js'></script>
<link href='https://api.mapbox.com/mapbox-gl-js/v1.8.1/mapbox-gl.css' rel='stylesheet' />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js@2.8.0"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js"></script>
<!-- Chrome, Firefox OS and Opera -->
<meta name="theme-color" content="#212121">
<!-- Windows Phone -->
<meta name="msapplication-navbutton-color" content="#212121">
<!-- iOS Safari -->
<meta name="apple-mobile-web-app-status-bar-style" content="#212121">
<script src="main2.js"></script>
<link rel="icon" href="css/icon.png">
</head>
<body onload="load_analytics()" class="grey darken-4" style="overflow-x:hidden;">
<ul class="sidenav grey darken-4" id="mobile-demo">
<li><a href="analytics.html" class="teal-text">Analytics</a></li>
<li><a href="about.html.html" class="teal-text">About</a></li>
<li><a href="collapsible.html" class="teal-text">Contact us</a></li>
</ul>
<div class="navbar-fixed">
<nav>
<div class="nav-wrapper grey darken-4 z-depth-3" style="z-index: 1;">
<a href="https://www.covidnearme.in"><img src="logon.png" alt="" class="brand-logo hide-on-med-and-down show-on-large"
width="16%" style="position: absolute; top: 50%;-ms-transform: translateY(-50%); transform: translateY(-50%);"></a>
<a href="https://www.covidnearme.in"><img class="left brand-logo hide-on-large-only hide-on-small-only show-on-med"
src="logon.png" alt="" width="26%" style="position: absolute; top: 50%;-ms-transform: translateY(-50%); transform: translateY(-50%);"></a>
<a href="https://www.covidnearme.in"><img src="logon.png" alt="" class="left brand-logo hide-on-med-and-up show-on-small"
width="50%" style="position: absolute; top: 50%;-ms-transform: translateY(-50%); transform: translateY(-50%);"></a>
<a href="#" data-target="mobile-demo" class="right teal-text sidenav-trigger"><i
class="material-icons">menu</i></a>
<ul id="nav-mobile" class="right hide-on-med-and-down teal lighten-2">
<li><a href="analytics.html">Analytics</a></li>
<li><a href="about.html">About</a></li>
<li><a href="collapsible.html">Contact us</a></li>
</ul>
</div>
</nav>
</div>
<script>
document.addEventListener('DOMContentLoaded', function () {
var elems = document.querySelectorAll('.sidenav');
var instances = M.Sidenav.init(elems, { edge: 'right' });
});
</script>
<div class="row" style="margin-top: 1% ;">
<!-- <div class="col s12 m6 l6">
<iframe title="[ Insert title here ]" aria-label="India states and union territories (2020) choropleth map"
id="datawrapper-chart-SNwr4" src="//datawrapper.dwcdn.net/SNwr4/2/" scrolling="no" frameborder="0"
style="width: 0; min-width: 100% !important; background-color:#424242 ;box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); padding:2%; border-radius: 10px;"
height="400"></iframe>
<script type="text/javascript">!function () { "use strict"; window.addEventListener("message", function (a) { if (void 0 !== a.data["datawrapper-height"]) for (var e in a.data["datawrapper-height"]) { var t = document.getElementById("datawrapper-chart-" + e) || document.querySelector("iframe[src*='" + e + "']"); t && (t.style.height = a.data["datawrapper-height"][e] + "px") } }) }();
</script>
</div> -->
<div class="col s12 m6 l6">
<div class="card grey darken-3 z-depth-3" style="border-radius: 10px;">
<div class="card-content grey-text">
<span class="card-title"><b><span style="color: #eeeeee;">Cases:</span> <span
id="cnf_no">loading..</span></b> <i class="tiny material-icons" id="daily_cnf_arrow"></i><span
id="count_diff" style="font-size: 0.8em;"></span><span
style="position: absolute; bottom: 2% ;right: 5%; font-size: 0.5em;"><i>Report up to yesterday <span
id="data_update_date_cnf" style="font-size: 0.9em;"></span></i></span>
</span>
<span id="load">Loading...</span>
</span>
<canvas id="line-chart_cnf" width="100%" height="100%"></canvas>
</div>
</div>
</div>
<div class="col s12 m6 l6">
<div class="card grey darken-3 z-depth-3" style="border-radius: 10px;">
<div class="card-content grey-text">
<span class="card-title"><b><span style="color: #eeeeee;">Recovered:</span> <span
id="rec_no">loading..</span></b> <i class="tiny material-icons" id="daily_rec_arrow"></i><span
id="count_diff_rec" style="font-size: 0.8em;"></span>
<span style="position: absolute; bottom: 2% ;right: 5%; font-size: 0.5em;"><i>Upto yesterday<span
id="data_update_date_rec" style="font-size: 0.9em;"></span></i></span>
</span>
<span id="load_rec">Loading...</span>
</span>
<canvas id="line-chart_rec" width="100%" height="80%"></canvas>
</div>
</div>
</div>
</div>
<div class="row" style="margin-top: -5%;">
<div class="col s12 m6 l6">
<div class="card grey darken-3 z-depth-3" style="border-radius: 10px;">
<div class="card-content grey-text">
<span class="card-title"><b><span style="color: #eeeeee;">Deaths:</span> <span
id="ded_no">loading..</span></b> <i class="tiny material-icons" id="daily_ded_arrow"></i><span
id="count_diff_ded" style="font-size: 0.8em;"></span>
<span style="position: absolute; bottom: 2% ;right: 5%; font-size: 0.5em;"><i>Updated: <span
id="data_update_date_ded" style="font-size: 0.9em;"></span></i></span>
</span>
<span id="load_ded">Loading...</span>
</span>
<canvas id="line-chart_ded" width="100%" height="80%"></canvas>
</div>
</div>
</div>
<div class="col s12 m6 l6">
<div class="card grey darken-3 z-depth-3" style="border-radius: 10px;">
<div class="card-content grey-text">
<span class="card-title"><b><span style="color: #eeeeee;">State-wise Report</span></b>
<span style="position: absolute; bottom: 2%;right: 5%; font-size: 0.5em;"><i>Updated: <span
id="data_update_date_state" style="font-size: 0.9em;"></span></i></span>
</span>
<span id="load_state">Loading...</span>
</span>
<canvas id="line-chart_dedm" width="100%" height="200%"
style="margin-bottom: -20px;"></canvas>
</div>
</div>
</div>
</div>
<div class="row hide-on-med-and-up show-on-small" style="margin-top: -5.5%; ">
<div class="col s12 m12 l12">
<div class="card deep-purple darken-1 z-depth-3" style="border-radius: 10px;">
<div class="card-content white-text">
<span class="card-title" style="margin-top: -4%;">ICMR Report<span class="right" style="font-size: 0.4em; margin-top: 1%;">Till 9PM, April 12</span></span>
<p>Total Samples Tested: 1,95,748</p>
<p>Samples Tested Yesterday: 15,583</p>
</div>
</div>
</div>
<div class="col s12 m12 l12">
<div class="card indigo darken-1 z-depth-3" style="border-radius: 10px;">
<div class="card-content white-text">
<span class="card-title" style="margin-top: -4%;">Report</span>
<p>Recovery Rate: <span style="color: #b2ebf2 ;">11.97%</span></p>
<p>Death Rate: <span style="color: #ffcdd2 ;">3.59%</span></p>
</div>
</div>
</div>
<!-- <div class="col s12 m12 l12">
<div class="card blue darken-4 z-depth-3" style="border-radius: 10px;">
<div class="card-content white-text">
<span class="card-title" style="margin-top: -4%;">World Report</span>
<p>Total Cases: <span style="color: #b2ebf2 ;">1,851,011</span></p>
<p>No. of deaths: <span style="color: #ffcdd2 ;">114,098</span></p>
</div>
</div>
</div> -->
</div>
<div class="row" style="margin-top: -6%; ">
<div class="col s12 m12 l12">
<div class="card blue-grey darken-1 z-depth-3" style="border-radius: 10px;">
<div class="card-content white-text">
<span class="card-title">
<center>Comparison of weekly COVID-19 cases with other countries</center>
</span>
<table class="centered highlight responsive-table" style="font-size: 0.7em;">
<thead>
<tr>
<th>Weeks</th>
<th>INDIA</th>
<th>USA</th>
<th>FRANCE</th>
<th>ITALY</th>
<th>JAPAN</th>
<th>IRAN</th>
<th>SPAIN</th>
<th>CHINA</th>
</tr>
</thead>
<tbody>
<tr>
<td>Week1</td>
<td>3</td>
<td>11</td>
<td>6</td>
<td>3</td>
<td>4</td>
<td>95</td>
<td>1</td>
<td>278</td>
</tr>
<tr>
<td>Week2</td>
<td>3</td>
<td>13</td>
<td>6</td>
<td>3</td>
<td>20</td>
<td>2336</td>
<td>2</td>
<td>2761</td>
</tr>
<tr>
<td>Week3</td>
<td>3</td>
<td>15</td>
<td>11</td>
<td>400</td>
<td>26</td>
<td>8042</td>
<td>2</td>
<td>17238</td>
</tr>
<tr>
<td>Week4</td>
<td>3</td>
<td>53</td>
<td>12</td>
<td>3089</td>
<td>59</td>
<td>16169</td>
<td>25</td>
<td>40235</td>
</tr>
<tr>
<td>Week5</td>
<td>34</td>
<td>108</td>
<td>38</td>
<td>12462</td>
<td>144</td>
<td>24811</td>
<td>257</td>
<td>70635</td>
</tr>
<tr>
<td>Week6</td>
<td>101</td>
<td>696</td>
<td>420</td>
<td>31506</td>
<td>254</td>
<td>35408</td>
<td>2965</td>
<td>77262</td>
</tr>
<tr>
<td>Week7</td>
<td>223</td>
<td>3536</td>
<td>2860</td>
<td>74386</td>
<td>488</td>
<td>55743</td>
<td>13716</td>
<td>80174</td>
</tr>
<tr>
<td>Week8</td>
<td>724</td>
<td>51914</td>
<td>9043</td>
<td>92472</td>
<td>814</td>
<td>62589</td>
<td>78797</td>
<td>80904</td>
</tr>
<tr>
<td>Week9</td>
<td>1112</td>
<td>103321</td>
<td>28786</td>
<td>124632</td>
<td>1089</td>
<td></td>
<td>130759</td>
<td>81077</td>
</tr>
<tr>
<td>Week10</td>
<td>4125</td>
<td>122653</td>
<td>37145</td>
<td>147577</td>
<td>1693</td>
<td></td>
<td>152446</td>
<td>81601</td>
</tr>
<tr>
<td>Week11</td>
<td>7447</td>
<td>273808</td>
<td>67757</td>
<td></td>
<td>3271</td>
<td></td>
<td></td>
<td>82351</td>
</tr>
<tr>
<td>Week12</td>
<td></td>
<td>395030</td>
<td>85351</td>
<td></td>
<td>6238</td>
<td></td>
<td></td>
<td>82930</td>
</tr>
<tr>
<td>Week13</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td>83369</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<footer class="page-footer white">
<div class="footer-copyright white grey-text">
<div class="container">
<center>An initiative to find corona virus cases near you</center>
</div>
</div>
</footer>
<script src="js/materialize.min.js"></script>
</body>
</html>