forked from alexanderdickson/Soft3D
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
66 lines (60 loc) · 1.27 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
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Soft3D</title>
<style type="text/css">
body {
font-family: Helvetica, arial, sans-serif;
}
canvas {
width: 400px;
height: 400px;
background: #000;
}
form {
width: 400px;
}
form fieldset {
position: relative;
border: none;
padding-top: 30px;
margin-top: 10px;
}
form fieldset legend {
position: absolute;
top: 0;
left: 0;
font-weight: bold;
}
form fieldset ol {
list-style: none;
padding: 0;
}
</style>
</head>
<body>
<h1>Soft3D</h1>
<canvas width="400" height="400"></canvas>
<form>
<fieldset>
<legend>Rotation</legend>
<ol>
<li>
<label for="rotation-x">X</label>
<input type="range" id="rotation-x" min="0" max="6.2832" step=".01" value="0">
</li>
<li>
<label for="rotation-y">Y</label>
<input type="range" id="rotation-y" min="0" max="6.2832" step=".01" value="0">
</li>
<li>
<label for="rotation-z">Z</label>
<input type="range" id="rotation-z" min="0" max="6.2832" step=".01" value="0">
</li>
</ol>
</fieldset>
</form>
<script src="/bundle.js"></script>
</body>
</html>