-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
194 lines (175 loc) · 6.91 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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,700&display=swap" rel="stylesheet">
<title>Corona Counter</title>
</head>
<body>
<header class="header">
<div class="container">
<div class="row">
<div class="col-lg-6 col-md-8 col-sm-10">
<a href=""><h1><img src="img/logo.svg" alt="logo">Corona Counter</h1></a>
</div>
<div class="menu col-xl-3 offset-xl-3 col-lg-4 offset-lg-2">
<nav>
<ul class="menu-list">
<li class="menu-item"><a href="#" class="stay-safe">Stay Safe</a></li>
<li class="menu-item"><a href="https://www.figma.com/file/oJEMva7Kc0mbnsEfhTVWgF/Corona-Counter?node-id=0%3A1">Mobile App</a></li>
</ul>
</nav>
</div>
<div class="menu-mobile col-md-4 col-sm-2">
<button class="openbtn" onclick="openNav()">☰</button>
</div>
</div>
</div>
</header>
<div id="mySidebar" class="sidebar">
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
<a href="#" class="stay-safe">Stay Safe</a>
<a href="https://www.figma.com/file/oJEMva7Kc0mbnsEfhTVWgF/Corona-Counter?node-id=0%3A1">Mobile App</a>
</div>
<div class="modal-screen" id="modal-screen">
<div class="modal" id="modal">
<div class="slide">
<div class="slide-content">
<img src="img/covid.png" alt="stay-safe">
<h3>Stay Safe</h3>
<p>Take care of your health and protect others by doing the following:</p>
<div class="startup-show">
<input type="checkbox" id="startup-check" name="startup" onclick="startModal()">
<label for="startup">Dont show on start</label>
</div>
</div>
</div>
<div class="slide">
<div class="slide-content">
<img src="img/water-tap.png" alt="stay-safe">
<h3>Wash your hands frequently</h3>
<p>Regularly and thoroughly clean your hands with an alcohol-based hand rub or wash them with soap and water.</p>
</div>
</div>
<div class="slide">
<div class="slide-content">
<img src="img/quarantine.png" alt="stay-safe">
<h3>Avoid touching eyes, nose and mouth</h3>
<p>Hands touch many surfaces and can pick up viruses. Once contaminated, hands can transfer the virus to your eyes, nose or mouth. From there, the virus can enter your body and can make you sick.</p>
</div>
</div>
<div class="slide">
<div class="slide-content">
<img src="img/coronavirus.png" alt="stay-safe">
<h3>Practice respiratory hygiene</h3>
<p>Make sure you, and the people around you, follow good respiratory hygiene. This means covering your mouth and nose with your bent elbow or tissue when you cough or sneeze. Then dispose of the used tissue immediately.</p>
</div>
</div>
<a class="prev" onclick="plusSlides(-1)">❮</a>
<a class="next" onclick="plusSlides(1)">❯</a>
<div class="slider__dots" style="text-align:center">
<span class="slider__dots--dot" onclick="currentSlide(1)"></span>
<span class="slider__dots--dot" onclick="currentSlide(2)"></span>
<span class="slider__dots--dot" onclick="currentSlide(3)"></span>
<span class="slider__dots--dot" onclick="currentSlide(4)"></span>
</div>
</div>
</div>
<section class="main" id="main">
<div class="container">
<div class="row">
<div class="col-lg-3 col-6 order-lg-1 order-12 circle-small">
<div class="circle-small-stroke">
<div class="circle-small-inner">
<h2 class="small-count" id="death-count">0</h2>
<h3 class="small-circle-heading">Deaths</h3>
</div>
</div>
</div>
<div class="col-lg-6 col-md-12 order-lg-3 order-1 circle-big">
<div class="circle-big-stroke">
<div class="circle-big-inner">
<input type="text" class="location" value="World" list="location-list" id="location" onchange="count()">
<datalist id="location-list">
<option value="World">
</datalist>
<h2 class="big-count" id="infected-count">0</h2>
<h3 class="big-circle-heading">Infected</h3>
</div>
</div>
</div>
<div class="col-lg-3 col-6 order-lg-9 order-12 circle-small">
<div class="circle-small-stroke green">
<div class="circle-small-inner">
<h2 class="small-count" id="recovered-count">0</h2>
<h3 class="small-circle-heading">Recovered</h3>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="container statistic">
<div class="row">
<div class="statistic-window">
<div class="col-md-10 offset-md-1 col-sm-10 offset-sm-1 location-statistic">
<h2 class="location-heading" id="location-heading">World</h2>
<h4 class="inline">Infected</h4>
<p class="inline" id="infected-percent">0%</p>
<progress class="location-bar infected-bar" id="infected-percent-bar" value="0" max="100"></progress>
<div class="infected-aditional">
<h5 id="infected-world">Something</h5>
</div>
<h4 class="inline">Dead</h4>
<p class="inline" id="dead-percent">0%</p>
<progress class="location-bar dead-bar" id="dead-percent-bar" value="0" max="100"></progress>
<div class="dead-aditional">
<h5 id="dead-critical">Critical</h5>
</div>
<h4 class="inline">Recovered</h4>
<p class="inline" id="recovery-percent">0%</p>
<progress class="location-bar recovered-bar" id="recovery-percent-bar" value="0" max="100">0%</progress>
<div class="recovery-aditional">
<h5 id="recovery-remaining">Remaining</h5>
</div>
</div>
<div class="col-md-10 offset-md-1 col-sm-10 offset-sm-1 location-today">
<h2 class="today-heading">Today</h2>
</div>
<div class="container">
<div class="row">
<div class="col-md-3 offset-md-1 col-sm-12 offset-sm-0 today-block">
<h3 class="today-count" id="today-dead">0</h3>
<h4 class="today-count-heading">Deaths</h4>
<div class="today-bar red"></div>
</div>
<div class="col-md-4 col-sm-12 today-block">
<h3 class="today-count" id="today-infected">0</h3>
<h4 class="today-count-heading">Infected</h4>
<div class="today-bar blue"></div>
</div>
<div class="col-md-3 col-sm-12 today-block">
<h3 class="today-count" id="today-recovered">0</h3>
<h4 class="today-count-heading">Recovered</h4>
<div class="today-bar green"></div>
</div>
</div>
</div>
</div>
</div>
</section>
<footer class="footer">
<div class="container">
<div class="row">
<p>© Copyright 2020, Developed by <a href="https://edwardleks.github.io/">Edward Leks</a></p>
<a href="https://github.com/EdwardLeks/corona_counter" class="os">Open Source</a>
</div>
</div>
</footer>
<script src="js/script.js"></script>
<script src="js/slider.js"></script>
</body>
</html>