-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
69 lines (53 loc) · 1.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link
href="https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;1,100;1,300;1,400&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="style.css">
<title>Covid Data</title>
</head>
<body>
<!-- Summary Banner -->
<div class="summary">
<!-- Header -->
<h1>Covid-19 Tracker</h1>
<div class="cases">
<div>
<div>Global Cases</div>
<div id="total-global">0</div>
</div>
<div>
<div>Global Deaths</div>
<div id="total-deaths">0</div>
</div>
<div>
<div>Global Recovered</div>
<div id="total-recovered">0</div>
</div>
</div>
<!-- Search input and tabular display of data -->
<div class="searchAndTable">
<div class="input">
<input type="text" id="search-input" placeholder="search by country ..." autocomplete="off">
<div>
Click on a country to view stats. Scroll to view more countries.
</div>
</div>
<table id="all-data"></table>
</div>
<!-- Canvas element to plot covid stats -->
<div id="graph" class="plot">
<p style="font-size: 1rem; font-weight: bold;">Select a country to view the plot here</p>
<br>
<canvas id="inner-graph"></canvas>
</div>
</div>
<!-- Chart.js import -->
<script src="./node_modules/chart.js/dist/Chart.min.js"></script>
<!-- Script Import -->
<script src="app.js"></script>
</body>
</html>