-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
74 lines (62 loc) · 1.89 KB
/
index.html
File metadata and controls
74 lines (62 loc) · 1.89 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>ViewControls</title>
<style>
body {
margin: 0;
overflow: hidden;
color: black;
}
kbd {
background-color: #f2f2f2;
border-radius: 0.25em;
border: 1px solid #aaaaaa;
padding: 5px 5px;
margin: 5px;
}
.instructions {
font-size: 24px;
position: absolute;
background-color: #FFFFE0;
line-height: 2em;
padding: 7em 1.5em 6em 1.5em;
text-align: center;
visibility: hidden;
}
</style>
<script type="importmap">
{
"imports": {
"three": "https://unpkg.com/three@0.149.0/build/three.module.js",
"three/examples/": "https://unpkg.com/three@0.149.0/examples/"
}
}
</script>
</head>
<body>
<div id="alt" class="instructions">
Holding the<kbd>Alt</kbd> key, click (and hold) your mouse on an object.<br>
Move the mouse left or right to orbit around the object.<br>
Move the mouse up or down to pan in or out.
</div>
<div id="altCtrl" class="instructions">
Holding the<kbd>Alt</kbd>+<kbd>Ctrl</kbd> keys, click (and hold) your mouse on an object.<br>
Moving the mouse left or right still orbits around the object<br>
but moving up or down now rotates over or under.
</div>
<div id="escape" class="instructions">
Press the<kbd>Esc</kbd>key to return the camera to its<br>
original position and rotation!
</div>
<div id="lookUp" class="instructions">
Try looking on top of the upper block.
</div>
<div id="haveYouSeen" class="instructions">
Have you seen all four signs?<br>
If so, that's it!
</div>
<script src="main.js" type="module"></script>
</body>
</html>