-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
365 lines (353 loc) · 12.4 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>FR Scout</title>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.css">
<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.js"></script>
<script src="https://semantic-ui.com/javascript/library/tablesort.js"></script>
<script src="js/scout.js"></script>
<script src="js/script.js"></script>
<link rel="stylesheet" type="text/css" href="./style.css">
</head>
<body>
<article>
<div class="ui top attached tabular menu">
<a class="active item" data-tab="teams">
Teams
</a>
<a class="item" data-tab="matches">
Matches
</a>
</div>
<div class="ui bottom attached tab raised very padded container segment active" data-tab="teams">
<header>
<h1 class="ui header">FIRST Robotics Scout</h1>
<div class="ui inline search">
<div class="ui icon input">
<input id="searcher" class="prompt" type="text" placeholder="Team number...">
<i class="search icon"></i>
</div>
<div class="results"></div>
</div>
<div class="ui positive newteam right labeled icon button right floated inline" id="newteam_button">
<i class="plus icon"></i>
New Team
</div>
</header>
<div class="ui stackable grid container centered" id="teamView">
<div class="ui active inverted dimmer">
<div class="ui mini text loader">
Loading...
</div>
</div>
</div>
</div>
<div class="ui bottom attached tab raised padded container segment" data-tab="matches">
<table class="ui selectable sortable celled seven column table">
<thead>
<tr>
<th class="sorted default-sort">Match #</th>
<th>Blue Alliance</th>
<th>Red Alliance</th>
<th>Red Score</th>
<th>Blue Score</th>
<th>Red Ranking Points</th>
<th>Blue Ranking Points</th>
</tr>
</thead>
<tbody id="match_data">
</tbody>
</table>
</div>
</article>
<footer>
<p>Site by Devon Mack 2018</p>
</footer>
</body>
</html>
<div class="ui standard newteam teamform modal">
<div class="header">Create New Team</div>
<div class="content">
<form class="ui form newteam teamform">
<div class="required field">
<label>Team Number</label>
<input placeholder="Team #" name="number" type="text">
</div>
<div class="field">
<label>Team Name</label>
<input placeholder="Team Name" name="name" type="text">
</div>
<div class="field">
<label>Objective Score</label>
<select class="ui search dropdown" name="objective_score">
<option selected="selected" value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select>
</div>
<div class="field">
<label>Consistency</label>
<select class="ui search dropdown" name="consistency">
<option selected="selected" value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select>
</div>
<div class="field">
<label>Driver Skill</label>
<select class="ui search dropdown" name="driver_skill">
<option selected="selected" value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select>
</div>
<div class="field">
<label>Autonomous</label>
<select class="ui search dropdown" name="autonomous">
<option selected="selected" value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select>
</div>
<div class="field">
<label>Notes</label>
<textarea name="notes" placeholder="Notes about the team"></textarea>
</div>
<div class="field">
<label>Issues</label>
<textarea name="issues" placeholder="Issues with the team"></textarea>
</div>
<div class="ui error message"></div>
<div class="actions">
<div class="ui red deny button">
Cancel
</div>
<div class="ui approve primary submit positive right labeled icon button teamform" id="createteam">
Create
<i class="checkmark icon"></i>
</div>
</div>
</form>
</div>
</div>
<div class="ui standard edit modal">
<div class="header">Edit Team</div>
<div class="content">
<form class="ui form edit teamform">
<div class="required field">
<label>Team Number</label>
<input placeholder="Team #" name="number" type="text" class="field_teamnumber">
</div>
<div class="field">
<label>Team Name</label>
<input placeholder="Team Name" name="name" type="text" class="field_teamname">
</div>
<div class="field">
<label>Objective Score</label>
<select class="ui search dropdown field_objscore" name="objective_score">
<option selected="selected" value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select>
</div>
<div class="field">
<label>Consistency</label>
<select class="ui search dropdown field_consistency" name="consistency">
<option selected="selected" value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select>
</div>
<div class="field">
<label>Driver Skill</label>
<select class="ui search dropdown field_driverskill" name="driver_skill">
<option selected="selected" value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select>
</div>
<div class="field">
<label>Autonomous</label>
<select class="ui search dropdown field_autonomous" name="autonomous">
<option selected="selected" value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select>
</div>
<div class="field">
<label>Notes</label>
<textarea name="notes" placeholder="Notes about the team" class="field_notes"></textarea>
</div>
<div class="field">
<label>Issues</label>
<textarea name="issues" placeholder="Issues with the team" class="field_issues"></textarea>
</div>
<div class="ui error message"></div>
<div class="actions">
<div class="ui red deny button inline">
Cancel
</div>
<div class="ui approve primary submit positive right labeled icon button teamform inline" id="createteam">
Done
<i class="checkmark icon"></i>
</div>
<div class="ui red deny inline left floated labeled icon button delete">
Delete
<i class="x icon"></i>
</div>
</div>
</form>
</div>
</div>
<template id="teamTemplate">
<div class="sixteen wide mobile eight wide tablet five wide computer column" style="justify-content: left;">
<div class="ui segments">
<div class="ui segment head">
<div class="teamname_holder">
<p class="teamname inline">0000</p>
</div>
<button class="ui very small inline icon edit button right floated">
<i class="edit icon"></i>
</button>
</div>
<div class="ui secondary segment">
<div class="ui orange progress">
<div class="label">Objective Score</div>
<div class="bar"></div>
</div>
<div class="ui blue progress">
<div class="label">Consistency</div>
<div class="bar"></div>
</div>
<div class="ui violet progress">
<div class="label">Driver Skill</div>
<div class="bar"></div>
</div>
<div class="ui grey progress">
<div class="label">Autonomous</div>
<div class="bar"></div>
</div>
</div>
<div class="ui secondary segment notescontainer">
<div class="ui accordion">
<div class="title">
<div class="ui horizontal label">Notes:</div>
<p class="info notes detailed"></p>
</div>
<div class="content">
</div>
</div>
</div>
<div class="ui secondary segment issuescontainer">
<div class="ui accordion">
<div class="title">
<div class="ui horizontal label">Issues:</div>
<p class="info issues detailed"></p>
</div>
<div class="content">
</div>
</div>
</div>
</div>
</template>
<template class="expand_accordion_notes">
<div class="ui accordion">
<div class="title">
<i class="dropdown icon"></i>
<div class="ui horizontal label">Notes:</div>
<p class="info notes truncate"></p>
</div>
<div class="content">
<p class="info notes detailed"></p>
</div>
</div>
</template>
<template class="expand_accordion_issues">
<div class="ui accordion">
<div class="title">
<i class="dropdown icon"></i>
<div class="ui horizontal label">Issues:</div>
<p class="info issues truncate"></p>
</div>
<div class="content">
<p class="info issues detailed"></p>
</div>
</div>
</template>
<template id="matchRow">
<tr>
<td data-label="Match #"><p class="matchNumber"></p></td>
<td data-label="Blue Alliance"><p class="blueAlliance"></p></td>
<td data-label="Red Alliance"><p class="redAlliance"></p></td>
<td data-label="Red Score"><p class="redScore"></p></td>
<td data-label="Blue Score"><p class="blueScore"></p></td>
<td data-label="Red Ranking Points"><p class="redRanking"></p></td>
<td data-label="Blue Ranking Points"><p class="blueRanking"></p></td>
</tr>
</template>