-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
458 lines (423 loc) · 23.9 KB
/
Copy pathindex.html
File metadata and controls
458 lines (423 loc) · 23.9 KB
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
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1 user-scalable=no">
<title>Atomic Scout</title>
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/output.css">
</head>
<body>
<div class="flex flex-col h-dvh" id="inputPage"> <!-- INPUT PAGE -->
<div class="flex items-end justify-between border-b-2 border-b-white p-4 lg:mx-[25%]">
<div class="w-40 hidden lg:flex"><!-- EMPTY TO MAKE JUSTIFY-BETWEEN WORK --></div>
<ul class="steps w-[100%]">
<li id="step_info" class="step step-primary" onclick="switchToInfo()">Basic Info</li>
<li id="step_auto" class="step" onclick="switchToAutonomous()">Autonomous</li>
<li id="step_teleop" class="step" onclick="switchToTeleop()">TeleOp</li>
<li id="step_endgame" class="step" onclick="switchToEndgame()">Endgame</li>
</ul>
<div class="flex-col items-center justify-center h-full w-40 hidden lg:flex">
<button class="btn btn-primary align-middle" onclick="switchToOverview()">View Data</button>
</div>
</div>
<main class="flex-1 flex items-center justify-center lg:items-start">
<form id="inputForm">
<fieldset id="info" class="fieldset bg-base-200 border-base-300 rounded-box mx-auto mt-10 w-[95vw] border p-4 lg:w-md">
<legend class="fieldset-legend">Basic Info</legend>
<label for="scoutName" class="floating-label mb-1">
<span>Scout Name</span>
<input
id="scoutName"
type="text"
placeholder="Scout Name"
class="input input-md w-full"
/>
</label>
<label for="teamNum" class="floating-label mb-1">
<span>Team Number</span>
<input
id="teamNum"
type="number"
placeholder="Team Number"
class="input input-md w-[40%]"
/>
</label>
<label for="matchNum" class="floating-label mb-1">
<span>Match Number</span>
<input
id="matchNum"
type="number"
placeholder="Match Number"
class="input input-md w-[40%]"
/>
</label>
<label class="select w-full mb-4">
<span class="label">Alliance Color</span>
<select id="allianceColor">
<option disabled selected>Alliance Color</option>
<option>Red</option>
<option>Blue</option>
</select>
</label>
<label class="select w-full mb-4">
<span class="label">Starting Side</span>
<select id="startSide">
<option disabled selected>Match Start Side</option>
<option>Goal</option>
<option>Far</option>
</select>
</label>
<button class="btn btn-primary w-full" onclick="switchToAutonomous()" type="button">Next</button>
</fieldset>
<fieldset id="autonomous" class="fieldset bg-base-200 border-base-300 rounded-box mx-auto mt-10 w-[95vw] border p-4 lg:w-md hidden">
<legend class="fieldset-legend">Autonomous</legend>
<fieldset class="fieldset">
<legend class="fieldset-legend">Artifacts</legend>
<div class="grid grid-cols-2 gap-2">
<label for="autoClassified" class="floating-label mb-1">
<span>Classified</span>
<input
id="autoClassified"
type="number"
placeholder="Classified Artifacts"
class="input input-md w-full"
min=0
/>
</label>
<label for="autoMissed" class="floating-label mb-1">
<span>Dropped</span>
<input
id="autoMissed"
type="number"
placeholder="Missed Artifacts"
class="input input-md w-full"
min=0
/>
</label>
<label for="autoOverflow" class="floating-label mb-1">
<span>Overflow Scored</span>
<input
id="autoOverflow"
type="number"
placeholder="Overflow Artifacts"
class="input input-md w-full"
min=0
/>
</label>
<label for="autoBounceRamp" class="floating-label mb-1">
<span>Bounced Onto Ramp</span>
<input
id="autoBounceRamp"
type="number"
placeholder="Bounced Onto Ramp"
class="input input-md w-full"
min=0
/>
</label>
</div>
</fieldset>
<fieldset class="fieldset">
<legend class="fieldset-legend">Motifs</legend>
<label for="autoMotifs" class="floating-label mb-1">
<span>Motifs</span>
<input
id="autoMotifs"
type="number"
placeholder="Motifs"
class="input input-md w-full"
min=0
/>
</label>
<label class="select w-full mb-1">
<span class="label">Motif</span>
<select id="whichMotif">
<option disabled selected>Which Motif</option>
<option>PPG</option>
<option>PGP</option>
<option>GPP</option>
</select>
</label>
</fieldset>
<fieldset class="fieldset">
<legend class="fieldset-legend">Parking</legend>
<label class="label mb-1" for="autoLeave">
<input type="checkbox" id="autoLeave" class="checkbox checkbox-lg" />
Auto Leave?
</label>
</fieldset>
<fieldset class="fieldset">
<legend class="fieldset-legend">Notes</legend>
<label for="autoNotes" class="floating-label mb-1">
<span>Auto Notes</span>
<input
id="autoNotes"
type="text"
placeholder="Auto Notes"
class="input input-md w-full"
/>
</label>
<label for="autoGateNotes" class="floating-label mb-1">
<span>Gate Notes</span>
<input
id="autoGateNotes"
type="text"
placeholder="Gate Notes"
class="input input-md w-full"
/>
</label>
</fieldset>
<div class="grid grid-cols-2 gap-2">
<button class="w-full btn btn-primary" onclick="switchToInfo()" type="button">Back</button>
<button class="w-full btn btn-primary" onclick="switchToTeleop()" type="button">Next</button>
</div>
</fieldset>
<fieldset id="teleop" class="fieldset bg-base-200 border-base-300 rounded-box mx-auto mt-10 w-[95vw] border p-4 lg:w-md hidden">
<legend class="fieldset-legend">TeleOp</legend>
<fieldset class="fieldset">
<legend class="fieldset-legend">Artifacts</legend>
<div class="grid grid-cols-2 gap-2">
<label for="teleopClassified" class="floating-label mb-1">
<span>Classified</span>
<input
id="teleopClassified"
type="number"
placeholder="Classified Artifacts"
class="input input-md w-full"
min=0
/>
</label>
<label for="teleopMissed" class="floating-label mb-1">
<span>Dropped</span>
<input
id="teleopMissed"
type="number"
placeholder="Missed Artifacts"
class="input input-md w-full"
min=0
/>
</label>
<label for="teleopOverflow" class="floating-label mb-1">
<span>Overflow Scored</span>
<input
id="teleopOverflow"
type="number"
placeholder="Overflow Artifacts"
class="input input-md w-full"
min=0
/>
</label>
<label for="teleopBounceRamp" class="floating-label mb-1">
<span>Bounced Onto Ramp</span>
<input
id="teleopBounceRamp"
type="number"
placeholder="Bounced Onto Ramp"
class="input input-md w-full"
min=0
/>
</label>
</div>
</fieldset>
<fieldset class="fieldset">
<legend class="fieldset-legend">Motifs</legend>
<label for="teleopMotifs" class="floating-label mb-1">
<span>Motifs</span>
<input
id="teleopMotifs"
type="number"
placeholder="Motifs"
class="input input-md w-full"
min=0
/>
</label>
</fieldset>
<fieldset class="fieldset">
<legend class="fieldset-legend">Notes</legend>
<label for="teleopNotes" class="floating-label mb-1">
<span>TeleOp Notes</span>
<input
id="teleopNotes"
type="text"
placeholder="TeleOp Notes"
class="input input-md w-full"
/>
</label>
<label for="teleopGateNotes" class="floating-label mb-1">
<span>Gate Notes</span>
<input
id="teleopGateNotes"
type="text"
placeholder="Gate Notes"
class="input input-md w-full"
/>
</label>
</fieldset>
<div class="grid grid-cols-2 gap-2">
<button class="w-full btn btn-primary" onclick="switchToAutonomous()" type="button">Back</button>
<button class="w-full btn btn-primary" onclick="switchToEndgame()" type="button">Next</button>
</div>
</fieldset>
<fieldset id="endgame" class="fieldset bg-base-200 border-base-300 rounded-box mx-auto mt-10 w-[95vw] border p-4 lg:w-md hidden">
<legend class="fieldset-legend">Endgame</legend>
<fieldset class="fieldset">
<legend class="fieldset-legend">Parking</legend>
<label class="select w-full mb-1">
<span class="label">Parking</span>
<select id="endgameParkLocation">
<option disabled selected>Park Location</option>
<option>None</option>
<option>Partial</option>
<option>Full</option>
</select>
</label>
</fieldset>
<fieldset class="fieldset">
<legend class="fieldset-legend">Penalties</legend>
<div class="grid grid-cols-2 gap-2">
<label for="penaltyPoints" class="floating-label mb-1">
<span>Penalties</span>
<input
id="penaltyPoints"
type="number"
placeholder="Penalty Points"
class="input input-md w-full"
min=0
/>
</label>
</div>
</fieldset>
<fieldset class="fieldset">
<legend class="fieldset-legend">Other</legend>
<label class="label mb-1" for="wasBroken">
<input type="checkbox" id="wasBroken" class="checkbox checkbox-lg" />
Broke?
</label>
<label class="label mb-1" for="sorting">
<input type="checkbox" id="sorting" class="checkbox checkbox-lg" />
Can Sort?
</label>
<label for="otherNotes" class="floating-label mb-1">
<span>Notes</span>
<input
id="otherNotes"
type="text"
placeholder="Notes"
class="input input-md w-full"
/>
</label>
</fieldset>
<div class="grid grid-cols-2 gap-2">
<button class="w-full btn btn-primary" onclick="switchToTeleop()" type="button">Back</button>
<button class="w-full btn btn-primary" onclick="getFormValues()" type="button" id="submitButton">Finish</button>
</div>
</fieldset>
</form>
</main>
</div>
<div class="relative flex flex-col h-dvh items-center content-stretch hidden" id="overviewPage"> <!-- OVERVIEW PAGE -->
<div class="grid grid-cols-3 w-[90%] p-2">
<button type="button" class="btn btn-primary btn-square align-middle" onclick="switchToInput()">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18" />
</svg>
</button>
<h1 class="font-bold text-center text-[40px]">Data Overview</h1>
<div class="justify-end hidden lg:flex">
<input type="file" accept=".json" class="file-input" id="jsonInput" />
<div class="w-[5px]"></div>
<button type="button" class="btn btn-primary" id="jsonButton">
Import JSON
</button>
<div class="w-[10px]"></div>
<a id="jsonButtonExport" href="#" class="btn btn-primary" download>
Download JSON
</a>
</div>
</div>
<div class="flex justify-center overflow-x-auto rounded-box border-base-content/5 bg-base-100 w-[90%]">
<div id="tooltip-default" role="tooltip" class="absolute z-10 invisible inline-block px-3 py-2 text-sm font-medium text-white transition-opacity duration-300 bg-gray-900 rounded-lg shadow-xs opacity-0 tooltip dark:bg-gray-700">
Tooltip content
<div class="tooltip-arrow" data-popper-arrow></div>
</div>
<table class="table overflow-clip table-zebra">
<thead>
<tr>
<th>Team Number</th>
<th>Match Number</th>
<th>Starting Side</th>
<th>Total Score</th>
<th>Autonomous Score</th>
<th>TeleOp Score</th>
<th>Penalties</th>
<th><span class="tooltip tooltip-bottom" data-tip="Total Score Minus Penalties">Corrected Score</span></th>
<th><span class="tooltip tooltip-bottom" data-tip="Percentage of Successful Scoring Attempts">Reliability</span></th>
</tr>
</thead>
<tbody id="dataTable">
</tbody>
</table>
</div>
</div>
<div class="relative flex flex-col h-dvh items-center content-stretch hidden" id="detailsPage"> <!-- DETAILS PAGE -->
<div class="grid grid-cols-3 w-[90%] p-2">
<button type="button" class="btn btn-primary btn-square align-middle" onclick="switchToOverview()">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18" />
</svg>
</button>
<h1 class="font-bold text-center text-[40px]">Team & Match Details</h1>
</div>
<div class="grid grid-cols-1 justify-center overflow-visible relative rounded-box border-base-content/5 bg-base-100 w-[90%]">
<div class="grid grid-cols-3 w-full p-2">
<h1 class="text-[25px] text-center">Match #<span id="detailsMatchNum"></span></h1>
<h1 class="text-[25px] text-center">Team # <span id="detailsTeamNum"></span></h1>
<h1 class="text-[25px] text-center">Starting Location: <span id="detailsStartingPos"></span></h1>
</div>
<hr />
<h1 class="text-[30px] text-center mt-4 font-bold">Autonomous</h1>
<div class="grid grid-cols-3 p-2 justify-center mt-4"> <!-- Autonomous Samples -->
<h1 class="text-[20px] font-light">High Samples (Scored/Dropped): <span id="detailsAutoHighSamples"></span></h1>
<h1 class="text-[20px] font-light">Low Samples (Scored/Dropped): <span id="detailsAutoLowSamples"></span></h1>
<h1 class="text-[20px] font-light">Net Samples (Scored/Dropped): <span id="detailsAutoNetSamples"></span></h1>
</div>
<div class="grid grid-cols-3 p-2 justify-center mt-4"> <!-- Autonomous Specimens -->
<h1 class="text-[20px] font-light">High Specimens (Scored/Dropped): <span id="detailsAutoHighSpecimens"></span></h1>
<h1 class="text-[20px] font-light">Low Specimens (Scored/Dropped): <span id="detailsAutoLowSpecimens"></span></h1>
</div>
<div class="grid grid-cols-3 p-2 justify-center mt-4">
<h1 class="text-[20px] font-light">Park: <span id="detailsAutoPark"></span></h1>
<h1 class="text-[20px] font-light w-[200%]">Auto Notes: <span id="detailsAutoNotes"></span></h1>
</div>
<hr class="mt-4"/>
<h1 class="text-[30px] text-center mt-4 font-bold">TeleOp</h1>
<div class="grid grid-cols-3 p-2 justify-center mt-4"> <!-- Autonomous Samples -->
<h1 class="text-[20px] font-light">High Samples (Scored/Dropped): <span id="detailsTeleOpHighSamples"></span></h1>
<h1 class="text-[20px] font-light">Low Samples (Scored/Dropped): <span id="detailsTeleOpLowSamples"></span></h1>
<h1 class="text-[20px] font-light">Net Samples (Scored/Dropped): <span id="detailsTeleOpNetSamples"></span></h1>
</div>
<div class="grid grid-cols-3 p-2 justify-center mt-4"> <!-- Autonomous Specimens -->
<h1 class="text-[20px] font-light">High Specimens (Scored/Dropped): <span id="detailsTeleOpHighSpecimens"></span></h1>
<h1 class="text-[20px] font-light">Low Specimens (Scored/Dropped): <span id="detailsTeleOpLowSpecimens"></span></h1>
</div>
<div class="grid grid-cols-1 p-2 justify-center mt-4">
<h1 class="text-[20px] font-light">TeleOp Notes: <span id="detailsTeleOpNotes"></span></h1>
</div>
<hr class="mt-4"/>
<h1 class="text-[30px] text-center mt-4 font-bold">Endgame</h1>
<div class="grid grid-cols-4 p-2 justify-center mt-4">
<h1 class="text-[20px] font-light">Park: <span id="detailsTeleOpPark"></span></h1>
<h1 class="text-[20px] font-light">Robot Design: <span id="detailsRobotDesign"></span></h1>
<h1 class="text-[20px] font-light">Broke? <span id="detailsBroke"></span></h1>
<h1 class="text-[20px] font-light">Penalty Points: <span id="detailsPenalties"></span></h1>
</div>
<div class="grid grid-cols-2 p-2 justify-center mt-4">
<h1 class="text-[20px] font-light">Notes: <span id="detailsNotes"></span></h1>
</div>
</div>
</div>
<script src="js/app.js"></script>
<script src="js/details.js"></script>
<script src="js/file.js"></script>
</body>
</html>