-
Notifications
You must be signed in to change notification settings - Fork 1
/
state.html
227 lines (217 loc) · 9.22 KB
/
state.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>COVID-19 Projections | India</title>
<meta name="title" content="COVID-19 Projections | India">
<meta name="description" content="State-wise projection for COVID-19 cases in India">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-slider/10.6.2/css/bootstrap-slider.min.css">
<link rel="stylesheet" href="css/app.css">
</head>
<body>
<noscript>You need to enable Javascript to run this app.</noscript>
<div class="container app">
<!-- title -->
<div class="row">
<div class="col-md-12 text-center">
<h3><strong>COVID-19 State-Wise Projections for India</strong></h3>
<h6>Prof. Santosh Ansumali, Engineering Mechanics Unit, JNCASR Bengaluru</h6>
<h6>Prof. Aloke Kumar, Department of Mechanical Engineering, IISc Bengaluru</h6>
<h6>Accompanying article at <em>Swarajya</em>:</h6>
<a href="https://swarajyamag.com/science/the-viral-explosion-a-state-wise-projection-map-for-covid-19-in-india">
The Viral Explosion: A State-Wise Projection Map For Covid-19 in India
</a>
<hr>
</div>
</div>
<!-- Summary Starts -->
<div class="row">
<div class="col-md-4"></div>
<div class="col-md-4">
<div class="text-left">
<ul>
<li>
<a href="./index.html">
Pan-India Projections
</a>
</li>
<li>
<a href="./district.html">
District-Wise Projection Calculator
</a>
</li>
</ul>
</div>
<hr>
</div>
<div class="col-md-4"></div>
</div>
<!-- Summary Ends -->
<!-- region selector -->
<div class="row">
<div class="col-md-4"></div>
<div class="col-md-4">
<div class="text-center mb-2">
<span>Select State or Union Territory: </span>
</div>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fa fa-map-marker"></i></span>
</div>
<input id="region-search" class="form-control" type="text" placeholder="Region...">
</div>
<ul id="region-list" class="list-group" style="display:none;">
</ul>
</div>
<div class="col-md-4"></div>
</div>
<!-- registered infections -->
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-6 mt-4">
<div class="text-center">
<span>Infections registered* as of</span>
<span class="font-weight-bold" id="T0-date">-</span>
<span>:</span>
<span id="T0-registered">-</span><br>
<a href="https://bit.ly/patientdb">*COVID19-India : Patient Database</a>
</div>
</div>
<div class="col-md-3"></div>
</div>
<!-- select user parameter : reg-every-n -->
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-6 mt-4">
<div class="text-center">
<span>Inflation Factor** <strong>n</strong> =</span>
<span class="font-weight-bold" id="n-text">-</span>
</div>
<div class="text-center">
<input id="nSlider" type="text" data-slider-id="n-slider"/>
</div>
<div class="text-center">
<span>**Assumes one infected person registered out of every <strong>n</strong> infected persons</span>
</div>
</div>
<div class="col-md-3"></div>
</div>
<!-- actual infections -->
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-6 mt-4">
<div class="text-center">
<span><strong>Estimated</strong> carriers as of</span>
<span id="T0-date2">-</span>
<span>:</span>
<span class="font-weight-bold" id="T0-estimated">-</span>
</div>
</div>
<div class="col-md-3"></div>
</div>
<!-- select user parameter : cric-inf-pct -->
<div class="row">
<div class="col-md-2"></div>
<div class="col-md-8 mt-4">
<div class="text-center">
<span>Assuming <strong>x</strong> out of every hundred carriers become critically ill, where</span>
</div>
<div class="text-center">
<span class="font-weight-bold">x =</span>
<span class="font-weight-bold" id="x-text">-</span>
</div>
<div class="text-center">
<input id="xSlider" type="text" data-slider-id="x-slider"/>
</div>
</div>
<div class="col-md-2"></div>
</div>
<!-- region statistics -->
<div class="row">
<div class="col-md-12 mt-4">
<div class="text-left">
<span><strong><em>Projection for next four weeks:</em></strong></span>
</div>
<div class="text-center">
<table id="region-stats" class="table table-bordered">
<thead>
<tr>
<th class="text-center" scope="col"><div><i class="fa fa-calendar"></i></div></th>
<th class="text-center" scope="col"><small><strong>Carrier Growth from <span id="T0-date3">-</span></strong></small></th>
<th class="text-center" scope="col"><small><strong>Growth Factor</strong></small></th>
<th class="text-center" scope="col"><small><strong>Estimated Carriers</strong></small></th>
<th class="text-center" scope="col"><small><strong>Critical Patients</strong></small></th>
<th class="text-center" scope="col"><small><strong>Ventilators Required</strong></small></th>
<th class="text-center" scope="col"><small><strong>Pumps Required</strong></small></th>
</tr>
</thead>
<tbody>
<tr>
<th id="T1-date" class="text-center" scope="row">-</th>
<td class="text-center">
<input id="T1Slider" type="text" data-slider-id="T1-slider"/>
</td>
<td id="T1-growth" class="text-center">-</td>
<td id="T1-infected" class="text-right">-</td>
<td id="T1-critical" class="text-right">-</td>
<td id="T1-ventilators" class="text-right">-</td>
<td id="T1-pumps" class="text-right">-</td>
</tr>
<tr>
<th id="T2-date" class="text-center" scope="row">-</th>
<td class="text-center">
<input id="T2Slider" type="text" data-slider-id="T2-slider"/>
</td>
<td id="T2-growth" class="text-center">-</td>
<td id="T2-infected" class="text-right">-</td>
<td id="T2-critical" class="text-right">-</td>
<td id="T2-ventilators" class="text-right">-</td>
<td id="T2-pumps" class="text-right">-</td>
</tr>
<tr>
<th id="T3-date" class="text-center" scope="row">-</th>
<td class="text-center">
<input id="T3Slider" type="text" data-slider-id="T3-slider"/>
</td>
<td id="T3-growth" class="text-center">-</td>
<td id="T3-infected" class="text-right">-</td>
<td id="T3-critical" class="text-right">-</td>
<td id="T3-ventilators" class="text-right">-</td>
<td id="T3-pumps" class="text-right">-</td>
</tr>
<tr>
<th id="T4-date" class="text-center" scope="row">-</th>
<td class="text-center">
<input id="T4Slider" type="text" data-slider-id="T4-slider"/>
</td>
<td id="T4-growth" class="text-center">-</td>
<td id="T4-infected" class="text-right">-</td>
<td id="T4-critical" class="text-right">-</td>
<td id="T4-ventilators" class="text-right">-</td>
<td id="T4-pumps" class="text-right">-</td>
</tr>
</tbody>
</table>
</div>
<div class="text-left">
<span>Parameters for moderate and worst case scenarios are marked with</span>
<span style="color: green">green</span>
<span>and</span>
<span style="color: red">red</span>
<span>stops, respectively, on the sliders</span>
</div>
</div>
</div>
<hr>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-slider/10.6.2/bootstrap-slider.min.js"></script>
<script src="https://unpkg.com/papaparse@latest/papaparse.min.js"></script>
<script src="js/covid19-model.js"></script>
<script src="js/state.js"></script>
</body>
</html>