-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.html
executable file
·146 lines (127 loc) · 2.95 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>camera path tool</title>
<style>
body{
background-color: white;
margin: 0;
overflow: hidden;
}
#code{
display: none;
position: fixed;
box-sizing: border-box;
left: 0;
top: 0;
width: 50%;
height: 100vh;
padding: 5em 2em 1em;
font-family: courier;
color: white;
background: rgba(0, 0, 0, 0.8);
z-index: 10;
overflow: auto;
}
#ui{
display: none;
position: fixed;
right: 0;
top: 0;
width: 25%;
height: 100vh;
padding: 1em;
color: white;
font-family: helvetica, sans-serif;
background: rgba(0, 0, 0, 0.8);
z-index: 10;
}
#codeButton, #helpButton{
position: absolute;
top: 2em;
right: 2em;
}
#helpButton{
width: 30px;
height: 30px;
border: 1px solid black;
border-radius: 30px;
z-index: 1000;
}
.button{
padding: .5em 1em;
border-radius: 5px;
border: none;
font-weight: bold;
background: white;
cursor: pointer;
}
#fileInput{
display: none;
}
#nodeDetails{
position: fixed;
bottom: 0;
left: 0;
width: 70px;
padding: .5em;
color: white;
font-family: sans-serif;
background: rgba(0, 0, 0, 0.5);
}
#sliderHolder{
display: none;
position: fixed;
bottom: 0;
left: 200px;
width: 300px;
height: 20px;
background: rgba(255, 0, 0, 0.5);
}
#slider{
position: absolute;
height: 20px;
width: 20px;
background: rgba(0, 0, 0, 0.5);
cursor: pointer;
}
</style>
</head>
<body>
<button id="helpButton" class="button">?</button>
<div id="ui">
<input type="file" id="fileInput" />
<button id="loadButton" class="button">Load</button>
<button id="saveButton" class="button">Save</button>
<div>
<h3>Instructions</h3>
<small>
<p>Click a Node to Move</p>
<table>
<tr><td><strong>=</strong></td><td>Add Spline</td></tr>
<tr><td><strong>-</strong></td><td>Remove Spline</td></tr>
<tr><td><strong>H</strong></td><td>Toggle Code View</td></tr>
<tr><td><strong>UP/DOWN</strong></td><td>Y Axis</td></tr>
<tr><td><strong>LEFT/RIGHT</strong></td><td>X Axis</td></tr>
<tr><td><strong>OPTION + UP/DOWN</strong></td><td>Z Axis</td></tr>
<tr><td><strong>SHIFT</strong></td><td>Speed Up</td></tr>
</table>
</small>
</div>
</div>
<div id="sliderHolder">
<div id="slider"></div>
</div>
<div id="nodeDetails"></div>
<div id="code">
<button id="codeButton" class="button">Select</button>
<div id="codeCopy"></div>
</div>
<script src="js/FileSaver.js"></script>
<script src="js/threejs/build/three.js"></script>
<script src="js/threejs/examples/js/controls/EditorControls.js"></script>
<script src="js/threejs/examples/js/CurveExtras.js"></script>
<script src="js/main.js"></script>
</body>
</html>