-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
83 lines (69 loc) · 3.52 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bus Arrival Times</title>
<link rel="icon" type="image/png" href="./img/stop-button.png">
<script src="https://code.jquery.com/jquery-3.6.4.min.js"></script>
<link rel="stylesheet" href="https://unpkg.com/leaflet/dist/leaflet.css" />
<script src="https://unpkg.com/leaflet/dist/leaflet.js"></script>
<script src="./script.js"></script>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<h2>Bus Arrival Times</h2>
<div id="searchByName">
<label for="stopNameInput">Search by Stop Name:</label>
<input type="text" id="stopNameInput" placeholder="Enter Stop Name">
<button onclick="searchBusStop()">Search</button>
</div>
<div id="customStopId">
<label for="stopIdInput">Do you know the ID?:</label>
<input type="text" id="stopIdInput" placeholder="Enter Stop ID">
<button onclick="fetchBusData()">Query</button>
</div>
<br>
<button id="largebutton" onclick="showFavorites()">View Favorites ★</button>
<br> <br>
<button id="largebutton" onclick="searchNearbyStops()">Search Nearby Stops ⎆</button>
<p style="font-size: 12px;">(Location permission requiered)</p>
<a href="./lines.html"><button id="largebutton">View all Urban Lines ⎆ (beta)</button></a> <br>
<p style="font-size: 12px;">(This feature is under active development)</p>
<a href="./metropolitan.html"><button id="largebutton">View all Metropolitan Lines ⎆ (not yet implemented)</button></a>
<div id="loadingText"></div>
<p id="timestamp"></p>
<div id="updateStatus">Search a bus stop or enter a bus stop ID</div>
<table id="busTable">
<thead>
<tr>
<th colspan="4" id="stopInfoHeader"></th>
</tr>
<tr>
<th> <img src="./img/bus.png" alt="Bus Line" id="icon"> </th>
<th> <img src="./img/clock.png" alt="Arrival Time" id="icon"> </th>
<th> <img src="./img/destination.png" alt="destination" id="icon"> </th>
<th> <img src="./img/map.png" alt="Location" id="icon"> </th>
</tr>
</thead>
<tbody>
<!-- Data will be inserted here dynamically -->
</tbody>
</table>
<div id="stopInfo"></div>
<!-- Modal structure for the map -->
<div id="mapModal" class="modal">
<div class="modal-content">
<span class="close">×</span>
<h2>Bus Location</h2>
<div id="mapContainer"></div>
</div>
</div>
<p id="legaltext">
Urbanos de marbella (v1.2.1), Copyright (C) 2024 - Alexander <br>
Urbanos de marbella comes with ABSOLUTELY NO WARRANTY; for details view <a href="./LICENSE">GNU Licence</a>. <br>
This is free software, and you are welcome to redistribute it under certain conditions; view <a href="./LICENSE">GNU Licence</a> for details. <br>
Any data, like favourites, is stored locally in your browser as a cookie and cannot be acessed outisde of it, except by the API of the bus company, the data is forwarded to the API when making a call. I do not have control over how the data is handled by <a href="https://avanzagrupo.com/">Avanza Movilidad Integral SL (ESB79072823)</a>, your public IP adress may be included in the API requests.
</p>
</body>
</html>