-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
86 lines (80 loc) · 4.71 KB
/
Copy pathindex.html
File metadata and controls
86 lines (80 loc) · 4.71 KB
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
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="A site for viewing graphs of Covid-19 cases in your area.">
<meta name="keywords" content="Coronavirus, Covid, Covid-19, graph">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
<!-- Custom stylesheet -->
<link rel="stylesheet" href="./stylesheet.css">
<!-- Chart.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.js"
integrity="sha512-s+xg36jbIujB2S2VKfpGmlC3T5V2TF3lY48DX7u2r9XzGzgPsa6wTpOQA7J9iffvdeBN0q9tKzRxVxw1JviZPg=="
crossorigin="anonymous"></script>
<!-- Graph population logic -->
<script src="./graph.js"></script>
<title>UK Covid Graphs</title>
</head>
<body onload="handlePageLoad(document.getElementById('chartArea'), document.getElementById('areaForm'))">
<div class="container-fluid d-flex h-100 flex-column">
<header class="row pt-2 pb-2" id="header-container">
<div class="col-12">
<p id="header-text">Coronavirus UK</p>
</div>
</header>
<main class="row d-flex justify-content-start" id="main-container">
<div class="col-12 h-100">
<div class="d-flex flex-column h-100">
<div class="row d-flex mb-3" id="form-container">
<div class="col-12">
<div class="row">
<div class="col-12 text-center">
<h1 class="pt-4 pb-3">UK Covid Graphs</h1>
</div>
<div class="col-12">
<form class="row pt-3" id="areaForm" onsubmit="handleFormSubmit(event)">
<div
class="col-sm-12 col-md-4 col-lg-2 text-center text-md-right mb-md-2 mb-lg-0 pr-1">
<label for="areaTypeInput">Area Type:</label>
</div>
<div class="col-sm-12 col-md-8 col-lg-4 text-center text-md-left">
<select name="areaType" id="areaTypeInput">
<option value="utla">Upper Tier Local Authority</option>
<option value="ltla">Lower Tier Local Authority</option>
</select>
</div>
<div class="col-sm-12 col-md-4 col-lg-2 text-center text-md-right pr-1">
<label for="areaInput">Area:</label>
</div>
<div class="col-sm-12 col-md-8 col-lg-4 text-center text-md-left">
<select name="area" id="areaInput"></select>
</div>
</form>
</div>
</div>
</div>
</div>
<div class="row d-flex h-100" id="chart-outer-container">
<div class="col-12 h-100" id="chart-container">
<canvas id="chartArea"></canvas>
</div>
</div>
</div>
</div>
</main>
<footer class="row d-flex pt-2 pb-2" id="footer-container">
<div class="col-12 text-center">
<p id="footer-text" class="mb-0 mt-2">2020 - Developed by <a href="https://github.com/MurrayHS"
target="blank">MurrayHS</a> and <a href="https://github.com/JackM25"
target="blank">JackM25</a>. Data from the <a
href="https://coronavirus.data.gov.uk/developers-guide" target="blank">UK Government public
API</a>.</p>
</div>
</footer>
</div>
</body>
</html>