-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
46 lines (44 loc) · 1014 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<title>WebGL wind simulation</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<link href='https://api.mapbox.com/mapbox-gl-js/v2.0.0/mapbox-gl.css' rel='stylesheet' />
</head>
<style>
body { margin: 0; padding: 0; }
#app { display: flex; height: 100vh; }
#left-container { flex: 1; position: relative; }
#right-container { flex: 1; position: relative; }
#coastline { background: black; }
#canvas, #coastline {
position: absolute;
width: 100%;
height: 100%;
}
#windgl-controls {
position: absolute;
top: 0;
right: 8px;
}
#map {
height: 100%;
background: #19191A;
}
#controls {
position: absolute;
top: 0;
right: 8px;
}
</style>
<body>
<div id="app">
<div id="right-container">
<div id="map"></div>
<div id="controls"></div>
</div>
</div>
<!-- <script type="module" src="/src/windgl/main.js"></script> -->
<script type="module" src="/src/mapbox/main.js"></script>
</body>
</html>