-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
55 lines (48 loc) · 1.8 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bikewatching</title>
<link rel="stylesheet" href="global.css">
<link rel="stylesheet" href="map.css">
<link rel="icon" href="assets/favicon.svg" type="image/svg+xml">
<!-- Mapbox GL JS CSS -->
<link href="https://api.mapbox.com/mapbox-gl-js/v2.15.0/mapbox-gl.css" rel="stylesheet" />
</head>
<body>
<header>
<h1>🚴 <strong>Bikewatching</strong></h1>
<div class="slider-container">
<label for="time-slider">Filter by time:</label>
<input id="time-slider" type="range" min="-1" max="1440" value="-1" step="1">
<div class="time-display">
<time id="selected-time">11:59 PM</time>
<em id="any-time">(any time)</em>
</div>
</div>
</header>
<div id="map">
<svg></svg>
</div>
<div class="legend">
<div class="legend-title">LEGEND: </div>
<div class="legend-item" style="--departure-ratio: 1">
<span class="legend-swatch"></span> More departures
</div>
<div class="legend-item" style="--departure-ratio: 0.5">
<span class="legend-swatch"></span> Balanced
</div>
<div class="legend-item" style="--departure-ratio: 0">
<span class="legend-swatch"></span> More arrivals
</div>
</div>
<div id="tooltip"></div>
<!-- Mapbox GL JS JavaScript -->
<script src="https://api.mapbox.com/mapbox-gl-js/v2.15.0/mapbox-gl.js"></script>
<!-- Load D3.js from CDN -->
<script src="https://d3js.org/d3.v7.min.js"></script>
<!-- Load your custom map initialization script -->
<script src="map.js"></script>
</body>
</html>