-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontroller.html
93 lines (92 loc) · 3.68 KB
/
controller.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
<!DOCTYPE html>
<html>
<head>
<title>Scoreboard Controller</title>
<link rel="stylesheet" href="./CSS/controller.css" />
</head>
<body>
<row>
<column id="side-labels">
<row>Score</row>
<row>Errors</row>
<row>Time Outs</row>
</column>
<column>
<row>
<fieldset>
<legend>Team 1</legend>
<column class="team-container">
<row class="score-row">
<button class="number-button" onclick="changeScoreBy(0, -10);">-10</button>
<button class="number-button" onclick="changeScoreBy(0, -5);">-5</button>
<div class="input-container">
<input id="team1-score" class="new-score" type="number" value="0" />
<label class="score-difference" for="team1-score"></label>
</div>
<button class="number-button" onclick="changeScoreBy(0, 5);">+5</button>
<button class="number-button" onclick="changeScoreBy(0, 10);">+10</button>
</row>
<hr />
<row class="errors-row">
<button class="number-button" onclick="changeErrorsBy(0, -1);">-1</button>
<div class="input-container">
<input id="team1-errors" class="new-errors" type="number" value="0" />
<label class="errors-difference" for="team1-errors"></label>
</div>
<button class="number-button" onclick="changeErrorsBy(0, 1);">+1</button>
</row>
<hr />
<row class="timeouts-row">
<button class="number-button" onclick="changeTimeOutsBy(0, -1);">-1</button>
<div class="input-container">
<input id="team1-timeouts" class="new-timeouts" type="number" value="0" />
<label class="timeouts-difference" for="team1-timeouts"></label>
</div>
<button class="number-button" onclick="changeTimeOutsBy(0, 1);">+1</button>
</row>
</column>
</fieldset>
<fieldset>
<legend>Team 2</legend>
<column class="team-container">
<row class="score-row">
<button class="number-button" onclick="changeScoreBy(1, -10);">-10</button>
<button class="number-button" onclick="changeScoreBy(1, -5);">-5</button>
<div class="input-container">
<input id="team2-score" class="new-score" type="number" value="0" placeholder="0" />
<label class="score-difference" for="team2-score"></label>
</div>
<button class="number-button" onclick="changeScoreBy(1, 5);">+5</button>
<button class="number-button" onclick="changeScoreBy(1, 10);">+10</button>
</row>
<hr />
<row class="errors-row">
<button class="number-button" onclick="changeErrorsBy(1, -1);">-1</button>
<div class="input-container">
<input id="team2-errors" class="new-errors" type="number" value="0" />
<label class="errors-difference" for="team2-errors"></label>
</div>
<button class="number-button" onclick="changeErrorsBy(1, 1);">+1</button>
</row>
<hr />
<row class="timeouts-row">
<button class="number-button" onclick="changeTimeOutsBy(1, -1);">-1</button>
<div class="input-container">
<input id="team2-timeouts" class="new-timeouts" type="number" value="0" />
<label class="timeouts-difference" for="team2-timeouts"></label>
</div>
<button class="number-button" onclick="changeTimeOutsBy(1, 1);">+1</button>
</row>
</column>
</fieldset>
</row>
<row>
<button id="push-button" onclick="pushValues();">Push Changed Values</button>
<button id="pull-button">Pull Values From Scoreboard</button>
<button id="reset-button" onclick="resetValues();">Reset Values</button>
</row>
</column>
</row>
<script src="./JS/controller.js"></script>
</body>
</html>