-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
225 lines (219 loc) · 8.15 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title id="title">Basic Ultimate Stats</title>
<link rel="stylesheet" href="css/bootstrap.min.css" type="text/css">
<link rel="stylesheet" href="css/style.css" type="text/css">
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/script.js"></script>
</head>
<body>
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="https://github.com/LukeBurgessYeo/basic-ulti-stats/tree/gh-pages">Basic Ultimate Stats Tracking</a>
</div>
</div>
</nav>
<div class="text-center">
<h2 class="text-primary" id="tournamentTitle" contentEditable>Tournament</h2>
<h1 class="text-primary" id="gameTitle" contentEditable>Game Title</h1>
<button class="btn btn-sm btn-info" id="switch">Switch Sides</button>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-xs-5 text-right offense">
<h5 id="team1mode">Offense</h5>
</div>
<div class="col-xs-2 text-center">
<h5>Score</h5>
</div>
<div class="col-xs-5 text-left defense">
<h5 id="team2mode">Defense</h5>
</div>
</div>
<div class="row">
<div class="col-xs-5 text-right offense">
<h4 id="team1name" style="color: yellow;" contentEditable>Team 1</h4>
</div>
<div class="col-xs-1 text-center">
<h4 id="team1score">0</h4>
</div>
<div class="col-xs-1 text-center">
<h4 id="team2score">0</h4>
</div>
<div class="col-xs-5 text-left defense">
<h4 id="team2name" contentEditable>Team 2</h4>
</div>
</div>
<br>
<div class="row">
<div class="col-sm-6">
<div class="col-xs-12 col-md-6 text-center">
<button class="btn btn-lg btn-info" id="pass">Pass</button>
</div>
<div class="col-xs-12 col-md-6 text-center">
<button class="btn btn-lg btn-danger" id="turnover">Turnover</button>
</div>
</div>
<div class="col-sm-6">
<div class="col-xs-12 col-md-6 text-center">
<button class="btn btn-lg btn-success" id="score">Score</button>
</div>
<div class="col-xs-12 col-md-6 text-center">
<button class="btn btn-lg btn-primary" disabled="true" id="halftime">Halftime</button>
<button class="btn btn-lg btn-warning" disabled="true" id="undo">Undo</button>
</div>
</div>
</div>
<br>
<div class="row">
<div class="col-md-1"></div>
<div class="col-xs-12 col-sm-6 col-md-4">
<div class="row text-center" id="rawData">
<table id='data' class='table table-bordered table-condensed'>
<tr>
<th colspan="3" class="team1">Team 1</th>
<th class="notop">
</th>
<th colspan="3" class="team2">Team 2</th>
</tr>
<tr id="title">
<th>Passes</th>
<th>Turns</th>
<th>O/D</th>
<th>Score</th>
<th>O/D</th>
<th>Turns</th>
<th>Passes</th>
</tr>
</table>
</div>
</div>
<div class="col-md-2"></div>
<div class="col-xs-12 col-sm-6 col-md-4">
<div class="row text-center" id="computedData">
<table class="table table-bordered table-condensed">
<tr>
<th colspan="2" class="team1">Team 1</th>
<th class="notop">
</th>
<th colspan="2" class="team2">Team 2</th>
</tr>
<tr>
<th>O</th>
<th>D</th>
<th></th>
<th>O</th>
<th>D</th>
</tr>
<tr>
<td id="crO1">0/0</td>
<td id="crD1">0/0</td>
<td><span data-toggle="tooltip" title="Points scored / had disc points">Conversions</span></td>
<td id="crO2">0/0</td>
<td id="crD2">0/0</td>
</tr>
<tr>
<td id="pcO1">0/0</td>
<td id="pcD1">0/0</td>
<td><span data-toggle="tooltip" title="Points scored with 0 turnovers / had disc points">Perfect Conversions</span></td>
<td id="pcO2">0/0</td>
<td id="pcD2">0/0</td>
</tr>
<tr>
<td id="toO1">0</td>
<td id="toD1">0</td>
<td><span data-toggle="tooltip" title="Incomplete passes">Turnovers</span></td>
<td id="toO2">0</td>
<td id="toD2">0</td>
</tr>
<tr>
<td id="blO1">0</td>
<td id="blD1">0</td>
<td><span data-toggle="tooltip" title="Equal to opposing team's turnovers">Blocks</span></td>
<td id="blO2">0</td>
<td id="blD2">0</td>
</tr>
<tr>
<td id="brO1">-0</td>
<td id="brD1">0</td>
<td><span data-toggle="tooltip" title="For O: number of points not scored. <br/>For D: number of points scored">Breaks</span></td>
<td id="brO2">-0</td>
<td id="brD2">0</td>
</tr>
<tr>
<td id="mtO1">0</td>
<td id="mtD1">0</td>
<td><span data-toggle="tooltip" title="Total turnovers divided by points played">Turnovers Per Point</span></td>
<td id="mtO2">0</td>
<td id="mtD2">0</td>
</tr>
<tr>
<td id="rrO1">0/0</td>
<td id="rrD1">0/0</td>
<td><span data-toggle="tooltip" title="(AKA 'Imperfect Conversions') Points scored with at least 1 turnover / points with at least 1 turnover">Recovered Points</span></td>
<td id="rrO2">0/0</td>
<td id="rrD2">0/0</td>
</tr>
<tr>
<td></td>
<td id="ds1">0/0</td>
<td><span data-toggle="tooltip" title="Points with at least 1 block / points played (D line only).">Successful D Points</span></td>
<td></td>
<td id="ds2">0/0</td>
</tr>
<tr>
<td colspan="2"></td>
<td></td>
<td colspan="2"></td>
</tr>
<tr>
<td id="tpO1">0/0</td>
<td id="tpD1">0/0</td>
<td><span data-toggle="tooltip" title="Total completed passes">Total Passes</span></td>
<td id="tpO2">0/0</td>
<td id="tpD2">0/0</td>
</tr>
<tr>
<td id="pcrO1">0/0</td>
<td id="pcrD1">0/0</td>
<td><span data-toggle="tooltip" title="Percentage of attempted passes that were completed">Completion Rate</span></td>
<td id="pcrO2">0/0</td>
<td id="pcrD2">0/0</td>
</tr>
<tr>
<td id="mppO1">0</td>
<td id="mppD1">0</td>
<td><span data-toggle="tooltip" title="Total completed passes divided by points played">Passes Per Point</span></td>
<td id="mppO2">0</td>
<td id="mppD2">0</td>
</tr>
<tr>
<td id="mpoO1">0</td>
<td id="mpoD1">0</td>
<td><span data-toggle="tooltip" title="Total completed passes divided by number of possessions">Passes Per Possession</span></td>
<td id="mpoO2">0</td>
<td id="mpoD2">0</td>
</tr>
</table>
</div>
</div>
<div class="col-md-1"></div>
</div>
<div class="row text-center">
<div class="col-xs-12 col-sm-6 text-center">
<button class="btn btn-sm btn-danger" id="clear">Clear Data</button>
</div>
<div class="col-xs-12 col-sm-6 text-center">
<button class="btn btn-sm btn-info" disabled="true" id="save">Save Game</button>
</div>
</div>
<br />
</div>
</body>
</html>