-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
174 lines (148 loc) · 6.62 KB
/
index.html
File metadata and controls
174 lines (148 loc) · 6.62 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>MinuteBots Scouting</title>
<meta name="viewport" content="width=960, initial-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="icon" href="assets/minutebots-logo.ico" type="image/x-icon">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div id="service-error" class="modal">
<div class="modal-content">
<p id="warning-label"></p>
</div>
</div>
<img align="right" class="bad-image" src="assets/minutebots-logo.png" width=325px>
<h1>MinuteBots Scouting</h1>
<br>
<div style="display:inline-block">
<label>Scouter: </label> <u><label id="scouter">none</label></u> <button class="exclude" id="edit-scouter">Change Scouter</button>
</div>
<br>
<div style="display:inline-block">
<label>Competition:</label>
<select id="comp">
<!-- <option value="eagan">Blue Twilight Week 0 (Eagan)</option> -->
<option value="grand-forks">EMCC</option>
</select>
</div>
<div style="display:inline-block">
<label>Match:</label>
<input id="round" style="width:1.7em"></input>
<button id="plus-button"><b>+</b></button>
<button id="minus-button"><b>-</b></button>
</div>
<br>
<div style="display:inline-block">
<label>Team:</label>
<select id="teams">
<option selected value="select">Select team ...</option>
<option value="new">New team ...</option>
</select>
<select id="team-default" style="margin-left: 15px;">
<option selected value="none">No Default</option>
<option value="Red1">Red 1</option>
<option value="Red2">Red 2</option>
<option value="Red3">Red 3</option>
<option value="Blue1">Blue 1</option>
<option value="Blue2">Blue 2</option>
<option value="Blue3">Blue 3</option>
</select>
<select id="tourn-level" style="margin-left: 15px;">
<!-- <option value="none">Select Tournament Level</option> -->
<option value="Practice">Practice</option>
<option selected value="Qualification">Qualifications</option>
<option value="Playoff">Playoffs</option>
</select>
</div>
<br>
<button id="scan-button" style="margin-top: 10px;">Scan for qrcode</button>
<button id="download-csv" style="margin-left: 10px;">Download CSV</button>
<select id="download-opts" class="exclude">
<option value="3">Download All Matches</option>
<option selected value="1">Download Strict Matches</option>
<!-- <option value="2">Download Leftover Matches</option> -->
</select>
<hr>
<button class="collapsible" id="auto">Auto</button>
<div class="section">
<label for="left-zone">Exited alliance starting zone</label>
<input type="checkbox" id="left-zone" class="input" style="margin-bottom: 10px;"></input>
<br>
<table data-sec="auto">
<tr class="con"> <th></th> </tr>
<tr class="succeeds"><th>Scored</th> </tr>
<tr class="fails"><th>Missed</th> </tr>
</table>
<br>
<label for="auto-floor-intake">Could they do floor intake?</label>
<input class="input" id="auto-floor-intake" type="checkbox">
</div>
<br>
<button class="collapsible" id="teleop">Teleop</button>
<div class="section">
<table data-sec="teleop">
<tr class="con"> <th></th> </tr>
<tr class="succeeds"> <th>Scored</th> </tr>
<tr class="fails"><th>Missed</th> </tr>
</table>
<br>
<label for="source-intake">Could they do source intake?</label>
<input class="input" id="source-intake" type="checkbox">
<br>
<label for="teleop-floor-intake">Could they do floor intake?</label>
<input class="input" id="teleop-floor-intake" type="checkbox">
<br>
<label for="climb">Did they climb?</label>
<input class="input" id="climb" type="checkbox">
<label for="climb-others">If yes, with others?</label>
<input class="input" id="climb-others" type="checkbox">
<br>
<label for="trap">Could they score trap?</label>
<input class="input" id="trap" type="checkbox">
</div>
<button class="collapsible" id="post-game">Post Game</button>
<div class="section">
<label for="defense">Did they do any defense?</label>
<input class="input" id="defense" type="checkbox">
<label for="forced-defense">If yes, were they forced to?</label>
<input class="input" id="forced-defense" type="checkbox">
<br>
<label for="break">Did they break or loose a part?</label>
<input class="input" id="break" type="checkbox">
<br>
<label for="disable">Did they disable or stop moving?</label>
<input class="input" id="disable" type="checkbox">
<br><br>
<label>Any extra comments? Keep any comments short, objective, and respectful.</label>
<br>
<textarea class="input" id="comments"></textarea>
</div>
<div class="center"><button id="generate-qrcode">Generate Qrcode</button></div>
<div id="qrcode-div" class="modal">
<div class="modal-content">
<span class="close-modal">×</span>
<label style="color:black" id="qrcode-team"></label>
<br>
<div id="qrcode" class="qrcode" style="text-align: center; display:inline-block;"></div>
</div>
</div>
<div id="scanner">
<div id="cameraStream"></div>
<button id="close-scanner">Close Scanner</button>
</div>
<div class="loading" id="load-block">Loading ...</div>
<script type="module">
try {
const reg = await navigator.serviceWorker.register('app.js')
await reg.update();
} catch (e) {
console.log('service worker registration failed', e);
}
</script>
<script src="scripts/qrcode.js"></script>
<script src="scripts/script.js" type="module"></script>
</body>
</html>