-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
63 lines (60 loc) · 1.63 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>slideshow Map</title>
<link href="dev/vancharts.css" rel='stylesheet'/>
<script src="dev/vancharts-all.js"></script>
<link href="node_modules/mapbox-gl/dist/mapbox-gl.css" rel='stylesheet'/>
<style>
body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
background: #ccc;
}
.map {
position: absolute;
/*top: 10px;*/
/*left: 10px;*/
/*bottom: 10px;*/
/*right: 20px;*/
/*width: 782px;*/
/*height: 407px;*/
/*width: 613px;*/
/*height: 310px;*/
width: 90vw;
height: 90vh;
/*width: 100%;*/
/*height: 100%;*/
overflow: hidden;
}
.tip {
position: fixed;
color: #fff;
}
</style>
<script src="node_modules/three/examples/js/libs/stats.min.js"></script>
<script src="node_modules/three/examples/js/libs/dat.gui.min.js"></script>
</head>
<body>
<div id="map" class="map"></div>
<span class="tip">
X <span style="color: red">red</span>.
Y <span style="color: green">green</span>.
Z <span style="color: blue">blue</span>.
<button onclick="_next()">next</button>
<button onclick="_resize()">resize</button>
</span>
</body>
<script src="dev.js"></script>
<script>
window.onresize = function () {
console.log('resizing', performance.now());
window.setTimeout(() => {
window._slideshowMap.resize();
}, 0);
}
</script>
</html>