forked from noahlittle/COVID19TrackerCA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
provincevac.html
343 lines (317 loc) · 22.7 KB
/
provincevac.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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="description" content="Near real-time vaccination data for each province in Canada." />
<meta name="author" content="" />
<title>COVID-19 Tracker Canada - Provincial Vaccination Tracker</title>
<link href="css/styles.css?v=4.9" rel="stylesheet" />
<link href="https://cdn.datatables.net/1.10.20/css/dataTables.bootstrap4.min.css" rel="stylesheet" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/js/all.min.js" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.10.0/moment.min.js" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.4.1.min.js" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.min.js" crossorigin="anonymous"></script>
<script src="https://cdn.datatables.net/1.10.20/js/jquery.dataTables.min.js" crossorigin="anonymous"></script>
<script src="https://cdn.datatables.net/1.10.20/js/dataTables.bootstrap4.min.js" crossorigin="anonymous"></script>
<script src="https://api.mapbox.com/mapbox-gl-js/v1.8.1/mapbox-gl.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@turf/[email protected]/turf.min.js"></script>
<script type="text/javascript" src="js/config.js?v=6.4.4"></script>
<script type="text/javascript" src="js/vaccharts.js?v=6.7.4"></script>
<script type="text/javascript" src="js/vacregmain.js?v=9.5.5"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-160029240-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'UA-160029240-1');
</script>
</head>
<body class="sb-nav-fixed">
<nav class="sb-topnav navbar navbar-expand navbar-dark bg-dark">
<a class="navbar-brand" href="index.html">COVID-19 Tracker Canada</a>
<div class="d-none d-md-inline-block form-inline ml-auto mr-0 mr-md-3 my-2 my-md-0"></div>
<ul class="navbar-nav ml-auto ml-md-0">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" id="userDropdown" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><b>Menu</b></a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="userDropdown">
<a class="dropdown-item" href="about.html">About</a>
<a class="dropdown-item" href="sources.html">Sources</a>
<a class="dropdown-item" href="ontario.html">Ontario Data</a>
<a class="dropdown-item" href="notes.html">Data Notes</a>
<a class="dropdown-item" href="https://api.covid19tracker.ca">API Access</a>
<a class="dropdown-item" href="acknowledgements.html">Acknowledgments</a>
<a class="dropdown-item" href="licensing.html">Citation</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="mailto:[email protected]">Contact</a>
</div>
</li>
</ul>
</nav>
<div class="sb-sidenav-footer"></div>
<div id="layoutSidenav_content">
<main id="mainData">
<div class="container-fluid">
<br>
<br>
<br>
<h4><button type="button" class="btn btn-secondary mr-2 mt-2" onClick="goVax()">← Back to <i class="fab fa-canadian-maple-leaf"></i> COVID-19 Vaccination Tracker</h4></button>
<br>
<h1><span class="display-province"></span> Vaccination Data</h1>
<br>
<div class="card">
<div class="card-body">
Regional data may be updated later than provincial data, and may be partially or completely unavailable for some provinces.
</div>
</div>
<br />
<div class="row display-select">
<div class="col-md">
<div class="card bg-dark text-white mb-4">
<div class="card-body summary-header-vaccinations">
<h1></h1> <b></b>
<div class="material-switch pull-right">
<div class="switch-label d-inline-block">People <span data-toggle='tooltip' title='When toggled, this value indicates the number of people who have received at least one dose.'><i class="far fa-question-circle"></i></span></div>
<div class="d-inline-block">
<input id="criticalCases" name="criticalCases" type="checkbox" />
<label for="criticalCases" class="label-success"></label>
</div>
</div>
<div class="summary-arrow" data-field="vaccinations"><span class="arrow-down"><i class="fa fa-angle-down"></i></span></div>
<div class="summary-dropdown-container"></div>
</div>
</div>
</div>
<div class="col-md">
<div class="card bg-secondary text-white mb-4">
<div class="card-body summary-header-vaccineDelivered"><h1></h1><b></b> <span data-toggle='tooltip' title='Percentage of doses distributed to the province that have been reported as administered'><i class="far fa-question-circle"></i></span></div>
</div>
</div>
<div class="col-md">
<div class="card bg-secondary text-white mb-4">
<div class="card-body summary-header-percentVaccinated">
<h1></h1> <b></b>
<div class="material-switch pull-right">
<div class="switch-label d-inline-block">Eligible <span data-toggle='tooltip' title='When toggled, this value gives the percentage of those 12+ who have recieved at least one dose.'><i class="far fa-question-circle"></i></span></div>
<div class="d-inline-block">
<input id="popDoseToggle" name="criticalCases" type="checkbox" />
<label for="popDoseToggle" class="label-success"></label>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row display-select">
<div class="col-xl-6" id="displayMap">
<div class="card mb-4">
<div class="card-header"><i class="fab fa-canadian-maple-leaf"></i> COVID-19 Vaccinations in <span class="display-province"></span></div>
<div class="card-body overflow-auto">
<h3> <span id="updateTime"></span> <b><i id="updateVax"></i></b> doses of approved COVID-19 vaccines have been administered in <span class="display-province"></span>. </h3>
<br>
<p>As <span class="display-province"></span> begins their COVID-19 vaccination program, we're tracking doses administered in every region. <b><i><span id="updateChangeVax"></span></i></b> new doses have been reported administered in <span class="display-province"></span> today.</p>
<p>In total, <b><i><span id="updateTotalDel"></span></i></b> doses of COVID-19 vaccines have been delivered to <span class="display-province"></span> for administration. As of today, <b><i><span id="updatePerAdm"></span></i></b> of doses delivered to <span class="display-province"></span> have been administered.
<p>The Pfizer-BioNTech, Moderna and AstraZeneca vaccines require two doses, a number of weeks apart, for full efficacy. Consequently, we report both the total number of doses administered, and the total number of people who have been fully vaccinated. As of today, more than <b><span id="updateVaxPpl"></span></b> people from <span class="display-province"></span> have received at least one dose of an approved COVID-19 vaccine. <b><span id="updateTwoDoses"></span></b> people from <span class="display-province"></span> are fully vaccinated against COVID-19, having received both required doses.</p>
<hr />
<p>
Our data is aggregated by volunteers exclusively from official government sources, updated throughout the day in near real-time. All of our data is freely available for use via our <a href="https://api.covid19tracker.ca">API</a> or in <a href="https://docs.google.com/spreadsheets/d/1PjkemMdFSZgA-M8Esr6rbNjHiyfcXcBxPeMjselJIso/edit?usp=sharing">CSV format</a>. Find more information on the sources we use <a href="https://covid19tracker.ca/vacsources.html">here</a>.
</p>
<p>
Find all of the data we track (including cases, fatalities, hospitalizations, criticals, testing and recoveries) <a href="https://covid19tracker.ca">here</a>.
</p>
</div>
</div>
</div>
<div class="col-xl-6">
<div class="card mb-4">
<div class="card-header"><i class="fas fa-chart-bar mr-1"></i><span id="newCasesByProvince">Doses By Region</span></div>
<div class="card-body" id="provinceCasesChartDiv">
<canvas id="provinceCasesChart" width="100%"></canvas>
<div class="chart-options text-center">
<span class="mx-2 d-none">
<label><input type="checkbox" onclick="toggleChartSetting(this)" />Last 3 Weeks</label>
</span>
<span class="mx-2">
<label><input type="checkbox" onclick="toggleChartSetting(this)" />Logarithmic Scale</label>
</span>
<span class="mx-2 d-none">
<label><input type="checkbox" onclick="toggleChartSetting(this)" />Rolling Average (7 Days)</label>
</span>
</div>
</div>
</div>
</div>
</div>
<div class="row display-select">
<div class="col-xl-6">
<div class="card mb-4">
<div class="card-header"><i class="fas fa-chart-area mr-1"></i><span id="newCasesByDay"><span class="display-province"></span> New Doses</span></div>
<div class="card-body" id="dailyCaseChartDiv">
<canvas id="dailyCaseChart" width="100%" height="40"></canvas>
<div class="chart-options text-center">
<span class="mx-2">
<label><input type="checkbox" onclick="toggleChartSetting(this)" />Last 3 Weeks</label>
</span>
<span class="mx-2">
<label><input type="checkbox" onclick="toggleChartSetting(this)" />Logarithmic Scale</label>
</span>
<span class="mx-2">
<label><input type="checkbox" onclick="toggleChartSetting(this)" />Rolling Average (7 Days)</label>
</span>
</div>
</div>
</div>
</div>
<div class="col-xl-6">
<div class="card mb-4">
<div class="card-header"><i class="fas fa-chart-area mr-1"></i><span id="newCasesByDay"><span class="display-province"></span>'s Vaccine Administration / Distribution Gap</span></div>
<div class="card-body" id="dailyCaseChartDiv">
<canvas id="cumulativeCaseChart" width="100%" height="40"></canvas>
<div class="chart-options text-center">
<span class="mx-2">
<label><input type="checkbox" onclick="toggleChartSetting(this)" />Last 3 Weeks</label>
</span>
<span class="mx-2">
<label><input type="checkbox" onclick="toggleChartSetting(this)" />Logarithmic Scale</label>
</span>
<span class="mx-2">
<label><input type="checkbox" onclick="toggleChartSetting(this)" />Rolling Average (7 Days)</label>
</span>
</div>
</div>
</div>
</div>
</div>
<br>
<div class="card mb-12">
<div class="row no-gutters">
<div class="col-md-8">
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Prov -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-5158964525165314"
data-ad-slot="9821509304"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
<div class="col-md-4">
<div class="card-body">
<h5 class="card-title">Advertisement</h5>
<p class="card-text">The <a href="https://covid19tracker.ca/about.html">COVID-19 Tracker Canada project</a> is an independent volunteer-run project that receives no formal funding. To ensure that we're able to continue to provide updates indefinitely, we're temporarily testing ads on some pages. If made permanent, this will allow us to cover the costs of site infrastructure and continue to expand data collection and visualizations into the future.</p>
<a class="btn btn-dark" href="mailto:[email protected]" role="button">Give Feedback</a>
</div>
</div>
</div>
</div>
<br>
<br>
<div class="card mb-4 display-select">
<div class="card-header"><i class="fas fa-table mr-1"></i>Doses By Region</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-bordered table-hover" id="dataTable2" width="100%" cellspacing="0">
<thead>
<tr>
<th>Region</th>
<th>Total Doses Administered</th>
<!--<th>Total Doses Delivered</th>
<th>% of Doses Administered <span data-toggle='tooltip' title='Percentage of doses distributed to the provinces that have been reported as administered'><i class="far fa-question-circle"></i></span></th>
<th>Doses Administered / 100k Population</th>-->
<th>People Fully Vaccinated <span data-toggle='tooltip' title='The number of people reported as having received both required doses'><i class="far fa-question-circle"></i></span></th>
</tr>
</thead>
<tfoot>
<tr>
<td><i><b><span class="display-province"></span></b></i></td>
<td><i><b id="totalVaccinationsCanada"> </b></i></td>
<!--<td><i><b id="totalVaccinationsDistCanada" data-per-capita=""></b></i></td>
<td><i><b id="totalVaccinationsPercentCanada" data-per-capita=""></b></i></td>
<td><i><b id="vaccinatedPerCanada"></b></i></td>-->
<td><i><b id="totalVaccinatedCanada"> </b></i></td>
</tr>
</tfoot>
<tbody id="vaccinationsProvinceTable"></tbody>
</table>
</div>
</div>
</div>
<div class="card">
<div class="card-body">
Delivery and administration data by vaccine product are not updated as frequently as the values reported above, and totals may not match. Administration data by vaccine type is updated each Friday with data up to and including the previous Saturday. Delivery data by vaccine product was last updated on <b id="vaccineDistributionLastUpdate2"></b>.
</div>
</div>
<br>
<div class="row">
<div class="col-xl-6">
<div class="card mb-4 vac-dist">
<div class="card-header"><i class="fas fa-chart-area mr-1"></i><span id="newCasesByDay"><span class="display-province"></span> Vaccines Distributed</span></div>
<div class="card-body" id="vaccineDistributionDiv">
<canvas class="vaccine-distribution" id="vaccineDistribution" height="200"></canvas>
<br>
<br>
<div class="card">
<div class="card-body">
<i>Delivery data by <i>vaccine product</i> was last updated on <b id="vaccineDistributionLastUpdate"></b>.</i>
</div>
</div>
</div>
</div>
</div>
<div class="col-xl-6">
<div class="card mb-4">
<div class="card-header"><i class="fas fa-chart-bar mr-1"></i><span id="newVaccinesBarGraph"><span class="display-province"></span> Vaccines Distributed</span></div>
<div class="card-body" id="vaccineDistributionBar">
<canvas id="vaccineDistributionBarCanvas" width="100%"></canvas>
<div class="chart-options text-center">
<span class="mx-2 d-none">
<label><input type="checkbox" onclick="toggleChartSetting(this)" />Last 3 Weeks</label>
</span>
<span class="mx-2 d-none">
<label><input type="checkbox" onclick="toggleChartSetting(this)" />Logarithmic Scale</label>
</span>
<span class="mx-2 d-none">
<label><input type="checkbox" onclick="toggleChartSetting(this)" />Rolling Average (7 Days)</label>
</span>
</div>
</div>
</div>
</div>
</div>
<hr />
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5158964525165314"
crossorigin="anonymous"></script>
<!-- Midpage -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-5158964525165314"
data-ad-slot="5106475882"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<br>
</div>
</main>
<footer class="py-4 bg-light mt-auto">
<div class="container-fluid">
<div class="d-flex align-items-center justify-content-between small">
<div class="text-muted">Copyright © COVID19Tracker.ca 2020 // Near real-time COVID-19 data updates for every region in Canada, tracking cases, deaths, vaccinations, hospitalizations, ICU, recoveries and testing // <a href="mailto:[email protected]">[email protected]</a></div>
<script type='text/javascript' src='https://ko-fi.com/widgets/widget_2.js'></script>
<script type='text/javascript'>kofiwidget2.init('Support The Project', '#29abe0', 'G2G11J6WQ'); kofiwidget2.draw();</script>
</div>
</div>
</footer>
</div>
</body>
</html>