-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
581 lines (540 loc) · 33.9 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
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Materialize -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.css"
integrity="sha512-t38vG/f94E72wz6pCsuuhcOPJlHKwPy+PY+n1+tJFzdte3hsIgYE7iEpgg/StngunGszVMrRfvwZinrza0vMTA=="
crossorigin="anonymous" />
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Anton&family=Pacifico&family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!-- Stylesheet -->
<link rel="stylesheet" href="style.css">
<title>CityScoop</title>
</head>
<body>
<!-- *************** START PAGE ****************-->
<div class="container-fluid start-page-wrap">
<div class="row">
<div class="col s12 brand mt-logo">
<!-- Application logo (image) -->
<img src="assets/img/logo-white.png" alt="logo-white">
</div>
</div>
<div class="row">
<div class="col s12 center-align brand">
<!-- Input bar -->
<input type="text place" placeholder="Find a City" id="search-bar">
<!-- Search icon -->
<div class="search-area">
<span class="icon waves-effect waves-light btn">⚲</span>
</div>
</div>
</div>
</div>
<!-- ***************** RESULTS PAGE **************** -->
<div class="results-page-wrap hide">
<nav>
<div class="nav-wrapper">
<a href="index.html" class="brand-logo">
<img src="assets/img/logo-white-accent.png" class="logo-svg" alt="CityScoop">
</a>
<ul id="nav-mobile" class="right hide-on-med-and-down">
<!-- Chris's search bar -->
<div class="row">
<div class="col s12 center-align brand">
<!-- Input bar -->
<input class="active" type="text place" placeholder="Find a City" id="nav-bar-results"> <!-- added 'results' to ID -->
<!-- Search icon -->
<div class="search-area">
<span class="nav-results waves-effect waves-light btn">⚲</span>
</div>
</div>
</div>
</ul>
</div>
</nav>
<main>
<!-- Hero Image w/ city H1 -->
<div class="hero-image">
<div class="hero-text">
<!-- use .city-name class to update user input city -->
<h1 class="hero-text city-name"></h1>
<p class="hero-population popSize"></p>
</div>
</div>
<div id="data-containers" class="container-fluid">
<!-- City Basic Info -->
<!-- NOTE: Use the results-container class when creating new divs. Add container-[white,lightGray,darkGray] for color. Append to #data-containers -->
<div class="container-fluid results-container container-lightGray" id="basic-info">
<div class="row">
<div class="col s12 center">
<h2>BASIC INFO</h2>
<hr>
<br>
<p id="city-summary" class="flow-text"></p>
</div>
</div>
<!-- Collabsible Divs -->
<ul class="collapsible popout">
<!-- JOB & SALARY COLLAPSIBLE DIV -->
<li>
<div class="collapsible-header"><i class="material-icons">work</i>JOB & SALARY
<!-- BADGE ICON (BACKEND: scale is as follows:
(badge-red & white-text): 0 < x < 3,
(badge-yellow & black-text): 3 <= x < 7,
(badge-green & white-text): 7 <= x <= 10) -->
<span id="salary-score" class="badge black-text hide-on-small-only">4.5 / 10</span>
</div>
<!-- Job and Salary Body -->
<div class="container-fluid container-white center collapsible-body">
<div class="row">
<div class=" s12 center">
<h3>JOB & SALARY</h3>
<hr>
</div>
</div>
<!-- Job and Salary Descriptive Text -->
<p class="flow-text">The job and salary score is an indicator based on a culmination of data including: job satisfaction, unemployment, and salary brackets relative to other cities. To view salary data for this city, select a job title below.</p>
<br>
<!-- Job and Salary Descriptive Text -->
<p class="flow-text">Salary Percentiles:</p>
<br>
<!-- Job Title Dropdown Trigger -->
<a class='dropdown-trigger btn center' href='#' data-target='dropdown1' id=dropdown-text>Select a Job Title</a>
<!-- Job Title Dropdown Structure -->
<ul id='dropdown1' class='dropdown-content'>
</ul>
<br>
<br>
<!-- Percentile Data -->
<div class="row center">
<div class="col s12 m4">
<p class="p-medium salary-25 display-output">NA</p>
<p class="">25th %</p>
</div>
<div class="col s12 m4">
<p class="p-medium salary-50 display-output">NA</p>
<p class="">50th %</p>
</div>
<div class="col s12 m4">
<p class="p-medium salary-75 display-output">NA</p>
<p class="">75th %</p>
</div>
</div>
</div>
</li>
<!-- EDUCATION COLLAPSIBLE DIV -->
<li>
<div class="collapsible-header"><i class="material-icons">school</i>EDUCATION
<!-- BADGE ICON (BACKEND: scale is as follows:
(badge-red & white-text): 0 < x < 3,
(badge-yellow & black-text): 3 <= x < 7,
(badge-green & white-text): 7 <= x <= 10) -->
<span id="education-score" class="badge hide-on-small-only">7.2 / 10</span>
</div>
<!-- Education Information Body -->
<div class="container-fluid container-white collapsible-body">
<div class="row">
<div class="col s12 center">
<h3>EDUCATION</h3>
<hr>
</div>
</div>
<!-- Education Summary Text -->
<p class="flow-text">The education score is based on a number of key datapoints relating to education in an area. The data points come from all levels of educational institutions as well as qualitative data from students themselves. Below are various indicators for educational success. </p>
<br>
<div class="row center">
<div class="col s12 m4">
<p class="p-medium math-high display-output"></p>
<p class="">HIGHEST MATH SCORES IN PISA TEST</p>
</div>
<div class="col s12 m4">
<p class="p-medium math-low display-output"></p>
<p class="">LOWEST MATH SCORES IN PISA TEST</p>
</div>
<div class="col s12 m4">
<p class="p-medium math-mean display-output"></p>
<p class="">MATH MEAN SCORE (COUNTRY)</p>
</div>
<div class="col s12 m4">
<p class="p-medium reading-high display-output"></p>
<p class="">HIGHEST READING SCORES IN PISA TEST</p>
</div>
<div class="col s12 m4">
<p class="p-medium reading-low display-output"></p>
<p class="">LOWEST READING SCORES IN PISA TEST</p>
</div>
<div class="col s12 m4">
<p class="p-medium reading-mean display-output"></p>
<p class="">READING MEAN SCORE(COUNTRY)</p>
</div>
<div class="col s12 m4">
<p class="p-medium science-high display-output"></p>
<p class="">HIGHEST SCIENCE SCORES IN PISA TEST</p>
</div>
<div class="col s12 m4">
<p class="p-medium science-low display-output"></p>
<p class="">LOWEST SCIENCE SCORES IN PISA TEST</p>
</div>
<div class="col s12 m4">
<p class="p-medium science-mean display-output"></p>
<p class="">SCIENCE MEAN SCORE(COUNTRY)</p>
</div>
<div class="col s12 m4">
<p class="p-medium math-ranking display-output"></p>
<p class="">PISA MATH RANKING (HIGHSCHOOL)</p>
</div>
<div class="col s12 m4">
<p class="p-medium reading-ranking display-output"></p>
<p class="">PISA READING RANKING (HIGHSCHOOL)</p>
</div>
<div class="col s12 m4">
<p class="p-medium science-ranking display-output"></p>
<p class="">PISA SCIENCE RANKING (HIGHSCHOOL)</p>
</div>
<div class="col s12 m4">
<p class="p-medium happy-students display-output"></p>
<p class="">HAPPY STUDENTS</p>
</div>
</div>
<div class="row center">
<div class="col s12 m12">
<H4>TOP UNIVERSITY WITHIN URBAN AREA</H4>
<hr>
</div>
<div class="col s12">
<p class="p-small university display-output"></p>
<p class=""></p>
</div>
<div class="col s12">
<p class="p-medium university-ranking display-output"></p>
<p class="">UNIVERSITY RANKING</p>
</div>
</div>
</div>
</li>
<!-- COST OF LIVING COLLAPSIBLE DIV -->
<li>
<div class="collapsible-header"><i class="material-icons">attach_money</i>COST OF LIVING
<!-- BADGE ICON (BACKEND: scale is as follows:
(badge-red & white-text): 0 < x < 3,
(badge-yellow & black-text): 3 <= x < 7,
(badge-green & white-text): 7 <= x <= 10) -->
<span id="cost-of-living-score" class="badge hide-on-small-only">2.5 / 10</span>
</div>
<!-- Cost of Living Body -->
<div class="container-fluid container-white collapsible-body">
<div class="row">
<div class="col s12 center">
<h3>COST OF LIVING</h3>
<hr>
<p class="flow-text">The Cost of Living score is an indicator based on a culmination of data including: Average household income, average rent, and average cost of goods and services necessary for everyday living. A score of one indicates a poor ratio of income to expense; while a score of ten would indicate that all residents could live a life of luxury.</p>
</div>
</div>
<div class="row center">
<div class="col s12 m12">
<H4>TYPICAL PRICES</H4>
<hr>
</div>
<div class="col s12 m4">
<p class="p-medium apple-cost display-output">NA</p>
<p class="">A POUND OF APPLES</p>
</div>
<div class="col s12 m4">
<p class="p-medium loaf-cost display-output">NA</p>
<p class="">A LOAF OF BREAD</p>
</div>
<div class="col s12 m4">
<p class="p-medium beer-cost display-output">NA</p>
<p class="">BEER</p>
</div>
<div class="col s12 m4">
<p class="p-medium cappuccino-cost display-output">NA</p>
<p class="">CAPPUCCINO</p>
</div>
<div class="col s12 m4">
<p class="p-medium restuarant-cost display-output">NA</p>
<p class="">MEAL AT A RESTUARANT</p>
</div>
<div class="col s12 m4">
<p class="p-medium movieTicket-cost display-output">NA</p>
<p class="">MOVIE TICKET</p>
</div>
<div class="col s12 m4">
<p class="p-medium gym-cost display-output">NA</p>
<p class="">MONTHLY GYM MEMBERSHIP</p>
</div>
<div class="col s12 m4">
<p class="p-medium publicTransport-cost display-output">NA</p>
<p class="">MONTHLY PUBLIC TRANSPORT</p>
</div>
<div class="col s12 m4">
<p class="p-medium taxi-cost display-output">NA</p>
<p class="">TAXI FARE (5m)</p>
</div>
</div>
<div class="row center">
<div class="col s12 m12">
<H4>RENT & TAX</H4>
<hr>
</div>
<div class="col s12 m3">
<p class="p-medium rent-low display-output">NA</p>
<p class="">RENT (SMALL APT)</p>
</div>
<div class="col s12 m3">
<p class="p-medium rent-med display-output">NA</p>
<p class="">RENT (MED APT)</p>
</div>
<div class="col s12 m3">
<p class="p-medium rent-high display-output">NA</p>
<p class="">RENT (LG APT)</p>
</div>
<div class="col s12 m3">
<p class="p-medium sales-tax display-output">NA</p>
<p class="">SALES TAX</p>
</div>
</div>
</div>
</li>
<!-- HEALTHCARE COLLAPSIBLE DIV -->
<li>
<div class="collapsible-header"><i class="material-icons">local_hospital</i>HEALTHCARE<span class="covid-header"> +COVID-19</span>
<!-- BADGE ICON (BACKEND: scale is as follows:
(badge-red & white-text): 0 < x < 3,
(badge-yellow & black-text): 3 <= x < 7,
(badge-green & white-text): 7 <= x <= 10) -->
<span id="health-score" class="badge hide-on-small-only">5 / 10</span>
</div>
<!-- Healthcare Information Body -->
<div class="container-fluid container-white collapsible-body">
<div class="row">
<div class="col s12 center">
<h3>HEALTHCARE</h3>
<hr>
</div>
</div>
<!-- Healthcare Key Data -->
<div class="row center">
<div class="col s12 m12">
<!-- Healthcare Summary Text -->
<p class="flow-text">The healthcare score takes into account the number and quality of healthcare facilities, average cost, and general health of the population within a city. COVID data does not affect the Healthcare score of a city. Below are some key data points pertaining to Healthcare and COVID for the selected city.</p>
<hr>
</div>
<div class="col s12 m4">
<p class="p-medium health-cost display-output">...</p>
<p class="">COST RATING</p>
</div>
<div class="col s12 m4">
<p class="p-medium health-quality display-output">...</p>
<p class="">QUALITY RATING</p>
</div>
<div class="col s12 m4">
<p class="p-medium life-exp display-output">...</p>
<p class="">LIFE EXPECTANCY (COUNTRY)</p>
</div>
</div>
<div class="row center">
<div class="col s12 m12">
<H4>COVID-19 DATA (FOR STATE)</H4>
<hr>
<P>LAST UPDATED: <span id="covid-update-date">recently</span></P>
</div>
<div class="col s12 m4">
<p class="p-medium covid-test-total display-output">NA</p>
<p class="">TOTAL TESTS</p>
</div>
<div class="col s12 m4">
<p class="p-medium covid-pos-cases display-output">NA</p>
<p class="">TOTAL POSITIVE CASES</p>
</div>
<div class="col s12 m4">
<p class="p-medium covid-neg-cases display-output">NA</p>
<p class="">TOTAL NEGATIVE CASES</p>
</div>
<div class="col s12 m4">
<p class="p-medium covid-percent display-output">NA</p>
<p class="">% POSITIVE CASES</p>
</div>
<div class="col s12 m4">
<p class="p-medium covid-hosp display-output">NA</p>
<p class="">CURRENTLY HOSPITALIZED</p>
</div>
<div class="col s12 m4">
<p class="p-medium covid-total-deaths display-output">NA</p>
<p class="">TOTAL DEATHS</p>
</div>
</div>
</div>
</li>
<!-- SAFETY COLLAPSIBLE DIV -->
<li>
<div class="collapsible-header"><i class="material-icons">lock</i>SAFETY
<!-- BADGE ICON (BACKEND: scale is as follows:
(badge-red & white-text): 0 < x < 3,
(badge-yellow & black-text): 3 <= x < 7,
(badge-green & white-text): 7 <= x <= 10) -->
<span id="safety-score" class="badge hide-on-small-only">5 / 10</span>
</div>
<!-- Safety Information Body -->
<div class="container-fluid container-white collapsible-body">
<div class="row">
<div class="col s12 center">
<h3>SAFETY</h3>
<hr>
<p class="flow-text">The Safety score is an indicator based on a culmination of data including: reported crime rate, gun ownership, and gun related homicide within the year. a score of one being a Utopia, and a score of 10 being total Anarchy. </p>
</div>
</div>
<!-- Safety Key Data -->
<p class="flow-text"></p>
<br>
<div class="row center">
<div class="col s12 m4">
<p class="p-medium gun-own display-output">NA</p>
<p class="">GUNS / 100 RESIDENTS</p>
</div>
<div class="col s12 m4">
<p class="p-medium gun-death display-output">NA</p>
<p class="">GUN DEATHS / 100k RESIDENTS</p>
</div>
<div class="col s12 m4">
<p class="p-medium crime-rate display-output">NA</p>
<p class="">CRIME RATE</p>
</div>
</div>
</div>
</li>
<!-- WEATHER & CLIMATE COLLAPSIBLE DIV -->
<li>
<div class="collapsible-header"><i class="material-icons">filter_drama</i>WEATHER & CLIMATE
<!-- BADGE ICON (BACKEND: scale is as follows:
(badge-red & white-text): 0 < x < 3,
(badge-yellow & black-text): 3 <= x < 7,
(badge-green & white-text): 7 <= x <= 10) -->
<span id="weather-score" class="badge hide-on-small-only">1 / 10</span>
</div>
<!-- Weather and Climate Body -->
<div class="container-fluid container-white collapsible-body">
<div class="row">
<div class="col s12 center-align center">
<h3>WEATHER & CLIMATE</h3>
<hr>
<p class="flow-text">The Weather and Climate score is an indicator based on a culmination of data including: annual rainfall, average temperature, and average cloud cover. Cities in rural areas may reflect the score of its nearest reporting weather station or major city. </p>
</div>
</div>
<!-- FUTURE RELEASE: Add Weather Map -->
<br>
<!-- Weather and Climate Key Data -->
<div class="row center">
<div class="col s12 m3">
<p class="p-medium average-day-length display-output">12</p>
<p class="">AVG DAY LENGTH (Hours)</p>
</div>
<div class="col s12 m3">
<p class="p-medium average-clear-days display-output">56</p>
<p class="">AVG NUMBER OF CLEAR DAYS PER YEAR</p>
</div>
<div class="col s12 m3">
<p class="p-medium average-high-temp display-output"></p>
<p class="">AVERAGE HIGH TEMP</p>
</div>
<div class="col s12 m3">
<p class="p-medium average-low-temp display-output"></p>
<p class="">AVERAGE LOW TEMP</p>
</div>
</div>
</div>
</li>
<!-- CULTURE & LEISURE COLLAPSIBLE DIV -->
<li>
<div class="collapsible-header"><i class="material-icons">local_activity</i>CULTURE & LEISURE
<!-- BADGE ICON (BACKEND: scale is as follows:
(badge-red & white-text): 0 < x < 3,
(badge-yellow & black-text): 3 <= x < 7,
(badge-green & white-text): 7 <= x <= 10) -->
<span id="culture-score" class="badge hide-on-small-only"></span>
</div>
<!-- Culture and Leisure Body -->
<div class="container-fluid container-white collapsible-body">
<div class="row">
<div class="col s12 center">
<h3>CULTURE & LEISURE</h3>
<hr>
<p class="flow-text">The Culture and Leisure score is an indicator based on a culmination of data including: Access to Cultural and Leisure venues, and frequency of events.
These numbers represent the city as a whole and its surrounding areas within driving distance.
</p>
</div>
</div>
<br>
<!-- Culture and Leisure Key Data -->
<div class="row center">
<div class="col s12 m6 l3">
<p class="p-medium culture-art display-output"></p>
<p class="">ART GALLERIES</p>
</div>
<div class="col s12 m6 l3">
<p class="p-medium culture-movies display-output"></p>
<p class="">CINEMAS</p>
</div>
<div class="col s12 m6 l3">
<p class="p-medium culture-concerts display-output"></p>
<p class="">CONCERTS / YEAR</p>
</div>
<div class="col s12 m6 l3">
<p class="p-medium cult-hist display-output"></p>
<p class="">HISTORICAL SITES</p>
</div>
<div class="col s12 m6 l3">
<p class="p-medium cult-museums display-output"></p>
<p class="">MUSEUMS</p>
</div>
<div class="col s12 m6 l3">
<p class="p-medium cult-perform display-output"></p>
<p class="">PERFORMING ARTS</p>
</div>
<div class="col s12 m6 l3">
<p class="p-medium cult-sports display-output"></p>
<p class="">SPORTS VENUES</p>
</div>
<div class="col s12 m6 l3">
<p class="p-medium cult-zoos "></p>
<p class="">ZOOS</p>
</div>
</div>
</div>
</li>
</ul>
</div>
</div>
</main>
<footer class="page-footer">
<div class="footer-copyright">
<div class="container">
<p class="grey-text text-lighten-4 center">© 2020 Copyright Team 4</p>
</div>
</div>
</footer>
</div>
<!-- Materialize Links -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.js"
integrity="sha512-m2PhLxj2N91eYrIGU2cmIu2d0SkaE4A14bCjVb9zykvp6WtsdriFCiXQ/8Hdj0kssUB/Nz0dMBcoLsJkSCto0Q=="
crossorigin="anonymous"></script>
<!-- Javascript Link -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function () {
var elems = document.querySelectorAll('.collapsible');
var instances = M.Collapsible.init(elems, { accordion: false });
});
document.addEventListener('DOMContentLoaded', function () {
var elems = document.querySelectorAll('.dropdown-trigger');
var instances = M.Dropdown.init(elems, { alignment: "center" });
});
</script>
<!-- App functionality -->
<script src="app.js"></script>
</body>
</html>