-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
185 lines (164 loc) · 7.62 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Compiled and minified Materialize CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
<link rel="stylesheet" href="style.css">
<title>COVID-19 Tracker</title>
</head>
<body>
<main>
<div class="container">
<h1 class="center materialize-red-text"><a href="">COVID-19 Tracker</a></h1>
<div class="container">
<div class="progress" id="loading">
<div class="indeterminate"></div>
</div>
</div>
<div id="search-and-summary">
<div class="row">
<div class="input-field col s12 m12 l10 xl8 offset-l1 offset-xl2">
<input id="search-country" type="text">
<label for="search-country">Search Country</label>
</div>
</div>
<div id="summary-box">
<div class="row">
<div class="col s12 m12 l6 xl6">
<ul class="collection with-header">
<li class="collection-header">
<h5 class="center">Summary</h5>
</li>
<li class="collection-item">Total cases<span id="confirmed-cases"
class="badge orange white-text"></span> </li>
<li class="collection-item">Cases in last 24 hours<span id="confirmed-today"
class="badge orange white-text"></span></li>
<li class="collection-item">Recovered patients<span id="recovered-patients"
class="badge green white-text"></span></li>
<li class="collection-item">Deaths<span id="all-deaths"
class="badge red white-text"></span>
</li>
<li class="collection-item">Deaths in last 24 hours<span id="new-deaths-today"
class="badge red white-text"></span></li>
</ul>
</div>
<div class="col s12 m12 l6 xl6">
<ul class="collection with-header">
<li class="collection-header">
<h5 class="center">Most infections</h5>
</li>
<li class="collection-item" id="most-1">
</li>
<li class="collection-item" id="most-2">
</li>
<li class="collection-item" id="most-3">
</li>
<li class="collection-item" id="most-4">
</li>
<li class="collection-item" id="most-5">
</li>
</ul>
</div>
</div>
</div>
<div class="container">
<div class="progress" id="loading-2">
<div class="indeterminate"></div>
</div>
</div>
</div>
<div id="infected-country-list">
<div class="row">
<h4 class="header center materialize-red-text" id="table-header">All Infected Countries</h4>
<br>
<table class="highlight" id="country-list-table">
<thead>
<tr>
<th>#</th>
<th>Country</th>
<th>Infected</th>
<th>Deaths</th>
<th>Recovered</th>
</tr>
</thead>
<!-- <tr>
<td>1</td>
<td>China</td>
<td>80,000</td>
<td>4,000</td>
<td>56,000</td>
</tr>
<tr>
<td>2</td>
<td>Italy</td>
<td>30,000</td>
<td>2,500</td>
<td>2,500</td>
</tr> -->
</table>
</div>
</div>
</div>
</main>
<footer>
<div class="container">
<div class="row">
<a class="left" href="https://covid19api.com/" target="_blank">Powered by:
covid19api</a>
<a class="right" href="https://github.com/farhanmasud/covid-19-tracker" target="_blank">Source
Code</a>
</div>
</div>
</footer>
<!-- Modal Structure -->
<div id="modal1" class="modal">
<div class="modal-content">
<h4 class="materialize-red-text center">COVID-19 in <span id="modal-country-name"></span></h4>
<table class="highlight" id="modal-table">
<thead>
<tr>
<th>Total Infected</th>
<th>Deaths</th>
<th>Infected Today</th>
<th>Deaths Today</th>
<th>Recovered</th>
</tr>
</thead>
<tr>
<td><span class="badge orange white-text" id="modal-cofirmed-cases"></span></td>
<td><span class="badge red white-text" id="modal-all-deaths"></span></td>
<td><span class="badge orange white-text" id="modal-confirmed-today"></span></td>
<td><span class="badge red white-text" id="modal-all-deaths-today"></span></td>
<td><span class="badge green white-text" id="modal-recovered-patients"></span></td>
</tr>
</table>
<div class="container">
<div class="progress" id="loading-3">
<div class="indeterminate"></div>
</div>
</div>
<div id="chart">
<canvas id="country-chart" width="300" height="300"></canvas>
</div>
<div id="chart-daily-death">
<canvas id="country-chart-daily-death" width="300" height="300"></canvas>
</div>
<div id="chart-daily">
<canvas id="country-chart-daily" width="300" height="300"></canvas>
</div>
</div>
<div class="modal-footer">
<a href="#" class="modal-close waves-effect waves-green btn-flat">Close</a>
</div>
</div>
<!-- Compiled and minified Materialize JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<!-- Axios JS -->
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<!-- Chart.js -->
<script src="https://cdn.jsdelivr.net/npm/chart.js@2.9.3/dist/Chart.min.js"></script>
<script src="script.js"></script>
</body>
</html>