forked from chaseyb/COVID-19-Tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
294 lines (270 loc) · 15.6 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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Font Pack -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<!-- Mapbox CSS -->
<link rel="stylesheet" href="https://api.mapbox.com/mapbox-gl-js/v1.8.1/mapbox-gl.css">
<!-- Mapbox Geocoder CSS -->
<link rel="stylesheet"
href="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v2.3.0/mapbox-gl-geocoder.css"
type="text/css">
<!-- Map CSS -->
<link rel="stylesheet" href="assets/css/maps.css">
<!-- Custom CSS -->
<link rel="stylesheet" href="assets/css/style.css">
<!-- Project Title -->
<title>Covid-19 Tracker</title>
</head>
<body>
<!-- Main NavBar -->
<nav class="navbar navbar-light navbar-collapse bg-custom-1">
<a class="navbar-brand justify-content-between">
<img src="assets/images/covid-19-tracker.png" width="400" alt=""></a>
</nav>
<!-- Main Container -->
<div class="row"> </div>
<div class="container">
<div class="card-body">
<div class="row">
<h4 class="card-text ml-auto pr-4 pb-2">Location Search</h4>
</div>
<!-- Corona World Details Render here -->
<div id="corona-world-details">
</div>
<!-- Map -->
<div id="map"></div>
<select name="select-country" class="hidden">
</select>
<div id=" corona-details">
</div>
<div class="row"> </div>
<!-- Global Stats -->
<div class="card bg-custom-1 squeeze">
<div class="card-body bg-custom-1">
<!-- Flex! -->
<h5 class="card-title card-text d-flex justify-content-center" id="global-stats">Global Statistics
</h5>
<hr>
<!-- dynamically filled <p> - class .cards-p for CSS -->
<div class="row">
<div class="col card-text" id="global-cases"></div>
<div class="col card-text-2" id="global-recovered"></div>
<div class="col card-text-3" id="global-deaths"></div>
<div class="col card-text-4" id="global-new"></div>
</div>
<p class="card-text d-flex justify-content-center"><small class="text-muted"
id="global-time"></small></p>
</div>
</div>
<div class="row"> </div>
<!-- News -->
<div class="card bg-custom-1">
<div class="card-body">
<div>
<h5 class="card-title card-text" id="news">Global Covid-19 Headlines</h5>
</div>
<hr>
<!-- .hide is the toggle class, important! -->
<ul class="hide" id="news-list">
<!-- dynamically filled -->
</ul>
<!-- this button hides/reveals more info by toggling .hide in app.js -->
<button class="btn btn-outline-success shadow-none" id="more-news" type="button">
Show More</button>
</div>
</div>
<div class="row"> </div>
<!-- Select State if ipapi.co can't
detect where you are (VPN or mobile data network) -->
<div id="user-search">
<!-- Flex! -->
<div class="d-flex justify-content-center">
<p style="color:white;">Not Seeing Local Info?</p>
</div>
<div class="dropdown d-flex justify-content-center">
<button class="btn btn-sm btn-success shadow-none dropdown-toggle" id="dropdownMenuButton"
type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Select Your State
</button>
<div class="dropdown-menu pre-scrollable state-hide" aria-labelledby="dropdownMenuButton">
<!-- Some two word states are separated by an underscore, others are a hyphen. -->
<a class="dropdown-item" value="no">Select State</a>
<a class="dropdown-item" value="alabama">Alabama</a>
<a class="dropdown-item" value="alaska">Alaska</a>
<a class="dropdown-item" value="arizona">Arizona</a>
<a class="dropdown-item" value="arkansas">Arkansas</a>
<a class="dropdown-item" value="california">California</a>
<a class="dropdown-item" value="colorado">Colorado</a>
<a class="dropdown-item" value="connecticut">Connecticut</a>
<a class="dropdown-item" value="delaware">Delaware</a>
<a class="dropdown-item" value="florida">Florida</a>
<a class="dropdown-item" value="georgia">Georgia</a>
<a class="dropdown-item" value="hawaii">Hawaii</a>
<a class="dropdown-item" value="idaho">Idaho</a>
<a class="dropdown-item" value="illinois">Illinois</a>
<a class="dropdown-item" value="indiana">Indiana</a>
<a class="dropdown-item" value="iowa">Iowa</a>
<a class="dropdown-item" value="kansas">Kansas</a>
<a class="dropdown-item" value="kentucky">Kentucky</a>
<a class="dropdown-item" value="louisiana">Louisiana</a>
<a class="dropdown-item" value="maine">Maine</a>
<a class="dropdown-item" value="maryland">Maryland</a>
<a class="dropdown-item" value="massachusetts">Massachusetts</a>
<a class="dropdown-item" value="michigan">Michigan</a>
<a class="dropdown-item" value="minnesota">Minnesota</a>
<a class="dropdown-item" value="mississippi">Mississippi</a>
<a class="dropdown-item" value="missouri">Missouri</a>
<a class="dropdown-item" value="montana">Montana</a>
<a class="dropdown-item" value="nebraska">Nebraska</a>
<a class="dropdown-item" value="nevada">Nevada</a>
<a class="dropdown-item" value="new_hampshire">New Hampshire</a>
<a class="dropdown-item" value="new-jersey">New Jersey</a>
<a class="dropdown-item" value="new-mexico">New Mexico</a>
<a class="dropdown-item" value="new-york">New York</a>
<a class="dropdown-item" value="north-carolina">North Carolina</a>
<a class="dropdown-item" value="north_dakota">North Dakota</a>
<a class="dropdown-item" value="ohio">Ohio</a>
<a class="dropdown-item" value="oklahoma">Oklahoma</a>
<a class="dropdown-item" value="oregon">Oregon</a>
<a class="dropdown-item" value="pennsylvania">Pennsylvania</a>
<a class="dropdown-item" value="rhode_island">Rhode Island</a>
<a class="dropdown-item" value="south_carolina">South Carolina</a>
<a class="dropdown-item" value="south_dakota">South Dakota</a>
<a class="dropdown-item" value="tennessee">Tennessee</a>
<a class="dropdown-item" value="texas">Texas</a>
<a class="dropdown-item" value="utah">Utah</a>
<a class="dropdown-item" value="vermont">Vermont</a>
<a class="dropdown-item" value="virginia">Virginia</a>
<a class="dropdown-item" value="washington">Washington</a>
<a class="dropdown-item" value="west_virginia">West Virginia</a>
<a class="dropdown-item" value="wisconsin">Wisconsin</a>
<a class="dropdown-item" value="wyoming">Wyoming</a>
</div>
</div>
</div>
<div class="row"> </div>
<!-- State Stats -->
<div class="card bg-custom-1 squeeze">
<div class="card-body bg-custom-1">
<!-- Flex! -->
<h5 class="card-title card-text d-flex justify-content-center" id="state-stats">Local Statistics
</h5>
<hr>
<!-- .cards-p created dynamically in app.js-->
<div class="row state">
<div class="col card-text" id="state-name"></div>
<div class="col card-text-2" id="state-cases"></div>
<div class="col card-text-3" id="state-deaths"></div>
<div class="col card-text-4" id="state-new"></div>
</div>
<p class="card-text d-flex justify-content-center"><small class="text-muted"
id="state-time"></small></p>
</div>
</div>
<div class="row"> </div>
<div class="row"> </div>
<!-- Local Testing -->
<div class="card bg-custom-1">
<div class="card-body">
<div>
<h5 class="card-title card-text" id="local-testing">
Testing in Your State
<!-- span filled dynamically with user's state -->
<span id="your-state"></span></h5>
</div>
<hr>
<!-- .hide toggle class -->
<ul class="hide" id="test-list">
<!-- dynamically filled -->
</ul>
<!-- button toggles .hide -->
<button class="btn btn-outline-success shadow-none" id="more-tests" type="button">
Show More</button>
</div>
</div>
<div class="row"> </div>
<div class="card bg-custom-1">
<div class="card-body">
<div>
<h5 class="card-title card-text" id="more-resources">Additional Resources</h5>
</div>
<hr>
</p>
<ul id="more-list">
<p class="card-text">These are difficult times for everyone. Please do not suffer
alone.</p>
<li><a href="https://www.benefits.gov/help/faq/Coronavirus-resources" target="_blank">
Financial Support</a></li>
<li><a href="https://www.cdc.gov/coronavirus/2019-ncov/daily-life-coping/managing-stress-anxiety.html"
target="_blank">
Coping with Anxiety</a></li>
<li><a href="https://www.feedingamerica.org/find-your-local-foodbank" target="_blank">
Find Local Food Banks</a></li>
<li><a href="https://www.cdc.gov/coronavirus/2019-ncov/if-you-are-sick/care-for-someone.html"
target="_blank">
Caring for Loved Ones</a></li>
<li><a href="https://swingeducation.com/resources/20-online-learning-resources-to-help-you-get-through-coronavirus-school-closures/"
target="_blank">
Home Learning for All Ages</a></li>
<li><a href="https://1strcf.org/" target="_blank">Support our for First
Responders</a></li>
<li><a href="https://www.samhsa.gov/dtac/disaster-responders" target="_blank">
Resources for Mental Health Providers</a></li>
<li><a href="https://www.instyle.com/lifestyle/domestic-violence-coronavirus-how-to-help"
target="_blank">
Resources for Domestic Violence Survivors</a></li>
<li><a href="https://www.them.us/story/online-resources-lgbtq-coronavirus" target="_blank">
Resources for LGBTQ+ Community</a></li>
<li><a href="https://www.blogs.va.gov/VAntage/72856/veterans-multiple-resources-covid-19-information/"
target="_blank">
Resources for Veterans</a></li>
</ul>
</div>
</div>
<!-- Page Break -->
<br>
<!-- Footer -->
<p class="m-0 align-self-center text-center"><a style="color: white; letter-spacing: 0.1em;">
Made with <img style="margin-top: -2px;" width="20" height="20"
src="https://img.icons8.com/dusk/64/000000/like.png" /> by <a
style="font-size: 15px; color: white; letter-spacing: 0.1em;" href="https://github.com/chaseyb"
target="_blank">Chase Johnson,</a><a
style="font-size: 15px; color: white; letter-spacing: 0.1em;"
href="https://github.com/gloriousLoaf" target="_blank"> David Metcalf,</a><a
style="font-size: 15px; color: white; letter-spacing: 0.1em;"
href="https://github.com/mauricechouam" target="_blank"> Maurice Chouamou </a>
</p>
</div>
</div>
<!-- Moment.js for Stats Cards -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js"></script>
<!-- main jQuery library -->
<script src="https://code.jquery.com/jquery-3.5.0.min.js"
integrity="sha256-xNzN2a4ltkB44Mc/Jz3pT4iU1cmeR0FkXs4pru/JxaQ=" crossorigin="anonymous"></script>
<!-- jQuery UI (must have for Show More buttons) -->
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"
integrity="sha256-VazP97ZCwtekAsvgPBSUwPFKdrwD3unUfSGVYrahUqU=" crossorigin="anonymous"></script>
<!-- Popper.js (must have for Bootstrap.js) -->
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
crossorigin="anonymous"></script>
<!-- Bootstrap.js (must have for State dropdown) -->
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"
integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI"
crossorigin="anonymous"></script>
<!-- Nprogress JS (Progress Bar) -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/nprogress/0.2.0/nprogress.min.js"></script>
<!-- Mapbox JS -->
<script src="https://api.mapbox.com/mapbox-gl-js/v1.10.0/mapbox-gl.js"></script>
<!-- Mapbox JS Geocoder Plugins -->
<script
src="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v2.3.0/mapbox-gl-geocoder.min.js"></script>
<!-- Our Custom JS -->
<script src="assets/javascript/maps.js"></script>
</body>
</html>