-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
59 lines (55 loc) · 1.68 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>A case study in Gothenburg</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<style>
.legend {
background: #ffffffd0;
width: 150px;
margin: 3px;
display: none;
}
#overlay {
position: fixed;
display: block;
width: 100%;
height: 100%;
top: 0; left: 0; right: 0; bottom: 0;
background-color: rgba(0, 0, 0, 0.6);
color: white;
z-index: 2;
cursor: wait;
}
</style>
</head>
<body style="margin: 0">
<div id="overlay">
<div style="position: absolute; bottom: 0; padding: 1em;">
Loading data, this may take a few minutes...<br>
<ul id="loadingLog"></ul>
<progress style="width: 100%;"></progress>
<div id="cityModelDialog" style="padding: 2em; background: #ff000071; display: none;">
<p>No CityModel.json file found. Upload one now, or ignore and load remaining data?</p>
<input type="file" id="cityModelFile">
<button type="button" id="ignoreCityModelUpload">Ignore</button>
</div>
</div>
</div>
<div id="legendContainer" style="position: fixed; margin: 10px; overflow-y: auto; display: block ruby; bottom: 0;"></div>
<div id="container"></div>
<!-- Import maps polyfill -->
<!-- Remove this when import maps will be widely supported -->
<script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js"></script>
<script type="importmap">
{
"imports": {
"three": "./libs/three.module.js"
}
}
</script>
<script type="module" src="main.js"></script>
<script src="libs/papaparse.min.js"></script>
</body>
</html>