-
Notifications
You must be signed in to change notification settings - Fork 0
/
viewer.html
36 lines (32 loc) · 940 Bytes
/
viewer.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>3D Model Viewer</title>
<link rel="stylesheet" href="viewer.css">
</head>
<body>
<h1>Command Module Apollo 11 3D Model</h1>
<!--Load scripts-->
<script type="module" src="/viewer.js"></script>
<script src="/addons/loaders/GLTFLoader.js"></script>
<script src="/addons/controls/OrbitControls.js"></script>
<script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js"></script>
<script type="importmap">
{
"imports": {
"three": "https://unpkg.com/three/build/three.module.js"
}
}
</script>
<!--Viewer element-->
<div class="viewer-container">
<div id="viewer"></div>
</div>
<!--Button elements-->
<div class="button-container">
<button id="zoom-out" class="zoom-button-out">Zoom Out</button>
<button id="zoom-in" class="zoom-button-in">Zoom In</button>
</div>
</body>
</html>