-
Notifications
You must be signed in to change notification settings - Fork 11
/
index.html
327 lines (326 loc) · 15.1 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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
<!DOCTYPE html>
<html>
<head>
<title>VEX Autonomous Planner</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1.0, maximum-scale=1.0">
<link href='http://fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,400italic,500,500italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'>
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="css/styles/color-brewer.css" rel="stylesheet" type="text/css" />
<link href="css/main.css" type="text/css" rel="stylesheet" />
<link href="css/index.css" type="text/css" rel="stylesheet" />
</head>
<body>
<div class="header">
<div class="logo">
VEX Autonomous Planner
</div>
<div class="tabs">
<div class="tab selected" data-panel="config">Configuration</div>
<div class="tab" data-panel="keyframes">Keyframes</div>
<div class="tab" data-panel="export-code">Code</div>
<div class="tab" data-panel="about"><img style="height:1.2rem;" src="images/icons/about_white.png" /></div>
</div>
</div>
<div class="tab-panel" id="config">
<div class="config-left-column">
<h2>Components</h2>
<div class="config-components">
</div>
</div>
<div class="config-right-column">
<div class="config-toolbar">
<button class="toolbar-button new-component"><img class="icon" src="images/icons/new.png" /> New Component</button>
<button class="toolbar-button error delete-component" disabled><img class="icon" src="images/icons/discard.png" /> Delete Component</button>
<span class="toolbar-separater">|</span>
<button class="toolbar-button export-configuration"><img class="icon" src="images/icons/share.png" /> Export</button>
<button class="toolbar-button import-configuration"><img class="icon" src="images/icons/collection.png" /> Import</button>
</div>
<div class="config-component-settings">
<input type="text" class="input-text config-component-name" placeholder="Component Name" />
<div class="config-component-types">
<div class="config-component-type selected">Drive</div>
<div class="config-component-type">Lift</div>
<div class="config-component-type">Pneumatic</div>
<div class="config-component-type">Other</div>
</div>
<div class="config-component-pane 0">
<h3>Motors</h3>
<h4>Left</h4>
<div class="options" style="padding-left:1rem;" data-type="motor" id="config-component-drive-motor-left">
<div class="options-box"></div>
<button class="options-button" data-box="config-component-drive-motor-left"><img class="icon" src="images/icons/new.png" /></button>
</div>
<h4>Right</h4>
<div class="options" style="padding-left:1rem;" data-type="motor" id="config-component-drive-motor-right">
<div class="options-box"></div>
<button class="options-button" data-box="config-component-drive-motor-left"><img class="icon" src="images/icons/new.png" /></button>
</div>
<h3>Encoders</h3>
<h4>Left</h4>
<select id="config-component-drive-encoder-left" style="margin-left:1.25rem;">
<option value="0">Digital 1</option>
<option value="1">Digital 2</option>
<option value="2">Digital 3</option>
<option value="3">Digital 4</option>
<option value="4">Digital 5</option>
<option value="5">Digital 6</option>
<option value="6">Digital 7</option>
<option value="7">Digital 8</option>
<option value="8">Digital 9</option>
<option value="9">Digital 10</option>
<option value="10">Digital 11</option>
<option value="11">Digital 12</option>
<option value="12">port1</option>
<option value="13">port2</option>
<option value="14">port3</option>
<option value="15">port4</option>
<option value="16">port5</option>
<option value="17">port6</option>
<option value="18">port7</option>
<option value="19">port8</option>
<option value="20">port9</option>
<option value="21">port10</option>
</select>
<h4>Right</h4>
<select id="config-component-drive-encoder-right" style="margin-left:1.25rem;">
<option value="0">Digital 1</option>
<option value="1">Digital 2</option>
<option value="2">Digital 3</option>
<option value="3">Digital 4</option>
<option value="4">Digital 5</option>
<option value="5">Digital 6</option>
<option value="6">Digital 7</option>
<option value="7">Digital 8</option>
<option value="8">Digital 9</option>
<option value="9">Digital 10</option>
<option value="10">Digital 11</option>
<option value="11">Digital 12</option>
<option value="12">port1</option>
<option value="13">port2</option>
<option value="14">port3</option>
<option value="15">port4</option>
<option value="16">port5</option>
<option value="17">port6</option>
<option value="18">port7</option>
<option value="19">port8</option>
<option value="20">port9</option>
<option value="21">port10</option>
<select>
</div>
<div class="config-component-pane 1">
<h3>Motors</h3>
<div class="options" style="padding-left:1rem;" data-type="motor" id="config-component-lift-motor">
<div class="options-box"></div>
<button class="options-button" data-box="config-component-lift-motor"><img class="icon" src="images/icons/new.png" /></button>
</div>
<h3>Encoder</h3>
<select id="config-component-lift-encoder" style="margin-left:1.25rem;">
<option value="0">Analog 1</option>
<option value="1">Analog 2</option>
<option value="2">Analog 3</option>
<option value="3">Analog 4</option>
<option value="4">Analog 5</option>
<option value="5">Analog 6</option>
<option value="6">Analog 7</option>
<option value="7">Analog 8</option>
<option value="8">Digital 1</option>
<option value="9">Digital 2</option>
<option value="10">Digital 3</option>
<option value="11">Digital 4</option>
<option value="12">Digital 5</option>
<option value="13">Digital 6</option>
<option value="14">Digital 7</option>
<option value="15">Digital 8</option>
<option value="16">Digital 9</option>
<option value="17">Digital 10</option>
<option value="18">Digital 11</option>
<option value="19">Digital 12</option>
<option value="20">port1</option>
<option value="21">port2</option>
<option value="22">port3</option>
<option value="23">port4</option>
<option value="24">port5</option>
<option value="25">port6</option>
<option value="26">port7</option>
<option value="27">port8</option>
<option value="28">port9</option>
<option value="29">port10</option>
</select>
</div>
<div class="config-component-pane 2">
<h3>Digital Sensor Ports</h3>
<div class="options" style="padding-left:1rem;" data-type="digitalsensor" id="config-component-pneumatic-port">
<div class="options-box"></div>
<button class="options-button" data-box="config-component-pneumatic-port"><img class="icon" src="images/icons/new.png" /></button>
</div>
</div>
<div class="config-component-pane 3">
<h3>Other Motors</h3>
<div class="options" style="padding-left:1rem;" data-type="motor" id="config-component-other-motor">
<div class="options-box"></div>
<button class="options-button" data-box="config-component-other-motor"><img class="icon" src="images/icons/new.png" /></button>
</div>
</div>
</div>
<div class="config-component-blank">
<span>Select a component or create a new component</span>
</div>
</div>
</div>
<div class="tab-panel" id="keyframes">
<div class="keyframes-no-drive">
<span>Create a drive component in the configuration tab</span>
</div>
<div class="keyframes-left-overlay">
</div>
<div class="keyframes-right-overlay">
<h2>Components</h2>
<div class="keyframes-components">
</div>
</div>
<div class="keyframes-left-column">
<h2>Keyframes</h2>
<div class="keyframes-frames">
</div>
</div>
<div class="keyframes-middle-column">
<div class="keyframes-toolbar">
<button class="toolbar-button new-keyframe"><img class="icon" src="images/icons/new.png" /> New Frame</button>
<button class="toolbar-button error delete-keyframe" disabled><img class="icon" src="images/icons/discard.png" /> Delete Frame</button>
<span class="toolbar-separater">|</span>
<button class="toolbar-button export-autonomous"><img class="icon" src="images/icons/share.png" /> Export</button>
<button class="toolbar-button import-autonomous"><img class="icon" src="images/icons/collection.png" /> Import</button>
<span class="toolbar-separater">|</span>
<button class="toolbar-button play-autonomous"><img class="icon" src="images/icons/play.png" /></button>
</div>
</div>
<div class="keyframes-field-wrapper">
<div class="keyframes-field">
<div class="keyframes-field-inner">
<div class="keyframes-field-overlay"></div>
<div class="keyframes-field-tiles"></div>
</div>
</div>
</div>
<div class="keyframes-right-column">
<h2>Properties</h2>
<div class="keyframes-properties-pane" id="init">
<h3>Starting Position</h3>
<div style="padding:1rem;">
<select id="keyframes-init-start">
<option value="1">Red Driver Side</option>
<option value="2">Red Non-Driver Side</option>
<option value="3">Blue Driver Side</option>
<option value="4">Blue Non-Driver Side</option>
</select>
</div>
<h3>Rotation</h3>
<div style="padding:1rem;"><input type="text" class="input-text keyframes-init-rotation" placeholder="Degrees" /></div>
<h3>Offset</h3>
<div style="padding:1rem;padding-top:0;">
<h4>X-Offset</h4>
<input type="text" class="input-text keyframes-init-xoffset" placeholder="X" />
<h4>Y-Offset</h4>
<input type="text" class="input-text keyframes-init-yoffset" placeholder="Y" />
</div>
<h3>Lift</h3>
<div class="keyframes-init-lift" style="padding:1rem;padding-top:0;"></div>
<h3>Pneumatics</h3>
<div class="keyframes-init-pneumatics" style="padding:1rem;padding-top:0;"></div>
</div>
<div class="keyframes-properties-pane" id="pid">
<h3>Action Type</h3>
<div style="padding:1rem;">
<select id="keyframes-pid-type">
<option value="pid">PID</option>
<option value="time">Time</option>
</select>
</div>
<h3>Target</h3>
<div style="padding:1rem;">
<select id="keyframes-pid-target"></select>
</div>
<div class="keyframes-pid-drive">
<h3>Action</h3>
<div style="padding:1rem;">
<select id="keyframes-pid-action">
<option value="drive">Drive</option>
<option value="turn">Turn</option>
</select>
</div>
</div>
<h3>Value</h3>
<div style="padding:1rem;">
<input type="text" class="input-text keyframes-pid-value" placeholder="Value" />
</div>
</div>
<div class="keyframes-properties-pane" id="time">
<h3>Action Type</h3>
<div style="padding:1rem;">
<select id="keyframes-time-type">
<option value="pid">PID</option>
<option value="time">Time</option>
</select>
</div>
<h3>Target</h3>
<div style="padding:1rem;">
<select id="keyframes-time-target"></select>
</div>
<h3 class="keyframes-time-value-header">Value</h3>
<div style="padding:1rem;" class="keyframes-time-value-header">
<div class="keyframes-time-pneumatics">
<select id="keyframes-time-pneumatics-value">
<option value="0">Off</option>
<option value="1">On</option>
</select>
</div>
<div class="keyframes-time-other">
<input type="text" class="input-text keyframes-time-other-value" placeholder="Value" />
</div>
</div>
<h3>Time</h3>
<div style="padding:1rem;">
<input type="text" class="input-text keyframes-time-time" placeholder="Time" />
</div>
</div>
</div>
</div>
<div class="tab-panel" id="export-code">
<div class="code-blank-pane">
<span>Create a drive component and at least one keyframe</span>
</div>
<div class="code-toolbar">
<button class="toolbar-button success donate-button"><img class="icon" src="images/icons/money.png" /> Donate</button>
<span class="toolbar-separater donate-text" style="font-weight:300;font-size:0.9rem;color:#666666;">Support a poor college student!</span>
</div>
<div class="code-export-pane">
<div id="code-export-text" contenteditable></div>
</div>
</div>
<div class="tab-panel" id="about">
<div class="about-box">
<h3><font color="#2097CF">VEX Autonomous Planner</font></h3>
<br />
Copyright <a href="http://www.ruiqimao.com" target="_blank">Ruiqi Mao</a> 2014
<br />
All Rights Reserved
</div>
</div>
<div class="toast">Message</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-58221751-1', 'auto');
ga('send', 'pageview');
</script>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/highlight.pack.js"></script>
<script src="js/main.js"></script>
<script src="js/parser.js"></script>
</body>
</html>