-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuser.html
149 lines (117 loc) · 6.88 KB
/
user.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Scout | Falcon Scout</title>
<link rel="stylesheet" href="user.css">
<script src="user.js"></script>
<script src="https://cdn.rawgit.com/davidshimjs/qrcodejs/gh-pages/qrcode.min.js"></script>
</head>
<body>
<br>
<h1 class = "section">Falcon Scout</h1>
<h2 class = "section">General Information</h2>
<div class = "section">
<h3>Team Number</h3>
<input class = "input-button" id = "teaminput">
</div>
<div class = "section">
<h3>Match Number</h3>
<input class = "input-button" id = "matchinput">
</div>
<div class = "section" id = "section1">
<h3>Was the robot in our alliance?</h3>
<button class = "general-button" id = "allianceno" onclick = "highlightButton('section1', this); inAlliance(this.id)">No</button>
<button class = "general-button" id = "allianceyes" onclick = "highlightButton('section1', this); inAlliance(this.id)">Yes</button>
</div>
<h2 class = "section">Autonomous Period</h2>
<div class = "section" id = "section2">
<h3>Did the robot leave the community zone?</h3>
<button class = "general-button" id = "leftcommunityno" onclick = "leftCommunity(this.id); highlightButton('section2', this)">No</button>
<button class = "general-button" id = "leftcommunityyes" onclick = "leftCommunity(this.id); highlightButton('section2', this)">Yes</button>
</div>
<div class = "section">
<h3>Number of notes scored in the speaker</h3>
<button class = "input-subtraction-button" id = "speaker" onclick = "subtraction(this)"></button>
<input class = "num-input" id = "speakerinput" value = 0>
<button class = "input-addition-button" id = "speaker" onclick="addition(this)"></button>
</div>
<div class = "section">
<h3>Number of notes scored in the amp</h3>
<button class = "input-subtraction-button" id = "amp" onclick = "subtraction(this)"></button>
<input class = "num-input" id = "ampinput" value = 0>
<button class = "input-addition-button" id = "amp" onclick="addition(this)"></button>
</div>
<div class = "section">
<h2>Total Auto Score</h2>
<div id= "totalAutoScore">0</div>
</div>
<div class = "section">
<h2>Overall ranking of robot's performance during auto (out of 10)</h2>
<button class = "input-subtraction-button" id = "ranking" onclick = "subtraction(this)"></button>
<input class = "num-input" id = "rankinginput" value = 0>
<button class = "input-addition-button" id = "ranking" onclick="addition(this)"></button>
</div>
<h2 class="section"> Teleop</h2>
<div class="section">
<h2>Speaker Points</h2>
<button class="input-subtraction-button" id="speaker2" onclick="subtraction(this)"> </button>
<input class="num-input" id="speaker2input" type="text" value="0" />
<button class="input-addition-button" id="speaker2" onclick="addition(this)"> </button>
</div>
<div class="section">
<h2>Amp Points</h2>
<button class="input-subtraction-button" id="amp2" onclick="subtraction(this)"> </button>
<input class="num-input" id="amp2input" type="text" value="0" />
<button class="input-addition-button" id="amp2" onclick="addition(this)"> </button>
</div>
<div class="section">
<h2>Rate team's speed from 1-3</h2>
<button class="input-subtraction-button" id="speed" onclick="subtraction(this)"> </button>
<input class="num-input" id="speedinput" type="text" value="1" />
<button class="input-addition-button" id="speed" onclick="addition(this)"> </button>
</div>
<div class="section" id="section3">
<h2>Did they get coopertition bonus?</h2>
<button class="general-button" id="coopertitionno" onclick="coopertition(this.id); highlightButton('section3', this)">No</button>
<button class="general-button" id="coopertititonyes" onclick="coopertition(this.id); highlightButton('section3', this)">Yes</button>
</div>
<h2>Endgame</h2>
<div class = "section" id = "section4">
<h3>Did they complete the throw?</h3>
<button class = "general-button" id = "throwingno" onclick = "highlightButton('section4', this); completeThrow(this.id)">No</button>
<button class = "general-button" id = "throwingyes" onclick = "highlightButton('section4', this); completeThrow(this.id)">Yes</button>
</div>
<br/>
<div class = "section" id = "section5">
<h3>Did the robot park?</h3>
<button class = "general-button" id = "parkingno" onclick = "highlightButton('section5', this); parking(this.id)">No</button>
<button class = "general-button" id = "parkingyes" onclick = "highlightButton('section5', this); parking(this.id)">Yes</button>
</div>
<br/>
<div class="section" id="section6">
<h3>What side did they hang on?</h4>
<button class = "general-button" id = "hangleft" onclick = "highlightButton('section6', this); whereOnChain(this.id)">Left</button>
<button class = "general-button" id = "hangno" onclick = "highlightButton('section6', this); whereOnChain(this.id)">Didn't</button>
<button class = "general-button" id = "hangright" onclick = "highlightButton('section6', this); whereOnChain(this.id)">Right</button>
<h3> How many teams did they hang with?</h5>
<button class="input-subtraction-button" id="hang" onclick="subtraction(this)"></button>
<input class = "num-input" id="hanginput" type="text" value="0"/>
<button class="input-addition-button" id="hang" onclick="addition(this)"></button>
</div>
<br/>
<div class = "section" id = "section7">
<h3>Did the robot score in the trap?</h3>
<button class = "general-button" id = "trapno" onclick = "highlightButton('section7', this); trapScore(this.id)">No</button>
<button class = "general-button" id = "trapyes" onclick = "highlightButton('section7', this); trapScore(this.id)">Yes</button>
</div>
<div class = "section">
<button class = "input-submit-button" onclick = "generateQRCode()"></button>
</div>
<div class="qrcode section" id="qrcode"></div>
<div class = "section">
<button class = "clear-button" onclick="clearForm(); unhighlightButtons()"></button>
</div>
</body>