-
Notifications
You must be signed in to change notification settings - Fork 4
/
historic.html
141 lines (126 loc) · 6.18 KB
/
historic.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="SG Covid Case Clusters">
<meta name="author" content="Chi-Loong (www.vslashr.com)">
<meta name="google-site-verification" content="..." />
<meta property="og:title" content="SG Covid Case Clusters">
<meta property="og:type" content="website">
<meta property="og:url" content="https://covid.viz.sg">
<meta property="og:image" content="https://covid.viz.sg/img/covid_opengraph.jpg">
<meta property="og:image:width" content="1349" />
<meta property="og:image:height" content="928" />
<meta property="og:description" content="SG Covid Case Clusters. A graph-based dashboard that allows a more intuitive, easier way to see case relationships and spread since the start of the 2nd wave.">
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@vslashr" />
<meta name="twitter:creator" content="@chiloong" />
<link rel="icon" href="img/favicon-32x32.png">
<title>SG Covid Case Clusters</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<div class="container">
<div class="row">
<div class="col-lg-9">
<div id="graph"></div>
</div>
<div class="col-lg-3">
<h4 class="text-center display-6">Historic cases</h4>
<h6 class="text-center">From 28 Apr 2021 to <span id="lastdate"><span></h6>
<h6 class="text-center">Total: <span id="casecount"><span></h6>
<div class="text-center">
<div class="btn-group py-1" role="group" aria-label="">
<input type="radio" class="btn-check" name="btnradio" id="dateSelect" autocomplete="off" checked>
<label class="btn btn-outline-secondary btn-sm" for="dateSelect">Date</label>
<input type="radio" class="btn-check" name="btnradio" id="ageSelect" autocomplete="off">
<label class="btn btn-outline-secondary btn-sm" for="ageSelect">Age</label>
<input type="radio" class="btn-check" name="btnradio" id="genderSelect" autocomplete="off">
<label class="btn btn-outline-secondary btn-sm" for="genderSelect">Gender</label>
<input type="radio" class="btn-check" name="btnradio" id="nationalitySelect" autocomplete="off">
<label class="btn btn-outline-secondary btn-sm" for="nationalitySelect">Nationality</label>
</div>
<div class="btn-group py-1" role="group" aria-label="">
<input type="radio" class="btn-check" name="btnradio" id="vaccinatedSelect" autocomplete="off">
<label class="btn btn-outline-secondary btn-sm" for="vaccinatedSelect">Vaccinated</label>
<input type="radio" class="btn-check" name="btnradio" id="asymptomaticSelect" autocomplete="off">
<label class="btn btn-outline-secondary btn-sm" for="asymptomaticSelect">Asymptomatic</label>
</div>
</div>
<svg id="summarychart"></svg>
<div class="input-group rounded">
<input type="search" class="form-control rounded" placeholder="Search occupation, organization" aria-label="Search" id="searchField"/>
<div class="input-group-append">
<button type="submit" id="searchSubmit" class="btn btn-secondary" type="button"><img src="img/magnifying-glass.svg" width="15"/></button>
</div>
</div>
<p class="text-center small">Click on any bar to seach by category bin. Click any bar again to show all data.</p>
<h5 class="text-center px-3 py-3" id="caseInfoText">Case info (<span style="color:#00f">selected</span>)</h5>
<table class="table small">
<tbody>
<tr>
<td style="width:40%">Case</td>
<td id="case">-</td>
</tr>
<tr>
<td style="width:40%">Age</td>
<td id="age">-</td>
</tr>
<tr>
<td style="width:40%">Gender</td>
<td id="gender">-</td>
</tr>
<tr>
<td style="width:40%">Nationality</td>
<td id="nationality">-</td>
</tr>
<tr>
<td style="width:40%">Occupation</td>
<td id="occupation">-</td>
</tr>
<tr>
<td style="width:40%">Organization</td>
<td id="organization">-</td>
</tr>
<tr>
<td style="width:40%">Date recorded</td>
<td id="date_recorded">-</td>
</tr>
<tr>
<td style="width:40%">Vaccinated</td>
<td id="vaccinated">-</td>
</tr>
<tr>
<td style="width:40%">Asymptomatic (when recorded)</td>
<td id="asymptomatic">-</td>
</tr>
</tbody>
</table>
<hr/>
<p class="text-center small">Click to select case. Search to highlight cases. Use scrollwheel to zoom. Drag background to pan.</p>
<h6 class="text-center"><a href="about.html">About piece</a></h6>
<h6 class="text-center"><a href="index.html">Back to SG Covid case clusters</a></h6>
<p class="text-center small">Chi-Loong | Supported by <a href="https://better.sg/" target="_blank"><img src="img/bettersg-logo.png" width="50"/></a></p>
<div>
</div>
</div>
</div>
</div>
<script src="js/d3.v6.min.js"></script>
<script src="js/lodash.min.js"></script>
<script src="js/historic.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-38155188-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>