-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
90 lines (87 loc) · 2.81 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Covid-19 Tracker</title>
<link href="./stylesheet.css" rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.js"></script>
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1"
crossorigin="anonymous"
/>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ygbV9kiqUc6oa4msXn9868pTtWMgiQaeYH7/t7LECLbyPA2x65Kgf80OJFdroafW"
crossorigin="anonymous"
></script>
</head>
<body>
<div class="result-container">
<div class="row serach-bar">
<div class="col-md-12">
<form autocomplete="off" id="myform">
<div class="autocomplete" style="width: 100%; padding: 10px">
<input
class="searchbox"
id="myInput"
type="text"
name="myCountry"
placeholder="Search Country"
style="border-radius: 5px"
/>
</div>
<div class="" style="padding: 10px; float: right; z-index: 9">
<input id="GO" type="submit" style="border-radius: 5px" />
</div>
</form>
</div>
</div>
<div class="row">
<br />
</div>
<div class="row">
<div class="col-md-12 d-flex justify-content-center">
<br />
<h1>Covid 19 Tracker</h1>
<br />
</div>
</div>
</div>
<div class="row">
<div class="col-md-8 nopadding">
<div class="container">
<div id="graphLocation">
<canvas id="myChart"></canvas>
</div>
</div>
</div>
<div class="col-md-4">
<div class="container" id="info">
<div class="row">
<h1>Latest Country Statistics:</h1>
<p id="CountryActive">Active:</p>
<p id="CountryRecovered">Recovered:</p>
<p id="CountryDeaths">Deaths:</p>
<p id="CountryConfirmed">Confirmed:</p>
</div>
<div class="row">
<p>
API: https://covid19api.com/ <br />
Data sourced from Johns Hopkins CSSE
</p>
<p></p>
<p class="mt-5">
Made with ❤ by Prithviraj Biswas ©
<script>
document.write(new Date().getFullYear());
</script>
</p>
</div>
</div>
</div>
</div>
<script src="apifiles.js"></script>
</body>
</html>