-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
130 lines (120 loc) · 3.82 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Corona Data</title>
<style>
.list-group-item{
font-size: 20px;
}
table{
width: 100%;
}
.sort{
margin-left: 10px;
}
#myChart{
overflow-x: scroll;
}
@media (max-width: 576px) {
table td ,table th{
font-size: medium;
}
.sort-menu{
display: flex;
justify-content: end;
flex-direction: column;
}
.sort{
margin-top: 5px;
}
}
@media(max-width:320px){
table td ,table th{
font-size: medium;
}
.sort-menu{
display: flex;
justify-content: end;
flex-direction: column;
}
.sort{
margin-top: 5px;
}
}
</style>
</head>
<body>
<div class="container ">
<div class="row d-flex justify-content-center">
<div class="col-md-8">
<ul class="list-group">
<li class="list-group-item d-flex justify-content-center align-items-center">
World
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
Total Cases :
<span class="badge badge-primary badge-pill total-cases"></span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
Recovery Cases:
<span class="badge badge-primary badge-pill recovery-cases"></span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
Death Cases :
<span class="badge badge-primary badge-pill death-cases"></span>
</li>
</ul>
</div>
</div>
</div>
<div class="container">
<div class="row justify-content-center">
<div class="col-md-12">
<canvas id="myChart" width="700" height="400"></canvas>
</div>
</div>
</div>
<div class="container my-3 sort-menu d-flex justify-content-center">
<select class="sort">
<option class="dropdown-toggle">Sort Total Case</option>
<option class="dropdown-item" value="sortlargest">sort total case from largest</option>
<option class="dropdown-item" value="sortsmalles">sort total case from smallest</option>
</select>
<select class="sort sort-alphabet">
<option class="dropdown-toggle">Sort By Country </option>
<option class="dropdown-item" value="a_z">A-Z</option>
<option class="dropdown-item" value="z_a">Z-A</option>
</select>
</div>
<div class="container-fluid">
<input class="form-control " id="tableSearch" type="text" placeholder="Search" style="width: 70%; margin: auto;">
</div>
<div class="container">
<div class="table-responsive my-3">
<table class="table">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Country</th>
<th scope="col">TotalConfirmed</th>
<th scope="col">NewConfirmed</th>
<th scope="col">Total Death</th>
<th scope="col">Total Recovered</th>
<th scope="col">Date</th>
</tr>
</thead>
<tbody class="data-table-body">
</tbody>
</table>
</div>
</div>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="chart.js"></script>
<script src="script.js"></script>
</body>
</html>