-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
416 lines (334 loc) · 12.4 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
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
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>Austin Digital Twin</title>
<script src="https://cesium.com/downloads/cesiumjs/releases/1.108/Build/Cesium/Cesium.js"></script>
<link href="https://cesium.com/downloads/cesiumjs/releases/1.108/Build/Cesium/Widgets/widgets.css" rel="stylesheet"/>
<link href="https://cdn.jsdelivr.net/gh/urbaninfolab/FireIncidentFrontend@main/Demo3D/assets/css/fireMap.css" rel="stylesheet"/>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" rel="stylesheet"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/cesium-plugin/cesium-popup-es6@main/dist/cesium-popup-es6.umd.js"></script>
<link href="https://cdn.jsdelivr.net/gh/cesium-plugin/cesium-popup-es6@main/dist/index.css" rel="stylesheet"/>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet"/>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css" rel="stylesheet"/>
<link href="styles.css" rel="stylesheet"/>
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet"/><link href="gmaps-sidebar.css" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/PapaParse/5.4.1/papaparse.min.js" integrity="sha512-dfX5uYVXzyU8+KHqj8bjo7UkOdg18PaOtpa48djpNbZHwExddghZ+ZmzWT06R5v6NSk3ZUfsH6FNEDepLx9hPQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<style>
body {
padding: 0;
margin: 0;
}
html, body, #map {
height: 100%;
font: 10pt "Helvetica Neue", Arial, Helvetica, sans-serif;
}
.lorem {
font-style: italic;
color: #AAA;
}
</style>
</link>
<style>
.oval-button {
border-radius: 32px;
padding: 6px 17px;
margin: 5px;
cursor: pointer;
/* background-color: #4285f4; */
/* color: white; */
border: none;
box-shadow: 0 2px 4px rgba(0,0,0,0.2), 0 -1px 0px rgba(0,0,0,0.02);
border: none;
background: #fff;
color: #202124;
/* font-family: "Google Sans",Roboto,Arial,sans-serif; */
/* line-height: 1.25rem; */
font-size: 0.875rem;
/* letter-spacing: 0; */
font-weight: 500;
}
.oval-button:hover {
background-color: #dbeaff;
}
/* Make the geocoder input field permanently open */
.cesium-geocoder-input {
/* width: 300px !important; */
width: 70% !important;
}
/* Place it at the top-left corner */
.cesium-viewer-geocoderContainer {
position: fixed;
top: 10px;
left: 90px;
z-index: 10000; /* to ensure it appears above other elements */
background: #fff;
border-radius: 24px;
box-sizing: border-box;
width: 376px;
height: 48px;
border-bottom: 1px solid #dadce0;
box-shadow: 0 0 2px rgb(0 0 0/20%), 0 -1px 0 rgb(0 0 0/2%);
}
/* Google-esque Style */
.cesium-viewer-geocoderContainer .cesium-geocoder-input {
/* border-radius: 25px; */
background: white;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
margin-top: 8px;
background-color: white;
margin-left: 20px;
border-color: white;
color: black;
box-shadow:unset;
border:none;
padding:0;
}
.cesium-viewer-geocoderContainer .cesium-geocoder-input:hover {
/* border-radius: 25px; */
background: white;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
margin-top: 8px;
background-color: white;
margin-left: 20px;
border-color: white;
color: black;
box-shadow:unset;
border:none;
left:unset !important;
padding:0 !important;
}
.cesium-viewer-geocoderContainer .cesium-geocoder-input:focus {
/* border-radius: 25px; */
background: white;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
margin-top: 8px;
background-color: white;
margin-left: 20px;
border-color: white;
color: black;
box-shadow:unset;
border:none;
}
.cesium-geocoder-input:focus {
/* border-radius: 25px; */
background: white;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
margin-top: 8px;
background-color: white;
margin-left: 20px;
border-color: white;
color: black;
box-shadow:unset;
border:none;
padding:0;
margin-left:unset;
margin:unset;
}
.cesium-geocoder-searchButton {
fill: #666;
background-color: white;
/* top: 7px; */
/* right: 15px; */
border-radius: 50%;
width: 23px;
opacity: 1;
display: block;
position: absolute;
background-color: unset;
border: none;
margin-left: 0px;
margin-top: 5px;
position: relative;
display: inline-block;
}
.cesium-geocoder-searchButton:hover {
fill: #4285f4;
background-color: white;
/* top: 7px; */
/* right: 15px; */
/* border-radius: 50%; */
/* width: 23px; */
}
.cesium-viewer-geocoderContainer .search-results {
opacity: 1;
color: black;
background-color: #fff;
border-radius: 0 0 16px 16px;
box-shadow: 0 2px 4px rgba(0,0,0,.2);
font-size: 15px;
overflow: visible;
width: 376px;
padding: 8px 0;
margin-top: 8px;
}
.cesium-viewer-geocoderContainer .search-results ul li {
line-height: 24px;
padding: 3px 10px;
height: 30px;
border: none;
position: relative;
font-size: 12px;
min-height: 34px;
padding-top: 6px;
padding-bottom: 7px;
cursor: pointer;
direction: ltr;
text-align: left;
}
.cesium-viewer-geocoderContainer .search-results ul li:hover {
background-color: #66666627;
}
.cesium-viewer-geocoderContainer .search-results ul li:focus {
background-color: #66666627;
}
.cesium-viewer-geocoderContainer .search-results ul li.active {
/* background-color: unset; */
}
.cesium-viewer-geocoderContainer:hover .cesium-geocoder-input,
.cesium-viewer-geocoderContainer .cesium-geocoder-input:focus,
.cesium-viewer-geocoderContainer .cesium-geocoder-input-wide {
padding-left: unset;
width: unset;
}
.close-button-div {
cursor: pointer;
margin-left: 5px;
vertical-align: middle;
margin-top: 7px;
margin-left: 20px;
opacity: 1;
border: none;
fill: #666;
}
.close-button-div:hover, .back-button-div:hover {
cursor: pointer;
fill: #4285f4;
background-color: white;
}
.close-button-div:hover .close-button path, .back-button-div:hover .back-button path {
fill: #4285f4; /* or any other color you want on hover */
stroke: #4285f4; /* if you also want to change the stroke color on hover */
}
</style>
</head>
<body>
<div id="sidebar" class="sidebar collapsed">
<!-- Nav tabs -->
<div class="sidebar-tabs">
<ul role="tablist">
<li><a href="#home" role="tab"><i class="fa fa-bars" style="
font-size: 1.1em;
"></i></a></li>
<li><a id="recent" href="#profile" role="tab" style="
display: flex;
flex-direction: column;
"><i class="fa fa-clock-o" style="
height: 1px;
margin-top: 15px;
font-size: 1.3em;
"></i> <i style="
font-size: 12px;
font-style: normal;
font-weight: 700;
">Recent</i></a></li>
<li><a id="important" href="#messages" role="tab" style="
display: flex;
flex-direction: column;
"><i class="fa fa-exclamation-triangle" style="
height: 1px;
margin-top: 15px;
font-size: 1.3em;
"></i> <i style="
font-size: 12px;
font-style: normal;
font-weight: 700;
">Important</i></a></li>
<!-- <li><a href="#profile" role="tab"><i class="fa fa-user"></i></a></li> -->
<!-- <li class="disabled"><a href="#messages" role="tab"><i class="fa fa-envelope"></i></a></li> -->
<!-- <li><a href="https://github.com/Turbo87/sidebar-v2" role="tab" target="_blank"><i class="fa fa-github"></i></a></li> -->
</ul>
<ul role="tablist">
<li><a href="#settings" role="tab"><i class="fa fa-gear"></i></a></li>
</ul>
</div>
<!-- Tab panes -->
<div class="sidebar-content">
<div class="sidebar-pane active" id="home">
<h1 class="sidebar-header">
</h1>
<div class="accordion" id="eventsAccordion">
</div>
</div>
<div class="sidebar-pane" id="profile">
<h1 class="sidebar-header">
</h1>
</div>
<div class="sidebar-pane" id="messages">
<h1 class="sidebar-header">
</h1>
</div>
<div class="sidebar-pane" id="event">
<h1 class="sidebar-header">
</h1>
</div>
<div class="sidebar-pane" id="settings">
<h1 class="sidebar-header">
</h1>
<div style="vertical-align: middle; padding: 0px 50px 50px 50px; font-family:'Open Sans', sans-serif;">
<div style="margin-top:40px;display:flex;justify-content: center;">
<img class="top-logo" width="250px;" alt="Urban Information Lab at UT Austin" src="https://sites.utexas.edu/uil/files/2022/12/UTlogo2.png" >
</div>
<h3 style="margin-top:40px; font-weight: 700;">About the Urban Info Lab</h3>
<p>The Urban Information Lab (UIL) is a research group at the University of Texas at Austin that focuses on the development of data-driven solutions to urban problems. UIL is a part of the School of Architecture and the Center for Sustainable Development at the University of Texas at Austin.</p>
<p>For more information, visit <a href="https://sites.utexas.edu/uil/">https://sites.utexas.edu/uil/</a></p>
<h3 style="margin-top:20px; font-weight: 700;">About the Austin Digital Twin</h3>
<p>The Austin Digital Twin is a 3D model of the city of Austin, Texas. It is a research project of the Urban Information Lab at the University of Texas at Austin.</p>
<p>For more information, visit <a href="https://austindigitaltwin.com/">https://austindigitaltwin.com</a></p>
<h3 style="margin-top:20px; font-weight: 700;">Contact</h3>
<p>For questions or comments, please <a href="https://sites.utexas.edu/uil/contact-us/">contact us</a>.</p>
</div>
</div>
</div>
</div>
<!-- <div id="map" class="sidebar-map"></div> -->
<div id="cesiumContainer" style="position: absolute;width: 100%;height:100%;"></div>
<div style=" position: absolute;
top: 15px;
left: 510px; z-index: 999;">
<button class="oval-button" id="btnFires">
<img src="firelogo.png" class="button-image">
<div class="button-text">Fires</div>
</button>
<button class="oval-button" id="btnCrimes">
<img src="crime.png" class="button-image">
<div class="button-text">Crimes</div>
</button>
<button class="oval-button" id="btnAirSensors">
<img src="sensor.png" class="button-image">
<div class="button-text">Air Sensors</div>
</button>
</div>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
<script src="main.js"></script>
<script src="cesium.js"></script>
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="https://maps.googleapis.com/maps/api/js" type="text/javascript"></script>
<script src="jquery-sidebar.js"></script>
<script>
var sidebar = $('#sidebar').sidebar();
// Get .close-button and use it to call the close method
console.log($('.close-button-div'));
$('.close-button-div').on('click', function() {
console.log('close');
sidebar.close();
});
</script>
</body>
</html>