-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathindex.html
233 lines (223 loc) · 12.8 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta property="og:title" content="台灣 Covid-19 本土病例地圖">
<meta property="og:description" content="台灣 Covid-19 本土病例地圖">
<meta property="og:type" content="website">
<meta property="og:image" content="https://kiang.github.io/covid19/og_image.png">
<title>台灣 Covid-19 本土病例地圖</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="css/ol.css" type="text/css">
<link rel="stylesheet" href="css/ol3-sidebar.min.css" type="text/css" />
<link rel="stylesheet" href="//stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<style>
body {
padding: 0;
margin: 0;
overflow: hidden;
}
html,
body,
#map {
height: 100%;
font: 10pt "Helvetica Neue", Arial, Helvetica, sans-serif;
}
.lorem {
font-style: italic;
color: #AAA;
}
.ui-front {
z-index: 9999;
}
</style>
</head>
<body>
<div id="fb-root"></div>
<script>
(function (d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = 'https://connect.facebook.net/zh_TW/sdk.js#xfbml=1&version=v2.12&appId=1393405437614114&autoLogAppEvents=1';
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<div id="sidebar" class="sidebar collapsed">
<!-- Nav tabs -->
<div class="sidebar-tabs">
<ul role="tablist">
<li><a href="#home" role="tab"><i class="fa fa-bars"></i></a></li>
<li><a href="#book" role="tab"><i class="fa fa-book"></i></a></li>
<li><a href="#settings" role="tab"><i class="fa fa-gear"></i></a></li>
<li><a href="#list" role="tab"><i class="fa fa-tree"></i></a></li>
<li><a href="https://github.com/kiang/covid19" role="tab" target="_blank"><i
class="fa fa-github"></i></a></li>
<li><a href="#fb" role="tab"><i class="fa fa-facebook"></i></a></li>
</ul>
</div>
<!-- Tab panes -->
<div class="sidebar-content">
<div class="sidebar-pane" id="home">
<h1 class="sidebar-header"><span id="sidebarTitle">請點選地圖中的點</span><span class="sidebar-close"><i
class="fa fa-caret-left"></i></span></h1>
<div id="sidebarContent">請點選地圖中的點</div>
<hr />
<div id="odChart1"></div>
<div id="odChart2"></div>
<div id="odChart3"></div>
<div>
<table class="table table-dark">
<tbody>
<tr>
<th scope="row" colspan="2" style="text-align: center;">系統摘要</th>
</tr>
<tr>
<th scope="row">資料時間</th>
<td><span id="metaDay"></span></td>
</tr>
<tr>
<th scope="row">全國總數</th>
<td><span id="metaTotal"></span></td>
</tr>
<tr>
<th scope="row">異動時間</th>
<td><span id="metaModified"></span></td>
</tr>
<tr>
<td colspan="2">
<ul>
<li>本系統只有顯示 2024 以來病例數</li>
<li>一般每天下午 3:30 前更新當天病例數</li>
<li>增加率是以今日增加數除以累計數字的比率</li>
</ul>
</td>
</tr>
</tbody>
</table>
</div>
<hr />
<div class="btn-group-vertical" role="group" style="width: 100%;">
<a href="https://www.facebook.com/k.olc.tw/posts/pfbid034L1yJHvwVe7Z5w3JHnEYY2ZoDcuXW7iG9iEYTCoZEmfiYa7Tcafh5sbHTLWEkfw5l" target="_blank"
class="btn btn-primary btn-lg btn-block">臉書討論</a>
<a href="https://github.com/kiang/covid19/issues" target="_blank"
class="btn btn-primary btn-lg btn-block">網站問題反應</a>
</div>
<hr />
<div class="btn-group" role="group" style="width: 100%;">
<a href="https://kiang.github.io/covid19/city/" class="btn btn-secondary btn-lg">研判日/<br />縣市</a>
<a href="https://kiang.github.io/covid19/onset/" class="btn btn-secondary btn-lg">發病日/<br />鄉鎮市區</a>
<a href="https://kiang.github.io/covid19/onset/city/"
class="btn btn-secondary btn-lg">發病日/<br />縣市</a>
</div>
</div>
<div class="sidebar-pane" id="book">
<h1 class="sidebar-header"><span>說明</span><span class="sidebar-close"><i
class="fa fa-caret-left"></i></span></h1>
<div>
圖例:
<table class="table table-boarded table-striped" id="colorTable"></table>
相關介紹:
<ul>
<li><a href="https://www.facebook.com/k.olc.tw/posts/2001909086649211" target="_blank">台灣
Covid-19 本土病例地圖進入 2022</a></li>
<li><a href="https://www.facebook.com/k.olc.tw/posts/1828842897289165" target="_blank">台灣
Covid-19 本土病例地圖 感謝媒體報導</a></li>
<li><a href="https://www.facebook.com/k.olc.tw/posts/1849328438573944" target="_blank">台灣
Covid-19 本土病例地圖新增發病日版本</a></li>
<li><a href="https://www.facebook.com/k.olc.tw/posts/1841794945993960" target="_blank">台灣
Covid-19 本土病例地圖加入 7 日平均功能</a></li>
<li><a href="https://www.facebook.com/k.olc.tw/posts/1837371116436343" target="_blank">台灣
Covid-19 本土病例地圖縣市版本</a></li>
<li><a href="https://www.facebook.com/k.olc.tw/posts/1834079466765508" target="_blank">台灣
Covid-19 本土病例地圖加入播放功能</a></li>
<li><a href="https://www.facebook.com/k.olc.tw/posts/1833369803503141" target="_blank">台灣
Covid-19 本土病例地圖加入以增加率呈現的風格</a></li>
<li><a href="https://www.facebook.com/k.olc.tw/posts/1831158970390891" target="_blank">台灣
Covid-19 本土病例地圖加入切換日期的功能</a></li>
<li><a href="https://www.facebook.com/k.olc.tw/posts/1830871657086289" target="_blank">台灣
Covid-19 本土病例地圖操作說明</a></li>
<li><a href="https://www.facebook.com/k.olc.tw/posts/1827937360713052" target="_blank">台灣
Covid-19 本土病例地圖上線</a></li>
</ul>
資料來源:
<ul>
<li><a href="https://data.gov.tw/dataset/120711"
target="_blank">地區年齡性別統計表-嚴重特殊傳染性肺炎-依個案研判日統計</a></li>
<li><a href="https://data.cdc.gov.tw/dataset/aagstable-day-19cov"
target="_blank">地區年齡性別統計表-嚴重特殊傳染性肺炎(以日為單位) </a></li>
<li><a href="https://data.gov.tw/dataset/131138" target="_blank">各村(里)人口統計月報表(含同婚)</a></li>
<li><a href="https://data.gov.tw/dataset/7441" target="_blank">鄉鎮市區界線(TWD97經緯度)</a></li>
<li><a href="https://data.gov.tw/dataset/7442" target="_blank">直轄市、縣市界線(TWD97經緯度)</a></li>
</ul>
* 資料每天更新
</div>
</div>
<div class="sidebar-pane" id="settings">
<h1 class="sidebar-header"><span>設定</span><span class="sidebar-close"><i
class="fa fa-caret-left"></i></span></h1>
<div>
<a href="#" class="btn btn-primary btn-lg btn-block" id="btn-geolocation">回到目前位置</a>
<a href="#" class="btn btn-primary btn-lg btn-block" id="btn-taiwan">回到台灣</a>
<a href="#" class="btn btn-primary btn-lg btn-block" id="btn-print">列印地圖</a>
<p>
<hr />
</p>
</div>
<div class="btn-group btn-block">
<a href="#" class="btn btn-primary btn-lg" id="btn-Previous"> << 前一天</a>
<a href="#" class="btn btn-primary btn-lg" id="btn-Next">後一天 >> </a>
</div>
<div id="showingDay"></div>
<hr />
<div class="btn-group btn-block">
<a href="#" class="btn btn-secondary btn-lg" id="btn-play">播放</a>
<a href="#" class="btn btn-primary btn-lg" id="btn-pause">暫停</a>
</div>
<hr />
<div class="btn-group btn-block">
<a href="#" class="btn btn-primary btn-lg btn-switch" id="btn-countBased">累積數</a>
<a href="#" class="btn btn-secondary btn-lg btn-switch" id="btn-rateBased">增加率</a>
<a href="#" class="btn btn-secondary btn-lg btn-switch" id="btn-avgBased">7日平均</a>
</div>
</div>
<div class="sidebar-pane" id="list">
<h1 class="sidebar-header"><span>萬人確診率排行</span><span class="sidebar-close"><i
class="fa fa-caret-left"></i></span></h1>
<div id="listContent"></div>
</div>
<div class="sidebar-pane" id="fb">
<div class="fb-page" data-href="https://www.facebook.com/k.olc.tw/" data-tabs="timeline"
data-width="380" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false"
data-show-facepile="true">
<blockquote cite="https://www.facebook.com/k.olc.tw/" class="fb-xfbml-parse-ignore"><a
href="https://www.facebook.com/k.olc.tw/">江明宗</a></blockquote>
</div>
</div>
</div>
</div>
<div id="map" class="sidebar-map"></div>
<div style="position: fixed; bottom: 0px; left: 0px;">
<a href="https://facebook.com/k.olc.tw/" target="_blank" class="btn btn-lg alert-primary">北中西區台南市議員參選人江明宗 製作</a>
</div>
<script src="js/jquery.min.js" type="text/javascript"></script>
<script src="https://cdn.jsdelivr.net/npm/apexcharts"></script>
<script src="https://html2canvas.hertzen.com/dist/html2canvas.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.3.1/jspdf.umd.min.js"></script>
<script src="js/ol.js" type="text/javascript"></script>
<script src="js/ol5-sidebar.min.js" type="text/javascript"></script>
<script src="js/main.js" type="text/javascript"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-DNQTGESTW5"></script>
<script>
if (document.location.hostname != 'localhost') {
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-DNQTGESTW5');
}
</script>
</body>
</html>