-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
35 lines (34 loc) · 1.16 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>CS175 Final Project</title>
</head>
<body>
<!-- loading screen is removed in main.ts after promises resolve -->
<div id="loading">Loading models, I'll be right back!</div>
<canvas id="canvas"></canvas>
<div id="controls">
<div>Controls <span>X</span></div>
<ul class="show">
<li>W-A-S-D to move laterally</li>
<li>Q-E to move up & down</li>
<li>Arrows keys to look around</li>
<li>Click water to splash</li>
<li>Scrolling moves sun position</li>
<li>Hold shift to move fast</li>
<li>Press 0 to return home</li>
<li>Check out the view from space!</li>
</ul>
</div>
<script type="module" src="/src/main.ts"></script>
<script>
let controlsCloseButton = document.querySelector("#controls span");
let controlsList = document.querySelector("#controls ul");
controlsCloseButton.addEventListener("click", () =>
controlsList.classList.toggle("show")
);
</script>
</body>
</html>