-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
102 lines (96 loc) · 3.72 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
<!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="./css/reset.css">
<link rel="stylesheet" href="./css/style.css">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=" crossorigin="" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Faster+One&display=swap" rel="stylesheet">
<meta http-equiv="Permissions-Policy" content="interest-cohort=()">
<title>TorTrak</title>
</head>
<body>
<nav class="topNav">
<div class="navLogo">
<a href="index.html">
<img src="img/lognobg.png" class="navImg" />
</a>
</div>
<div class="navSlogan"><a href="index.html"><span id="tor">Tor</span><span id="trak">Trak</a></span></div>
<div class="navLinks">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="charts.html">Charts</a></li>
<li><a href="faq.html">FAQ</a></li>
</ul>
</div>
</nav>
<div class="map-container">
<div id="stormsMap"></div>
<div id="filters">
<div id="sharedFilters">
<h2>Shared Filters:</h2>
<div id="yearSelector">
<div class="yearInputContainer">
<label for="range">Min Year:</label>
<input type="range" id="range" name="range" min="1950" max="2022" value="2022">
<input type="text" id="lowerBound" readonly>
</div>
<div class="yearInputContainer">
<label for="rangeUpper">Max Year:</label>
<input type="range" id="rangeUpper" name="range" min="1950" max="2022" value="2022">
<input type="text" id="upperBound" readonly>
</div>
</div>
<div id="filterBox">
<label for="stateFilter">Select State:</label>
<select id="stateFilter">
</select>
</div>
</div>
<div id="mapFilters">
<h2>Map Filters:</h2>
<div id="mapProviderDiv">
<label for="mapProvider">Map Provider:</label>
<select id="mapProvider">
<option value="openStreetMap" selected>OpenStreetMap</option>
<option value="cartoDB">CartoDB</option>
</select>
</div>
<div>
<input type="checkbox" id="disablePolylineCheckbox" onchange="togglePolyline()">
<label for="disablePolylineCheckbox">Disable Polyline</label>
</div>
</div>
<div id="barChartFilter" class="checkbox-container">
<h2>Chart Filters:</h2>
<div>
<input type="checkbox" id="sortCheckbox" onchange="toggleSorting(this)">
<label for="sortCheckbox">Sort States by Count</label>
</div>
<div>
<input type="checkbox" id="alphaSortCheckbox" onchange="toggleSorting(this)">
<label for="alphaSortCheckbox">Sort States Alphabetically</label>
</div>
<button id="resetButton">Reset to Default</button>
<div id="quickStatsDiv">
<h2>Quick Stats:</h2>
<p id="stats"></p>
<p id="stateStats"></p>
</div>
</div>
</div>
</div>
<canvas id="stormsChartCanvas" width="800" height="100"></canvas>
</body>
<script src="./js/data.js"></script>
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=" crossorigin=""></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-zoom"></script>
<script src="./js/app.js"></script>
</html>