-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
273 lines (257 loc) · 13.3 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>TechHOUNDS Scouting System</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/bootstrap.min.css">
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<link href="css/bootstrap4-toggle.min.css" rel="stylesheet">
<script src="js/bootstrap4-toggle.min.js"></script>
<link rel="stylesheet" href="css/slider.css">
<link rel="stylesheet" href="css/style.css">
<script src="js/index.js"></script>
<link rel="stylesheet" href="css/fonts.css">
</head>
<body style="font-family: 'Alata', sans-serif; background-image:url('images/star.jpg');color:white;">
<div class="container-fluid" style = "width: 95%;">
<ul class="nav nav-pills" style="font-size: 18px">
<li class="active"><a data-toggle="tab" href="#pregame">Pregame</a></li>
<li><a data-toggle="tab" href="#midgame">Midgame</a></li>
<li><a data-toggle="tab" href="#endgame">Endgame</a></li>
<li><a data-toggle="tab" href="#PostGame" onClick="">Postgame</a></li>
<li><a data-toggle="tab" href="#Submit" onclick = "subButton();">Submit</a></li>
</ul>
<div class="tab-content" style = "font-size: 135%;" >
<div id="pregame" class="tab-pane fade in active">
<h3>Pregame</h3>
<p>Match Qualification # Here:</p>
<input style="color:black" type="number" class="textbox" id="matchNo" onKeyPress="if(this.value.length==3) return false; return event.charCode >= 48 && event.charCode <= 57;" onKeyUp="" min="0" max = "9999999"/>
<br>
<br>
<p>Enter Team # Here:</p>
<input style="color:black" type="number" class="textbox" id="teamNo" onKeyPress="if(this.value.length==5) return false; return event.charCode >= 48 && event.charCode <= 57;" onkeyup="filterFunc(); filterCheck()" min="0" max = "9999999"/>
<ul id="teamNoList" style = "display: none">
<li><a id = "868" href="#" onclick = "numberClick(this.id)">868</a></li>
<li><a id = "837" href="#" onclick = "numberClick(this.id)">837</a></li>
<li><a id = "1321" href="#" onclick = "numberClick(this.id)">1321</a></li>
<li><a id = "9334" href="#" onclick = "numberClick(this.id)">9334</a></li>
<li><a id = "234" href="#" onclick = "numberClick(this.id)">234</a></li>
<li><a id = "6956" href="#" onclick = "numberClick(this.id)">6956</a></li>
<li><a id = "7457" href="#" onclick = "numberClick(this.id)">7457</a></li>
</ul>
<br>
<br>
<!-- <p>Number of Power Cells That Have Been Preloaded</p>
<input type="radio" name="numOfCells" id="powerCell0" onClick="powerCellCounter0()" value="0">0</input>
<input type="radio" name="numOfCells" id="powerCell1" onClick="powerCellCounter1()" value="1">1</input>
<input type="radio" name="numOfCells" id="powerCell2" onClick="powerCellCounter2()" value="2">2</input>
<input type="radio" name="numOfCells" id="powerCell3" onClick="powerCellCounter3()" value="3">3</input> -->
</br>
<div id="test"><p></p></div>
</div>
<div id="midgame" class="tab-pane fade">
<h3 onclick="setVars()">Midgame</h3>
<div class = "row">
<div onclick="toggleMidgame()" class = "col-sm-4">
<input type="checkbox" data-toggle="toggle" data-onstyle="danger" data-offstyle="primary" data-height="50" data-width="200" data-on="Tele-Op" data-off="Auton">
</div>
<br>
<div class = "col-sm-4">
<div id="autonButtons">
<label class="container"><input type="checkBox" id="initiationLine"/> Crossing Initiation Line <span class="checkmark"></span> </label>
<br></br>
</div>
<div id="teleOpButtons">
<label class="container"><input type="checkBox" id="spinNumber"/> Control Panel Spun 3-5 Times With Precision <span class="checkmark"></span></label>
<label class="container"><input type="checkBox" id="spinColor"/> Control Panel Spun to Specified Color <span class="checkmark"></span></label>
<label class="container"><input type="checkBox" id="defense"/> Defense was Played <span class="checkmark"></span></label>
<br></br>
</div>
</div>
</div>
<div class="row container" style = "padding-top: 1em;">
<script>
document.getElementById("teleOpButtons").style.display = "none";
</script>
<center>
<div class="row">
<div style="border-style: solid; " class="col-sm-6 bg-white border border-primary lead">
Top Goal
</div>
<div style="border-style: solid;" class="col-sm-4 bg-white border border-primary lead">
Bottom Goal
</div>
</div>
<div class="row" style="padding-bottom: 1em;">
<div class="col-sm-2 bg-white ">
<img style="border-style:solid; border-color:white; border-width:5px;" src="images/innerport.PNG" height="100px" width= "100px">
</div>
<div class="col-sm-2 bg-white">
<img style="border-style:solid; border-color:white; border-width:5px;" src="images/outerport.PNG" height="100px" width= "100px">
</div>
<div class="col-sm-2 bg-white ">
<img style="border-style:solid; border-color:white; border-width:5px;" src="images/cross.png" height="100px" width= "100px">
</div>
<div class="col-sm-2 bg-white ">
<img style="border-style:solid; border-color:white; border-width:5px;" src="images/botyes.PNG" height="100px" width= "100px">
</div>
<div class="col-sm-2 bg-white ">
<img style="border-style:solid; border-color:white; border-width:5px;" src="images/botno.PNG" height="100px" width= "100px">
</div>
</div>
<div class="row">
<div style="border-style: solid;" class="col-sm-2 bg-white">
Top Inner Circle Scored
</div>
<div style="border-style: solid; " class="col-sm-2 bg-white ">
Top Outer Circle Scored
</div>
<div style="border-style: solid; padding-top: .7em; padding-bottom: .7em;" class="col-sm-2 bg-white">
Top Missed
</div>
<div style="border-style: solid; padding-top: .7em; padding-bottom: .7em;" class="col-sm-2 bg-white">
Bottom Scored
</div>
<div style="border-style: solid; padding-top: .7em; padding-bottom: .7em;" class="col-sm-2 bg-white">
Bottom Missed
</div>
</div>
<br>
<div class="row">
<div class="col-sm-2" style="border-left-style: solid;">
<button type="button" class="btn btn-success" style = "width: 125px; height: 65px; font-size: 22px;" id = "buttonUp1" value = "1" onclick = "counterClick(this.id);">+1</button>
</div>
<div class="col-sm-2">
<button type="button" class="btn btn-success" style = "width: 125px; height: 65px; font-size: 22px;" id = "buttonUp2" value = "1" onclick = "counterClick(this.id);">+1</button>
</div>
<div class="col-sm-2">
<button type="button" class="btn btn-success" style = "width: 125px; height: 65px; font-size: 22px;" id = "buttonUp3" value = "1" onclick = "counterClick(this.id);">+1</button>
</div>
<div class="col-sm-2" style="border-left-style: solid;">
<button type="button" class="btn btn-success" style = "width: 125px; height: 65px; font-size: 22px;" id = "buttonUp4" value = "1" onclick = "counterClick(this.id);">+1</button>
</div>
<div class="col-sm-2" style="border-right-style: solid;">
<button type="button" class="btn btn-success" style = "width: 125px; height: 65px; font-size: 22px;" id = "buttonUp5" value = "1" onclick = "counterClick(this.id);">+1</button>
</div>
</div>
<!-- Midgame Buttons and Checkboxes for AUTON -->
<div class="row" id="autonRow" style="padding-top: 1em;">
<div class="col-sm-2 lead" id="auton1">0</div>
<div class="col-sm-2 lead" id="auton2">0</div>
<div class="col-sm-2 lead" id="auton3">0</div>
<div class="col-sm-2 lead" id="auton4">0</div>
<div class="col-sm-2 lead" id="auton5">0</div>
</div>
<!-- Midgame Buttons and Checkboxes for TELEOP -->
<div class="row" id="teleopRow" style = "padding-top: 1em; display: none">
<div class="col-sm-2 lead" id="teleop1">0</div>
<div class="col-sm-2 lead" id="teleop2">0</div>
<div class="col-sm-2 lead" id="teleop3">0</div>
<div class="col-sm-2 lead" id="teleop4">0</div>
<div class="col-sm-2 lead" id="teleop5">0</div>
</div>
<div class="row">
<div class="col-sm-2">
<button type="button" class="btn btn-danger" id = "buttonDown1" value = "-1" onclick = "counterClick(this.id)" style = "font-size: 22px;">-1</button>
</div>
<div class="col-sm-2">
<button type="button" class="btn btn-danger" id = "buttonDown2" value = "-1" onclick = "counterClick(this.id)" style = "font-size: 22px;">-1</button>
</div>
<div class="col-sm-2">
<button type="button" class="btn btn-danger" id = "buttonDown3" value = "-1" onclick = "counterClick(this.id)" style = "font-size: 22px;">-1</button>
</div>
<div class="col-sm-2">
<button type="button" class="btn btn-danger" id = "buttonDown4" value = "-1" onclick = "counterClick(this.id)" style = "font-size: 22px;">-1</button>
</div>
<div class="col-sm-2">
<button type="button" class="btn btn-danger" id = "buttonDown5" value = "-1" onclick = "counterClick(this.id)" style = "font-size: 22px;">-1</button>
</div>
</div>
</center>
</div>
</div>
<div id="endgame" style = "font-size: 150%;" class="tab-pane fade">
<h3>Endgame</h3>
<div class="row">
<div class="col-sm-4">
<label class="container"><input type = "checkBox" id = "ren" style = "transform: scale(2);" onClick = "renPoint();"/> Rendezvous Point <span class="checkmark"></span></label>
<br>
<br>
<label class="container"><input type = "checkBox" id = "climbA" style = "transform: scale(2);" onClick = "climbAttempt()" disabled/> Climb Attempt <span class="checkmark"></span></label>
<br>
<label class="container"><input type = "checkBox" id = "climbS" style = "transform: scale(2);" onClick = "climbS()" disabled/> Success <span class="checkmark"></span></label>
<br>
<label class="container"><input type = "checkBox" id = "climbF" style = "transform: scale(2);" onClick = "climbF()" disabled/> Failure <span class="checkmark"></span></label>
<br>
<br>
<label class="container"><input type = "checkBox" id = "level" style = "transform: scale(2);"/> Generator is level <span class="checkmark"></span></label>
<br>
</div>
<div class="col-sm-4" id = "sGSlid" style = "display:none;">
<center>Climb Attempt Position</center>
<img src="images/shieldGenerator.png" alt="shieldGenerator" class="shieldGeneratorPic" style="padding-bottom: 10px;">
<input style="width:450px" type="range" id="generatorPos" name="generatorPos" min="-2" max="2" step="1" class="shieldGeneratorSlider slider"></center>
</div>
</div>
<p>Number of robots that climbed:</p>
<select style="color:black" id = "roboClimb">
<option style="color: black" value = "0">0</option>
<option value = "1">1</option>
<option value = "2">2</option>
<option value = "3">3</option>
</select>
</div>
<div id="PostGame" class="tab-pane fade">
<form>
<div class="col-sm-4">
<h2 style="padding-bottom: 1em">Extra Information </h2>
<label class="container">
<input type = "checkBox" id = "yellowCard" class="yellowCard"/> Yellow Card
<span class="checkmark"></span>
</label>
<br>
<label class="container">
<input type = "checkBox" id = "redCard" class="redCard"/> Red Card
<span class="checkmark"></span>
</label>
<br>
<label class="container">
<input type = "checkBox" id = "lostComm" class="lostComm"/> Lost Communication
<span class="checkmark"></span>
</label>
<br>
<label class="container">
<input type = "checkBox" id = "disabled" class="disabled"/> Disabled
<span class="checkmark"></span>
</label>
<br>
<label class="container">
<input type = "checkBox" id = "fall" class="Robot Fell Over "/> Robot Fell Over
<span class="checkmark"></span>
</label>
</div>
<div> <br> <br> <br> <br> <br>
<p><font color="black"><textarea rows="4" cols="60" align="down" id = "comments" placeholder="Add Comments Here:"></textarea></font></p>
</div>
</form>
<script type="text/javascript">
function getwords() {
text = words.value;
document.getElementById("para").innerHTML += '<h1>'+text
document.getElementById("words").value = ""
}
</script>
</div>
<div id="Submit" class="tab-pane fade">
<h2 id = "matchCheck" style = "color: red"></h2>
<h2 id = "teamCheck" style = "color: red"></h2>
<!-- <h2 id = "climbCheck" style = "color: red"></h2> -->
<input type="submit" value="Submit" id = "sub" onclick = "setVars()" class = "buttonSubmit"> <br>
<div id="result">
<p id="para"></p>
</div>
</div>
</body>
</html>