-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
58 lines (51 loc) · 2 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
<!DOCTYPE html>
<html>
<head>
<title>Geolocation of Mobile</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<style>
/* Always set the map height explicitly to define the size of the div
* element that contains the map. */
#map {
height: 100%;
}
/* Optional: Makes the sample page fill the window. */
html, body {
height: 100%;
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<input type="text" id="t">
<div id="map"></div>
<!-- The core Firebase JS SDK is always required and must be listed first -->
<script src="https://www.gstatic.com/firebasejs/7.6.1/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.6.1/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.6.1/firebase-database.js"></script>
<!-- TODO: Add SDKs for Firebase products that you want to use
https://firebase.google.com/docs/web/setup#available-libraries -->
<script src="https://www.gstatic.com/firebasejs/7.6.1/firebase-analytics.js"></script>
<script>
var firebaseConfig = {
apiKey: "AIzaSyBqO1BcLqLAQt5_dYGOd9WUW_vlztk4tRA",
authDomain: "e-shuttle-tracker-base.firebaseapp.com",
databaseURL: "https://e-shuttle-tracker-base.firebaseio.com",
projectId: "e-shuttle-tracker-base",
storageBucket: "e-shuttle-tracker-base.appspot.com",
messagingSenderId: "266232632608",
appId: "1:266232632608:web:e9493cf9678f154fdbf345",
measurementId: "G-7Z8CDHY5QY"
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
var database = firebase.database();
</script>
<script type="text/javascript" src="index.js"></script>
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAm8e1qPhnAp0GPjAEdedZFV20lg6TuBTY&callback=initMap">
</script>
</body>
</html>