-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
201 lines (195 loc) · 7.12 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="description" content="CoWatch, a COVID-19 vaccine tracker for India">
<meta name="keywords" content="CoWatch, COVID19, Vaccine, Tracker">
<meta name="author" content="Divins Mathew">
<link rel="icon" href="./assets/img/icon.png" type="image/icon type">
<title>CoWatch</title>
<link rel="stylesheet" type="text/css" href="./css/styles.css">
<script src="./js/cowatch.js" defer></script>
<script src="./js/districts.js" defer></script>
<script src="./js/utils.js"></script>
<script>let relativePath = getUrlParts(window.location.href).pathname.replace('index.html', '');</script>
</head>
<body onload="onload()">
<nav>
<a href="#!" id="diozz" class="heading">CoWatch</a>
<button onclick="window.open('https://github.com/diozz/cowatch').focus();" class="github">
<img src="./assets/img/github.png" alt="GitHub">
<span>GitHub</span>
</button>
</nav>
<nav id="watchControls" class="right">
<div class="limitStatWidth">
<div id="watchHeading" class="bannerText">
</div>
<div id="notificationSettings">
<div class="checkboxHolder">
<input type="checkbox" id="browserNotificationCheckbox">
<label for="browserNotificationCheckbox">
<span>Browser notifications</span>
</label>
<input type="checkbox" id="watchFilteredCheckbox">
<label for="watchFilteredCheckbox">
<span>Watch only filtered slots</span>
</label>
</div>
</div>
<div id="foundBanner">
<div id="foundBannerHead">New Vaccination Slot Available!</div>
<div id="foundBannerBody"></div>
<div id="foundBannerButtons">
<button id="muteAlertButton" onclick="mute();">
<img src="./assets/img/mute.png" alt="Mute">
<span>Mute</span>
</button>
<button id="dismissAlertButton" onclick="dismiss();">
<img src="./assets/img/close.png" alt="Dismiss">
<span>Dismiss</span>
</button>
<button onclick="mute(); window.open('https://selfregistration.cowin.gov.in/', '_blank').focus();">
<img src="./assets/img/link.png" alt="Open Link">
<span>CoWin</span>
</button>
</div>
</div>
</div>
<div class="watchButtonHolder">
<button id="start-button" onclick="start();">
<img src="./assets/img/play-button.png" alt="Start Watching">
<span>Start Watching</span>
</button>
<button id="stop-button" disabled onclick="stop();">
<img src="./assets/img/stop.png" alt="Stop Watching">
<span>Stop Watching</span>
</button>
</div>
</nav>
<div class="root">
<div class="content">
<div id="filtersSideNav" class="side card widthExpand">
<div class="headBack flex-wide">
<span>Filter.</span>
<span id="clearFiltersButton" class="clearButton hidden">Clear all</span>
</div>
<div id="filtersHolder">
<div class="filterGroup">
<span class="filterGroupHead">Fee</span>
<ul class="filterList" id="feeFilterList">
</div>
<div class="filterGroup">
<span class="filterGroupHead">Dates</span>
<ul class="filterList" id="dateFilterList">
</ul>
</div>
<div class="filterGroup">
<span class="filterGroupHead">Vaccines</span>
<ul class="filterList" id="vaccineFilterList">
</ul>
</div>
<div class="filterGroup">
<span class="filterGroupHead">Age Groups</span>
<ul class="filterList" id="ageGroupFilterList">
</ul>
</div>
<div class="filterGroup">
<span class="filterGroupHead">Slots for</span>
<ul class="filterList" id="slotsFilterList">
</ul>
</div>
</div>
</div>
<div class="main">
<div id="filterControls" class="card heightExpand">
<div class="headBack">Locate.</div>
<div class="locationFilter">
<div class="group">
<div class="groupHead">State</div>
<select id="states"></select>
</div>
<div class="group">
<div class="groupHead">District</div>
<select id="districts"></select>
</div>
</div>
</div>
<div id="tableContainer">
<div id="tableInfo">
<div id="tableInfoHeader">
<div>
<div id="availability"></div>
<div id="last-refreshed"></div>
</div>
<div class="flex">
<button id="refresh-button" onclick="refreshTable(false);">
<img src="./assets/img/reload.png" alt="Reload">
<span>Refresh</span>
</button>
<button onclick="window.open('https://selfregistration.cowin.gov.in/', '_blank').focus();">
<span>Register @CoWin</span>
</button>
</div>
</div>
<div id="tableInfoStrip" class="hidden">
<div>Watch is filtered by</div>
<div id="filersStrip"></div>
</div>
</div>
<div id="notFoundImgContainer" class="hidden">
<img src="./assets/img/sad.png" alt="No centers found">
</div>
<div id="failed" class="hidden">
<h3>Failed to connect</h3>
<span onclick="refreshTable(true);">Try again</span>
</div>
<div class="windows8" id="loadingIndicator">
<div class="wBall" id="wBall_1">
<div class="wInnerBall"></div>
</div>
<div class="wBall" id="wBall_2">
<div class="wInnerBall"></div>
</div>
<div class="wBall" id="wBall_3">
<div class="wInnerBall"></div>
</div>
<div class="wBall" id="wBall_4">
<div class="wInnerBall"></div>
</div>
<div class="wBall" id="wBall_5">
<div class="wInnerBall"></div>
</div>
</div>
<table id="table" class="highlight striped">
<thead>
<tr class="subHeaderRow1">
<th>#</th>
<th class="nameWidthLimit">Hospital</th>
<th>Fee</th>
<th class="cellMinWidth">Date</th>
<th class="cellMinWidth">Vaccine</th>
<th>Age Group</th>
<th colspan="3" style="text-align: center; width: auto;">Remaining Slots</th>
</tr>
<tr class="subHeaderRow2">
<td></td>
<td class="nameWidtdLimit"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td>Dose 1</td>
<td>Dose 2</td>
<td>Total</td>
</tr>
</thead>
<tbody id="hospitals">
</tbody>
</table>
</div>
</div>
</div>
</div>
</body>
</html>