-
Notifications
You must be signed in to change notification settings - Fork 0
/
leaflet_map.html
54 lines (50 loc) · 2.09 KB
/
leaflet_map.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
<!-- key: ■ = newline -->
<!DOCTYPE html>
<html>
<head>
<title>Leaflet Map</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://unpkg.com/leaflet/dist/leaflet.css" />
<script src="https://unpkg.com/leaflet/dist/leaflet.js"></script>
<!-- Used to test on the web -->
<script src="./bundle.js"></script>
<script src="./scripts/out.js"></script>
<script src="./scripts/routeout.js"></script>
<script src="./scripts/examples.js"></script>
<!-- <script src="https://cdn.jsdelivr.net/gh/ZarmDev/transitHelper@latest/dist/bundle.js"></script> -->
<link rel="stylesheet" href="./style.css"/>
</head>
<body>
<!-- <label for="key">Bus api key</label>
<input id="busApiKey" name="key" type="text"> -->
<div id="firstStartup">
<p>The stops are all saved locally on your device! However, the map itself and the train arrivals requries
internet.
</p>
<p>Also, try clicking on the map to change location or try getting arrivals from one of the stops</p>
</div>
<div id="alerts">
<button class="X" id="serviceX"><</button>
<span id="alertsDropdown">Service Alerts</span>
<div id="alertsContent">
</div>
</div>
<div id="arrivals">
<button class="X" id="arrivalsX"><</button>
<p>Last refreshed: <span id="lastRefreshed"></span></p>
<button id="refreshArrivals">Refresh</button>
<h1>Arrivals for the <span id="trainToShow"></span> train</h1>
<p>Stopname: <span id="stopname" data-stop=""></span></p>
<div id="trainIcons"></div>
<div id="arrivalsContent">
<span id="northbound" class="option">Northbound</span>
<span id="southbound" class="option">Southbound</span>
<div id="northboundArrivals"></div>
<div id="southboundArrivals"></div>
</div>
</div>
<div id="map"></div>
<script src="./script.js"></script>
</body>
</html>