-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
176 lines (139 loc) · 3.91 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<!DOCTYPE html>
<html>
<head>
<title>Firestore</title>
<link rel="stylesheet" href="styles.css">
<script src="https://www.gstatic.com/firebasejs/7.2.1/firebase.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.2.1/firebase-firestore.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.2.1/firebase-analytics.js"></script>
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.0/jquery-ui.js"></script>
<script type="text/javascript" src="date.js"></script>
<style>
/* Always set the map height explicitly to define the size of the div
* element that contains the map. */
#map {
height: 90%;
}
/* Optional: Makes the sample page fill the window. */
html, body {
height: 90%;
margin: 20;
padding: 20;
}
body {
font-family: Arial, Helvetica, sans-serif;
}
nav {
float: left;
width: 70%;
height: 700px; /* only for demonstration, should be removed */
background: #fff;
padding: 0px;
}
/* Style the list inside the menu */
/* nav ul {
list-style-type: none;
padding: 0;
} */
ul {
list-style-type: none;
}
article {
float: left;
padding: 20px;
width: 20%;
margin-left:20px;
background-color: #fff;
margin-top: 110px;
height: 700px; /* only for demonstration, should be removed */
}
.content{
margin-top:10px;
background-color:#00D3;
width:400px;
height:100px;
}
/* Clear floats after the columns */
section:after {
content: "";
display: table;
clear: both;
background-color: #fff;
}
/* Style the footer */
footer {
background-color: #777;
padding: 10px;
text-align: center;
color: white;
}
.wrapper {
text-align: center;
}
.button {
position: absolute;
top: 50%;
}
.event a {
background-color: #5FBA7D !important;
color: #ffffff !important;
}
</style>
</head>
<body>
<section>
<nav>
<h1 align="center">Fleet Tracking</h1>
<!-- <input type="text" placeholder="Car ID" id="txtCarID" />
<input type="text" placeholder="Trip ID" id="txtTripID" />
<input type="text" placeholder="Latitude" id="txtLat" />
<input type="text" placeholder="Longitude" id="txtLon" /> -->
<!-- <button id="bttAdd" >Add</button> -->
<br>
<!-- <input type="text" placeholder="Car ID" id="rtxtCarID" />
<!-- <input type="text" placeholder="Trip ID" id="rtxtTripID" /> -->
<!-- <input type="text" placeholder="Date" id="rtxtTripsDate" />
<button id="bttRetrive">Retrive</button> -->
<script src="index.js"></script>
<br><br>
<!--Google Map-->
<div id="map"></div>
<script src="index.js"></script>
<script>
var map;
function initMap() {
map = new google.maps.Map(document.getElementById('map'), {
center: {lat: 19.075983, lng: 72.877655},
zoom: 8
});
}
</script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBIT1xRc1G9-g_mrDcBtBbNfANoPuKcDpM&callback=initMap"
async defer></script>
</nav>
<article>
<div>
<b>Enter Car ID</b>
<br></br>
<div>
<input type="text" placeholder="CAR ID" id="textcarID" size="10" />
<button id="bttShowTrips" > >> </button>
<br></br>
<br></br>
<div id="datepicker"></div>
<br></br>
</div>
<br></br>
<div id="dvTable">
<p ><b> <span id='popup'><span> </b></p>
<p > SoC: <span id='battery'></span></p>
<p > Odometer: <span id='odometer'></span></p>
<p > Distance Covered: <span id='distance'></span></p>
<p > EnergyConsumption: <span id='energyconsume'></span></p>
</div>
</div>
</article>
</section>
</body>
</html>