-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
137 lines (133 loc) · 5.63 KB
/
index.html
File metadata and controls
137 lines (133 loc) · 5.63 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
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
131
132
133
134
135
136
137
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<title>COVID-19 Dashboard</title>
<link href="css/styles.css" rel="stylesheet" />
</head>
<body class="sb-nav-fixed" ng-app="covidApp" ng-controller="covidCtrl">
<nav class="sb-topnav navbar navbar-expand navbar-dark bg-secondary bg-gradient">
<!-- Navbar Brand-->
<a class="navbar-brand ps-3" href="index.html">COVID-19 Dashboard</a>
</nav>
<div id="layoutSidenav">
<div id="layoutSidenav_content">
<main class="bg-light bg-gradient">
<div class="container-fluid px-4">
<h2 class="mt-4">Global Summary</h2>
<br />
<div class="row">
<div class="col-xl-3 col-md-6 ">
<div class="card bg-primary text-white mb-4 shadow bg-gradient">
<h2 class="card-body">{{ statistics.location }}</h2>
<div class="card-footer d-flex align-items-center justify-content-between">
<b class="small text-white stretched-link" href="#">Location</b>
</div>
</div>
</div>
<div class="col-xl-3 col-md-6">
<div class="card bg-warning text-white mb-4 shadow bg-gradient">
<h2 class="card-body">{{ statistics.confirmed }}</h2>
<div class="card-footer d-flex align-items-center justify-content-between">
<b class="small text-white stretched-link" href="#">Total</b>
</div>
</div>
</div>
<div class="col-xl-3 col-md-6">
<div class="card bg-success text-white mb-4 shadow bg-gradient">
<h2 class="card-body">
{{ statistics.confirmed - statistics.deaths }}
</h2>
<div class="card-footer d-flex align-items-center justify-content-between">
<b class="small text-white stretched-link" href="#">Recovered</b>
</div>
</div>
</div>
<div class="col-xl-3 col-md-6">
<div class="card bg-danger text-white mb-4 shadow bg-gradient">
<h2 class="card-body">{{ statistics.deaths }}</h2>
<div class="card-footer d-flex align-items-center justify-content-between">
<b class="small text-white stretched-link" href="#">Deaths</b>
</div>
</div>
</div>
</div>
<div class="card mb-4 shadow">
<div class="card-header">
<i class="fas fa-table me-1"></i>
<b>Last Updated: </b><label>{{ statistics.lastReported | date : "fullDate" }}</label>
</div>
<div class="card-body">
<div class="dataTable-top">
<div class="dataTable-dropdown">
<label><select class="dataTable-selector">
<option value="5">5</option>
<option value="10" selected="">10</option>
<option value="15">15</option>
<option value="20">20</option>
<option value="25">25</option>
</select>
entries per page</label>
</div>
<div class="dataTable-search">
<input class="dataTable-input" placeholder="Search..." type="text" ng-model="searchText" />
</div>
</div>
<div class="dataTable-wrapper dataTable-loading no-footer sortable searchable fixed-columns">
<div class="dataTable-container">
<table id="datatablesSimple" class="dataTable-table table-light">
<thead>
<tr>
<th>No.</th>
<th>Country</th>
<th>Continent</th>
<th>Population</th>
<th>Total tests</th>
<th>Active</th>
<th>Recovered</th>
<th>Deaths</th>
<th>Total</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="country in countries | filter:searchText">
<td>{{ $index+1 }}</td>
<td>{{ country.country }}</td>
<td>{{ country.continent }}</td>
<td>{{ country.population }}</td>
<td>{{ country.tests.total}}</td>
<td>{{ country.cases.active }}</td>
<td>{{ country.cases.recovered }}</td>
<td>{{ country.deaths.total }}</td>
<td>{{ country.cases.total }}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</main>
<p></p>
<footer class="py-4 bg-light mt-auto">
<div class="container-fluid px-4">
<div class="d-flex align-items-center justify-content-between small">
<div class="text-muted">Copyright © COVID-19</div>
<div>
<a href="#">Privacy Policy</a>
·
<a href="#">Terms & Conditions</a>
</div>
</div>
</div>
</footer>
</div>
</div>
</body>
<script src="js/angular.min.js"></script>
<script src="js/filters.js"></script>
<script src="js/app.js"></script>
</html>