-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
303 lines (264 loc) · 12.2 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
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
<?php
include_once('./php/env.php');
include_once('./php/functions.php');
?>
<!doctype html>
<html lang="ja" prefix="og: http://ogp.me/ns#">
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-86547605-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'UA-86547605-1');
</script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=<?php echo $googleAnalyticsId ?>"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', '<?php echo $googleAnalyticsId ?>');
</script>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>新型コロナウイルス感染情報 | COVID-19 Info Japan</title>
<meta name="description" content="日本を対象とした新型コロナウイルスの感染者、死亡者数などの情報を閲覧できます。">
<meta property="og:title" content="新型コロナウイルス感染情報 | COVID-19 Info Japan">
<meta property="og:type" content="website">
<meta property="og:url" content="https://afterworks.jp/tools/covid-19_japan/">
<meta property="og:image" content="https://afterworks.jp/tools/covid-19_japan/img/img_og_1.png">
<meta property="og:site_name" content="新型コロナウイルス感染情報 | COVID-19 Info Japan">
<meta property="og:description" content="日本を対象とした新型コロナウイルスの感染者、死亡者数などの情報を閲覧できます。">
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@InumberX">
<meta name="twitter:description" content="日本を対象とした新型コロナウイルスの感染者、死亡者数などの情報を閲覧できます。">
<link rel="shortcut icon" type="image/x-icon" href="./img/favicon.ico">
<link rel="icon" type="image/png" href="./img/favicon.png">
<link rel="apple-touch-icon" href="./img/favicon.png">
<link rel="canonical" href="https://afterworks.jp/tools/covid-19_japan/">
<link rel="stylesheet" href="./css/style.css?v=<?php echo getFileUpdateDate('/css/style.css'); ?>" class="cmn-css">
<link rel="stylesheet" href="./css/style_pc.css?v=<?php echo getFileUpdateDate('/css/style_pc.css'); ?>"
class="pc-css">
<script>
const nowYear = '<?php echo $nowYear ?>';
const nowMonth = '<?php echo $nowMonth ?>';
const nowDate = '<?php echo $nowDate ?>';
</script>
<script src="./js/lib/promise.polyfills.min.js?v=<?php echo getFileUpdateDate('/js/lib/promise.polyfills.min.js'); ?>"
defer></script>
<script
src="./js/lib/smooth-scroll.polyfills.min.js?v=<?php echo getFileUpdateDate('/js/lib/smooth-scroll.polyfills.min.js'); ?>"
defer></script>
<script src="./js/lib/chart.min.js?v=<?php echo getFileUpdateDate('/js/lib/chart.min.js'); ?>" defer></script>
<script src="./js/lib/flatpickr.min.js?v=<?php echo getFileUpdateDate('/js/lib/flatpickr.min.js'); ?>" defer></script>
<script src="./js/lib/axios.min.js?v=<?php echo getFileUpdateDate('/js/lib/axios.min.js'); ?>" defer></script>
<script src="./js/lib/vue.min.js?v=<?php echo getFileUpdateDate('/js/lib/vue.min.js'); ?>" defer></script>
<script src="./js/lib/vuex.js?v=<?php echo getFileUpdateDate('/js/lib/vuex.js'); ?>" defer></script>
<script src="./js/utils.js?v=<?php echo getFileUpdateDate('/js/utils.js'); ?>" defer></script>
<script src="./js/mixin.js?v=<?php echo getFileUpdateDate('/js/mixin.js'); ?>" defer></script>
<script src="./js/store.js?v=<?php echo getFileUpdateDate('/js/store.js'); ?>" defer></script>
<script src="./js/component.js?v=<?php echo getFileUpdateDate('/js/component.js'); ?>" defer></script>
<script src="./js/common.js?v=<?php echo getFileUpdateDate('/js/common.js'); ?>" defer></script>
</head>
<body>
<div class="wrap-all" id="app">
<header class="hd-wrap" id="header" v-cloak>
<div class="hd-menu-wrap">
<div class="inner">
<div class="hd-menu">
<ul class="hd-page-link_items">
<li class="hd-page-link_item">
<button class="page-link-btn is-total" @click="scrollPage('#sec_pref')">
<i class="icon is-stats-bars"></i>
<span class="page-link-btn_tx">合計</span>
</button>
</li>
<li class="hd-page-link_item">
<button class="page-link-btn is-history" @click="scrollPage('#sec_history')">
<i class="icon is-stats-dots"></i>
<span class="page-link-btn_tx">推移</span>
</button>
</li>
<li class="hd-page-link_item">
<button class="page-link-btn is-predict" @click="scrollPage('#sec_predict')">
<i class="icon is-stats-dots"></i>
<span class="page-link-btn_tx">予測</span>
</button>
</li>
<li class="hd-page-link_item">
<button class="page-top-btn" @click="scrollPage('body')">
<span class="page-top-tx">PAGE TOP</span>
</button>
</li>
</ul>
</div>
</div><!-- /.inner -->
</div><!-- /.hd-menu-wrap -->
<v-hd-menu-cnt :items="prefCheck"></v-hd-menu-cnt>
</header>
<main class="main-wrap">
<div class="main-box">
<div class="cnt-wrap">
<div class="cnt-box page-ttl-box">
<div class="inner">
<div class="page-ttl">
<h1 class="page-ttl_tx">
<img src="./img/img_logo.svg" alt="COVID-19 Info Japan" class="page-ttl_img">
</h1>
</div>
</div>
</div><!-- /.cnt-box -->
</div><!-- /.cnt-wrap -->
</div><!-- /.main-box -->
<div v-if="store.state.pageStatus === 'success'" v-cloak class="main-box">
<section class="cnt-wrap" id="sec_pref">
<div class="cnt-box cnt-ttl-box">
<div class="inner">
<dib class="cmn-cnt-box">
<dib class="cmn-cnt is-left">
<v-cnt-ttl ttl="各都道府県の<br class='sp-obj'>感染者/死亡者合計"></v-cnt-ttl>
</dib><!-- /.cmn-cnt -->
<dib class="cmn-cnt is-right">
<button class="refine-btn" @click="openModal()"><i
class="icon is-search"></i>{{ refineBtnTx }}</button>
</dib><!-- /.cmn-cnt -->
</dib><!-- /.cmn-cnt-box -->
</div>
</div><!-- /.cnt-box -->
<div class="cnt-box total-num-box">
<div class="inner">
<div class="total-num">
<v-total-num ttl="感染者" :tx="casesNum"></v-total-num>
<v-total-num ttl="死亡者" :tx="deathsNum"></v-total-num>
</div>
</div>
</div><!-- /.cnt-box -->
<div class="cnt-box">
<div class="inner">
<v-pref-graph :data="outputDataPref"></v-pref-graph>
</div>
</div><!-- /.cnt-box -->
<div class="cnt-box">
<div class="inner">
<v-pref-tbl :data="outputDataPref"></v-pref-tbl>
</div>
</div><!-- /.cnt-box -->
</section>
<section class="cnt-wrap" id="sec_history">
<div class="cnt-box cnt-ttl-box">
<div class="inner">
<dib class="cmn-cnt-box">
<dib class="cmn-cnt is-left">
<v-cnt-ttl ttl="全国の感染者/<br class='sp-obj'>死亡者推移"></v-cnt-ttl>
</dib><!-- /.cmn-cnt -->
<dib class="cmn-cnt is-right">
<v-calendar-history :min-date="historyMinDate" :max-date="historyMaxDate" :is-load="isLoadHistory">
</v-calendar-history>
</dib><!-- /.cmn-cnt -->
</dib><!-- /.cmn-cnt-box -->
</div>
</div><!-- /.cnt-box -->
<div class="cnt-box">
<div class="inner">
<v-history-graph :data="dataHistory"></v-history-graph>
</div>
</div><!-- /.cnt-box -->
</section>
<section class="cnt-wrap" id="sec_history_pref">
<div class="cnt-box cnt-ttl-box">
<div class="inner">
<dib class="cmn-cnt-box">
<dib class="cmn-cnt is-left">
<v-cnt-ttl ttl="全国の感染者推移"></v-cnt-ttl>
</dib><!-- /.cmn-cnt -->
<dib class="cmn-cnt is-right">
<v-calendar-history :min-date="historyMinDate" :max-date="historyMaxDate" :is-load="isLoadHistory">
</v-calendar-history>
</dib><!-- /.cmn-cnt -->
</dib><!-- /.cmn-cnt-box -->
</div>
</div><!-- /.cnt-box -->
<div class="cnt-box">
<div class="inner">
<v-history-graph :data="dataHistory"></v-history-graph>
</div>
</div><!-- /.cnt-box -->
</section>
<section class="cnt-wrap" id="sec_predict">
<div class="cnt-box cnt-ttl-box">
<div class="inner">
<dib class="cmn-cnt-box">
<dib class="cmn-cnt is-left">
<v-cnt-ttl ttl="全国の感染者/<br class='sp-obj'>死亡者予測"></v-cnt-ttl>
</dib><!-- /.cmn-cnt -->
<dib class="cmn-cnt is-right">
<v-calendar-predict :min-date="predictMinDate" :max-date="predictMaxDate" :is-load="isLoadPredict">
</v-calendar-predict>
</dib><!-- /.cmn-cnt -->
</dib><!-- /.cmn-cnt-box -->
</div>
</div><!-- /.cnt-box -->
<div class="cnt-box">
<div class="inner">
<v-predict-graph :data="dataPredict"></v-predict-graph>
</div>
</div><!-- /.cnt-box -->
</section>
<div class="cnt-wrap">
<div class="cnt-box">
<div class="inner">
<div class="mes-box is-btm">
<p class="mes_tx">本サイトに掲載されている情報は誤っている可能性があります。<br>より正確な情報は公的機関などが発表するものを参考にしてください。</p>
</div>
</div>
</div><!-- /.cnt-box -->
</div><!-- /.cnt-wrap -->
</div><!-- /.main-box -->
<div v-else-if="store.state.pageStatus === 'loading'" class="main-box">
<div class="cnt-wrap">
<div class="inner">
<div class="loading-box">
<div class="loading"></div>
<p class="loading_tx">Now Loading...</p>
</div>
</div>
</div><!-- /.cnt-wrap -->
</div><!-- /.main-box -->
<div v-else v-cloak class="main-box">
<div class="cnt-wrap">
<div class="cnt-box">
<div class="inner">
<div class="error-mes-box">
<div class="error-mes">
<h2 class="error-mes_ttl">データの取得に失敗しました。</h2>
<p class="error-mes_tx">お手数をおかけしますが、時間をおいて再度お試しください。</p>
</div>
</div>
</div>
</div><!-- /.cnt-box -->
</div><!-- /.cnt-wrap -->
</div><!-- /.main-box -->
</main>
<footer class="ft-wrap" id="footer">
<div class="ft-copy-wrap">
<div class="inner">
<div class="ft-copy-box">
<p class="ft-copy">
<small class="ft-copy_tx">© <i class="ft-copy_year"><?php echo $nowYear; ?></i> N/NE, All rights
reserved.</small>
</p>
</div>
</div><!-- /.inner -->
</div><!-- /.ft-copy-wrap -->
</footer>
</div><!-- /.wrap-all -->
</body>
</html>