-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
118 lines (115 loc) · 5.13 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title>COVID-19 Tracker</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css2?family=Cabin&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="styles/index.css">
</head>
<body>
<div class="container">
<div class="row heading">
<div class="col-lg-6">
<h1>COVID-19 Tracker</h1>
</div>
<div class="col-lg-6">
<small id="last-updated">
<span>Loading...</span>
<i class="material-icons md-24" onclick="refresh()" title="Get latest data">refresh</i>
</small>
</div>
</div>
<div class="mb-4" id="shortcuts-container">
<small>Quick shortcuts:</small><br>
<button class="btn btn-link" onclick="showCountry('ireland')">Ireland</button>
<button class="btn btn-link" onclick="showCountry('uk')">UK</button>
<button class="btn btn-link" onclick="showCountry('malaysia')">Malaysia</button>
<button class="btn btn-link" onclick="showCountry('singapore')">Singapore</button>
<button class="btn btn-link" onclick="showCountry('australia')">Australia</button>
</div>
<div class="input-group">
<div class="input-group-prepend">
<label class="input-group-text" for="select-country">Selected Country</label>
</div>
<select class="custom-select" id="select-country" onchange="showCountry()">
<option selected>Loading...</option>
</select>
</div>
<div class="row mb-2">
<div class="col-lg-3 col-6">
<div class="card">
<div class="card-body">
<h5 class="card-title">Cases</h5>
<p class="card-text" id="cases">-</p>
</div>
</div>
</div>
<div class="col-lg-3 col-6">
<div class="card">
<div class="card-body">
<h5 class="card-title">Cases (Today)</h5>
<p class="card-text" id="cases-today">-</p>
</div>
</div>
</div>
<div class="col-lg-3 col-6">
<div class="card">
<div class="card-body">
<h5 class="card-title">Deaths</h5>
<p class="card-text" id="deaths">-</p>
</div>
</div>
</div>
<div class="col-lg-3 col-6">
<div class="card">
<div class="card-body">
<h5 class="card-title">Deaths (Today)</h5>
<p class="card-text" id="deaths-today">-</p>
</div>
</div>
</div>
<div class="col-lg-4 col-6">
<div class="card">
<div class="card-body">
<h5 class="card-title">Active</h5>
<p class="card-text" id="active">-</p>
</div>
</div>
</div>
<div class="col-lg-4 col-6">
<div class="card">
<div class="card-body">
<h5 class="card-title">Recovered</h5>
<p class="card-text" id="recovered">-</p>
</div>
</div>
</div>
<div class="col-lg-4 col-6">
<div class="card">
<div class="card-body">
<h5 class="card-title">Critical</h5>
<p class="card-text" id="critical">-</p>
</div>
</div>
</div>
</div>
<footer class="mt-4">
<small>Website by <a href="https://lucastan96.com">lucastan96</a></small><br>
<small>API by <a href="https://github.com/NovelCOVID/API" target="_blank">lmao.ninja</a></small>
</footer>
</div>
<script src="https://code.jquery.com/jquery-3.4.1.min.js"
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"
integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"
integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy"
crossorigin="anonymous"></script>
<script src="scripts/main.js"></script>
</body>
</html>