-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
97 lines (96 loc) · 2.65 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Example 01</title>
<link rel="stylesheet" href="styles/index.css" />
<link
href="https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600&display=swap"
rel="stylesheet"
/>
</head>
<body onload="main()">
<div class="modelsView">
<div id="canvas" class="mvOne"></div>
<div id="models" class="mvTwo">
<button id="modelsButton" type="button">Create Model</button>
<div id="modelsContainer" class="container"></div>
</div>
</div>
<div id="controls" class="wrapper">
<div id="axis&deep" class="one">
<div id="axis">
<p>Axis</p>
<span>x</span
><input name="axis" type="radio" value="0" checked /><br />
<span>y</span><input name="axis" type="radio" value="1" /><br />
<span>z</span><input name="axis" type="radio" value="2" /><br />
</div>
<span>Set deep(z axis)</span><br />
<input id="zDeepInput" type="range" step=".1" max="1" min="-1" />
<input
id="zDeepNum"
type="number"
value="0"
step=".1"
max="1"
min="-1"
/>
</div>
<div class="two">
<p>Controls</p>
<span>Translate</span>
<br />
<input
id="translateInput"
type="range"
step=".1"
max="1"
min="-1"
/><input
id="translateNum"
type="number"
value="0"
step=".1"
max="1"
min="-1"
/>
<br />
<span>Rotate</span>
<br />
<input id="rotateInput" type="range" step="2" max="360" min="-360" />
<input
id="rotateNum"
type="number"
value="0"
step="2"
max="360"
min="-360"
/>
<br />
<span>Scale</span>
<br />
<input id="scaleInput" type="range" step=".1" max="2" min="0" />
<input
id="scaleNum"
type="number"
value="1"
step=".1"
max="2"
min="0"
/>
</div>
<div class="three">
<p>Current Model</p>
<span id="modelSelectedLabel">No model has been added</span>
<input type="color" id="colorModelInput" />
<button id="deleteModelButton">Delete Model</button>
</div>
</div>
<script src="lib/webgl-utils.js"></script>
<script src="lib/webgl-debug.js"></script>
<script src="lib/cuon-utils.js"></script>
<script src="lib/cuon-matrix.js"></script>
<script src="js/index.js"></script>
</body>
</html>