-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
38 lines (35 loc) · 1.49 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
<html>
<head>
<title>Corona Virus App</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="function showData().js"></script>
<link rel="stylesheet" href="main.css">
</head>
<body>
<h1>Covid19 Checker</h1>
<div>
<form>
<label>country:</label>
<input type="text" id="cname" placeholder="Enter country....">
<br/><br/>
<label>start date:</label>
<input type="date" id="sdate" placeholder="Start date..">
<br/><br/>
<label>end date:</label>
<input type="date" id="edate" placeholder="End date..">
<br/><br/>
<button class="btn btn-success" onClick="showData()">Submit</button>
</form>
<div id="res">
<h4>Confirmed Cases:<span id="confirmed"></span> </h4>
<h4>Active Cases: <span id="active"></span></h4>
<h4>Death Cases: <span id="deaths"></span> </h4>
</div>
</div>
<script src="./js/script.js"></script>
</body>
</html>