-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
38 lines (32 loc) · 1.35 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
<!DOCTYPE html>
<html>
<head>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyD1Vssq5O95_d93G3goxy5sy09DNOra-3c&callback=myMap"></script>
<script type='text/javascript' src='https://cdn.firebase.com/js/client/1.0.15/firebase.js'></script>
<script type="text/javascript" src="firebase.js"></script>
</head>
<body>
<h1>S v1.0</h1><br>
<input type="radio" name="bus_node" id = "bus_18" checked="true" onclick="changeMap()">Bus 18<br>
<input type="radio" name="bus_node" id = "bus_17" onclick="changeMap()" >Bus 17<br>
<div id="map" style="width:100%;height:500px"></div>
<script src="https://www.gstatic.com/firebasejs/4.9.1/firebase.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "AIzaSyANTwh5hzGXjQuhkJX1RSzc5NGfl-QbMVQ",
authDomain: "bustracking-86717.firebaseapp.com",
databaseURL: "https://bustracking-86717.firebaseio.com",
projectId: "bustracking-86717",
storageBucket: "bustracking-86717.appspot.com",
messagingSenderId: "401655786701"
};
firebase.initializeApp(config);
</script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyD1Vssq5O95_d93G3goxy5sy09DNOra-3c&callback=myMap"></script>
<!--
To use this code on your website, get a free API key from Google.
Read more at: https://www.w3schools.com/graphics/google_maps_basic.asp
-->
</body>
</html>