-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
96 lines (93 loc) · 4.04 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Final Project - Daily Covid-19 Charts</title>
<meta name="description" content="Final Project">
<meta name="author" content="Garrett Allen">
<!-- BOOSTRAP JS -->
<!-- CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.14/dist/css/bootstrap-select.min.css">
<!-- jQuery and JS bundle w/ Popper.js -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.14/dist/js/bootstrap-select.min.js"></script>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script type="module" src="js/spin.js"></script>
<script type="module" src="js/load.js"></script>
<link rel="stylesheet" href="css/styles.css?v=1.0">
<link rel="stylesheet" href="css/spin.css?v=1.0">
</head>
<body>
<div id="spinner"></div>
<!-- Main Container -->
<div class="container mt-3 mb-2" id="container-main">
<div class="pb-2 mt-4 mb-2 border-bottom">
<div class="row">
<div class="col">
<h1>Covid-19 Across the World</h1>
</div>
<div class="col">
<form id="source-link" target="_blank" action="https://ourworldindata.org/coronavirus-data">
<input type="submit" value="Source of Data" />
</form>
</div>
</div>
</div>
<!-- Leaderboards -->
<div class="row mt-4">
<div class="col-sm">
<!-- Cases Table -->
<table class="table table-striped table-dark">
<thead>
<tr>
<th scope="col">Nation</th>
<th scope="col"># of Cases</th>
</tr>
</thead>
<tbody id="cases-table-body">
</tbody>
</table>
</div>
<div class="col-sm">
<!-- Deaths Table -->
<table class="table table-striped table-dark">
<thead>
<tr>
<th scope="col">Nation</th>
<th scope="col"># of Deaths</th>
</tr>
</thead>
<tbody id="deaths-table-body">
</tbody>
</table>
</div>
<div class="col-sm">
<!-- Tests Table -->
<table class="table table-striped table-dark">
<thead>
<tr>
<th scope="col">Nation</th>
<th scope="col"># of Tests</th>
</tr>
</thead>
<tbody id="tests-table-body">
</tbody>
</table>
</div>
</div>
<div id="charts">
<div class="row button-row">
<div class="col-sm"><button id="resetDefaults"></button></div>
</div>
<!-- Initialize a select menus -->
<select id="nation-select" class="w-auto" multiple data-max-options="3" data-live-search="true"></select>
<div class="perMillionChartTitle">
<p class="chartTitle"></p>
</div>
<svg id="perMillionChart"></svg>
<div>
</div>
</body>
</html>