-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
64 lines (59 loc) · 1.51 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
64
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>boxart</title>
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<style type="text/css">
html, body {
padding: 0;
margin: 0;
border: 0;
overflow: hidden;
font-family: Helvetica, sans-serif;
background: black;
}
#controls {
position: absolute;
top: 0; left: 0; right: 0;
padding: 5px;
color: white;
background: rgba(0,0,0,0.7);
}
input {
width: 50px;
}
.dimensions {
float: right;
}
</style>
</head>
<body>
<div id="controls">
<label>
Template:
<select id="template">
<option value="box">Box</option>
<option value="cylinder">Cylinder</option>
<option value="box">Another Box</option>
</select>
</label>
<div id="cuboid-dimensions" class="dimensions" style="display:none">
Dimensions:
<input type="number" min="1" value="18"> x
<input type="number" min="1" value="22"> x
<input type="number" min="1" value="5">
</div>
<div id="cylindrical-dimensions" class="dimensions" style="display:none">
<label>Radius: <input type="number" min="1" value="10"></label>
<label>Height: <input type="number" min="1" value="22"></label>
</div>
</div>
<script src="./lib/Three.js"></script>
<script src="./lib/Detector.js"></script>
<script src="./lib/OrbitControls.js"></script>
<script src="./lib/Mirror.js"></script>
<script src="./lib/jquery-1.9.1.js"></script>
<script src="main.js"></script>
</body>
</html>