-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
353 lines (332 loc) · 11.2 KB
/
index.html
File metadata and controls
353 lines (332 loc) · 11.2 KB
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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
<htm>
<head>
<meta charset="utf-8" />
<title>Smart Bicycles Navigator 3D</title>
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
crossorigin="anonymous"
/>
<script
src="https://code.jquery.com/jquery-3.4.1.slim.min.js"
integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n"
crossorigin="anonymous"
></script>
<script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"
integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
crossorigin="anonymous"
></script>
<link rel="stylesheet" href="css/main.css" />
<link rel="stylesheet" href="css/vizicities.css" />
<link rel="stylesheet" href="css/gauge.css" />
<!-- // metarial design icons -->
<link
href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet"
/>
</head>
<body>
<!-- Sounds -->
<!-- files source: http://soundbible.com/ -->
<audio id="ding" src="sounds/ElevatorDing.mp3"></audio>
<audio id="alertMP3" src="sounds/alert5.mp3"></audio>
<!-- Sidenav -->
<div id="mySidenav" class="sidenav">
<a href="javascript:void(0)" class="closebtn" onclick="GUI.closeNav()"
>close</a
>
<a style="padding-top: 100px">
<button
id="commFirebase"
type="button"
class="btn btn-outline-warning btn-lg btn-block"
style="font-size: 40px; overflow: hidden"
>
Connect to Database
</button></a
>
<a
><button
id="enableOrientation"
type="button"
class="btn btn-outline-warning btn-lg btn-block"
style="font-size: 40px; overflow: hidden"
>
Enable 3D Motion
</button></a
>
<a
><button
id="enableSound"
type="button"
class="btn btn-outline-warning btn-lg btn-block"
style="font-size: 40px; overflow: hidden"
>
Enable Sound
</button></a
>
<a
><span id="manualRotationValue" style="color: #eab20a"></span>
<input
id="manualRotationCorrection"
type="range"
min="-180"
max="180"
value="0"
class="slider"
/>
<label for="manualRotationCorrection"> Map rotation correction </label>
</a>
<a
href="https://smartartifact.com/d4sv"
style="
color: burlywood;
text-align: center;
font-size: 28px;
position: absolute;
bottom: 0px;
"
>Social Viscosity Lab</a
>
</div>
<!-- Sidenav -->
<!-- Add all page content inside this div if you want the side nav to push page content to the right (not used if you only want the sidenav to sit on top of the page -->
<div id="main">
<!-- Header -->
<div class="header" id="header">
<!-- Use any element to open the sidenav -->
<span >
<div
class="container-fluid"
style="padding: 0px; width: 100%; height: 100%"
>
<div class="row" style="padding: 0px; width: 100%; height: 100%">
<div class="col-sm-1">
<i id="flockingContainer"
class="material-icons"
style="
font-size: 5vh;
color: white;
opacity: 30%;
padding-top: 3vh;
"
>menu</i
>
</div>
<div class="col-sm-7">
<div id="title">Flocking</div>
</div>
<div class="col-sm-4" style="text-align: right">
<div id="version" style="color: #f8e7b3; font-size: 2vh">
Version 3.3.5
</div>
<i
id="location_on"
class="material-icons"
style="
font-size: 3vh;
color: white;
opacity: 60%;
padding-top: 3vh;
"
hidden
>cloud_upload</i
>
<i
id="3d_rotation"
class="material-icons"
style="
font-size: 3vh;
color: white;
opacity: 60%;
padding-top: 3vh;
"
hidden
>3d_rotation</i
>
<i
id="volume_up"
class="material-icons"
style="
font-size: 3vh;
color: white;
opacity: 60%;
padding-top: 3vh;
"
hidden
>volume_up</i
>
</div>
</div>
</div>
</span>
</div>
<div class="container-fluid" style="padding: 0px; width: 100%">
<!-- GUI elements -->
<div class="banner" id="banner">
<div class="row">
<div class="col-sm-1">
<div>
<i
id="status"
class="material-icons"
style="
padding-left: 10px;
padding-top: 15px;
font-size: 3vh;
color: black;
opacity: 60%;
"
>gps_off</i
>
<!-- <div id="status">Missing GPS</div> -->
</div>
</div>
<div class="col-sm-1">
<i
id="mobile"
class="material-icons"
style="
font-size: 3vh;
color: black;
opacity: 60%;
padding-top: 15px;
"
>devices</i
>
<!-- <div id="mobile">Device</div> -->
</div>
<div class="col-sm-4">
<i
id="clock"
class="material-icons"
style="
font-size: 3vh;
color: black;
opacity: 60%;
padding-top: 15px;
"
>alarm_off</i
>
<span
id="map-link"
style="
font-size: 3vh;
color: black;
opacity: 60%;
text-align: right;
"
>...</span
>
</div>
<div class="col-sm-6">
<div
id="distance"
style="
font-size: 3vh;
font-weight: 400;
color: black;
text-align: center;
"
>
dist. to ghost
</div>
</div>
</div>
<div
id="error"
style="color: deeppink; font-size: 30px; padding-top: 150px"
hidden
>
Log
</div>
</div>
<div
id="routeName"
style="
font-size: 2vh;
color: black;
margin-right: 3vw;
text-align: right;
"
>
No route
</div>
<!-- Speed visualizer -->
</div>
<div class="map">
<!-- Map holder-->
<div id="world" class="world"></div>
</div>
<button id="cameraButton" type="button" class="btn btn-outline-danger">
First-person
</button>
<!-- <div class="container"> -->
<div id="gauge">
<div class="gaugeWrapper">
<div class="gaugeContainer">
<div class="gaugeBox" id="vehicleGaugeBox"></div>
</div>
<div class="gaugeBox" id="vehicleGaugeLabel"></div>
</div>
<div class="gaugeWrapper">
<div class="gaugeContainer">
<div class="gaugeBox" id="ghostGaugeBox"></div>
</div>
<div class="gaugeBox" id="ghostGaugeLabel"></div>
</div>
</div>
<!-- </div> -->
<div id="accelerationLabel">...</div>
</div>
<!--***** 3D libraries *******-->
<script src="libs/vendor/three.min.js"></script>
<script src="libs/vendor/TweenMax.min.js"></script>
<script type="module" src="libs/vendor/jsm/loaders/GLTFLoader.js"></script>
<!--<script src='libs/vendor/jsm/lines/LineMaterial.js' type="module"></script>-->
<script src="libs/vizicities.js"></script>
<script src="libs/beet.min.js" type="text/javascript"></script>
<!--***** Custom made libraries and P5 ******-->
<script src="libs/p5.min.js" type="text/javascript"></script>
<script src="src/layers.js" type="text/javascript"></script>
<script src="src/marker.js" type="text/javascript"></script>
<script src="src/deviceOrientation.js" type="text/javascript"></script>
<script src="src/gCamera.js" type="text/javascript"></script>
<script src="src/cyclist.js" type="text/javascript"></script>
<script src="src/arrowhead.js" type="text/javascript"></script>
<script src="src/arrowheadField.js" type="text/javascript"></script>
<script src="src/fantasma.js" type="text/javascript"></script>
<script src="src/devicePosition.js" type="text/javascript"></script>
<script src="src/userInterface/GUI.js" type="text/javascript"></script>
<script src="src/userInterface/gauge.js" type="text/javascript"></script>
<!-- ***** Utility libraries -->
<script src="src/utils/utils.js" type="text/javascript"></script>
<script src="src/utils/geometryUtils.js" type="text/javascript"></script>
<script src="src/utils/kinematicUtils.js" type="text/javascript"></script>
<script src="src/utils/lowpassfilter.js" type="text/javascript"></script>
<!-- libraries for creating a route -->
<script src="src/route/route.js" type="text/javascript"></script>
<script src="src/route/position.js" type="text/javascript"></script>
<script src="src/route/segment.js" type="text/javascript"></script>
<!-- js sound codes -->
<script src="src/sound/soundManager.js" type="text/javascript"></script>
<script src="src/sound/sonar.js" type="text/javascript"></script>
<!--Communication with firebase script-->
<script src="https://www.gstatic.com/firebasejs/5.7.1/firebase.js"></script>
<script src="src/comm/Communication.js" type="text/javascript"></script>
<script
src="src/comm/fireBaseCredentials.js"
type="text/javascript"
></script>
<!--***** Sketch ******-->
<script src="src/start.js" type="text/javascript"></script>
</body>
</htm>