-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
391 lines (382 loc) · 13.2 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
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>highball</title>
<meta name="description" content="The 9 ball scorekeeper for APA style scoring.">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png">
<link rel="icon" type="image/png" href="favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="favicon-16x16.png" sizes="16x16">
<link rel="manifest" href="manifest.json">
<link rel="mask-icon" href="safari-pinned-tab.svg" color="#5bbad5">
<meta name="theme-color" content="#ffffff">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">
<link href="https://fonts.googleapis.com/css?family=Mada:300,400,900" rel="stylesheet">
<link rel="stylesheet" href="css/style.css?V=1.1.3">
</head>
<body>
<div class="screen-landscape">
<!-- <div class="view view-top"></div>-->
<div class="view view-middle">
<div class="row row-top">
<div class="column">
<div class="player player-one">
<div contenteditable="true" placeholder="Player One" class="label player-name" id="player-1-Name"></div>
<div>Skill Level
<select name="select" class="skill-level left">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4" selected>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>
</select>
</div>
</div>
<div class="goalContainer">
<span>Points Needed:</span>
<span id="leftPlayerGoal" class="label">31</span>
</div>
<div class="rack hidden">1</div>
</div>
<div class="column">
<table class="rack-table">
<thead>
<tr>
<th class="label" id ="rackNumberLabel">Rack #</th>
</tr>
</thead>
<tbody>
<tr>
<th>P1</th>
</tr>
<tr>
<th>Inn.</th>
</tr>
<tr>
<th>Dead</th>
</tr>
<tr>
<th>P2</th>
</tr>
</tbody>
</table>
<div class="rack-buttons hidden">
<button class="btn edit-score">Edit Score</button>
<button class="btn next-rack">Next Rack</button>
</div>
<div class="game-buttons hidden" style="display:none;">
<button class="btn undo-last-point">Undo Last Point</button>
<button class="btn reset-game">Reset Game</button>
</div>
<button class="btn lock">Lock</button>
</div>
<div class="column">
<div class="player player-two">
<div contenteditable="true" placeholder="Player Two" class="label player-name" id="player-2-Name"></div>
<div>Skill Level
<select name="select" class="skill-level right">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4" selected>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>
</select>
</div>
</div>
<div class="goalContainer">
<span>Points Needed:</span>
<span id="rightPlayerGoal" class="label">31</span>
</div>
</div>
</div>
<div class="row row-middle">
<div class="column">
<div class="grid left-grid">
<div class="ball-container spacer">
<div class="ball"></div>
</div>
<div class="ball-container">
<div class="ball ball-1 neutral left">
<div class="white-background">
1
</div>
</div>
</div>
<div class="ball-container spacer">
<div class="ball"></div>
</div>
<div class="ball-container">
<div class="ball ball-2 neutral left">
<div class="white-background">
2
</div>
</div>
</div>
<div class="ball-container">
<div class="ball ball-8 neutral left">
<div class="white-background">
8
</div>
</div>
</div>
<div class="ball-container">
<div class="ball ball-3 neutral left">
<div class="white-background">
3
</div>
</div>
</div>
<div class="ball-container">
<div class="ball ball-9 neutral left">
<div class="white-background">
9
</div>
</div>
</div>
<div class="ball-container">
<div class="ball ball-7 neutral left">
<div class="white-background">
7
</div>
</div>
</div>
<div class="ball-container">
<div class="ball ball-4 neutral left">
<div class="white-background">
4
</div>
</div>
</div>
<div class="ball-container">
<div class="ball ball-6 neutral left">
<div class="white-background">
6
</div>
</div>
</div>
<div class="ball-container spacer">
<div class="ball"></div>
</div>
<div class="ball-container">
<div class="ball ball-5 neutral left">
<div class="white-background">
5
</div>
</div>
</div>
<div class="ball-container spacer">
<div class="ball"></div>
</div>
</div>
</div>
<div class="column">
<div class="score">
<h1><span class="player-one-score">0</span> - <span class="player-two-score">0</span></h1>
<div id="lastClicked">
</div>
</div>
</div>
<div class="column">
<div class="grid right-grid">
<div class="ball-container spacer">
<div class="ball"></div>
</div>
<div class="ball-container">
<div class="ball ball-1 neutral right">
<div class="white-background">
1
</div>
</div>
</div>
<div class="ball-container spacer">
<div class="ball"></div>
</div>
<div class="ball-container">
<div class="ball ball-2 neutral right">
<div class="white-background">
2
</div>
</div>
</div>
<div class="ball-container">
<div class="ball ball-8 neutral right">
<div class="white-background">
8
</div>
</div>
</div>
<div class="ball-container">
<div class="ball ball-3 neutral right">
<div class="white-background">
3
</div>
</div>
</div>
<div class="ball-container">
<div class="ball ball-9 neutral right">
<div class="white-background">
9
</div>
</div>
</div>
<div class="ball-container">
<div class="ball ball-7 neutral right">
<div class="white-background">
7
</div>
</div>
</div>
<div class="ball-container">
<div class="ball ball-4 neutral right">
<div class="white-background">
4
</div>
</div>
</div>
<div class="ball-container">
<div class="ball ball-6 neutral right">
<div class="white-background">
6
</div>
</div>
</div>
<div class="ball-container spacer">
<div class="ball"></div>
</div>
<div class="ball-container">
<div class="ball ball-5 neutral right">
<div class="white-background">
5
</div>
</div>
</div>
<div class="ball-container spacer">
<div class="ball"></div>
</div>
</div>
</div>
</div>
<div class="row row-bottom">
<div class="column bottom-column">
<div class="incrementer">
<div class="label">9OTS</div>
<button class="btn decrement">-</button>
<span class="number">0</span>
<button class="btn increment nineOTS left">+</button>
</div>
<div class="incrementer">
<div class="label">B&R</div>
<button class="btn decrement">-</button>
<span class="number">0</span>
<button class="btn increment">+</button>
</div>
<div class="incrementer">
<div class="label">Defense</div>
<button class="btn decrement">-</button>
<span class="number">0</span>
<button class="btn increment">+</button>
</div>
</div>
<div class="column">
<div>
<span class="label">Innings</span>
<br>
<button class="btn decrement">-</button>
<span class="number number-innings">0</span>
<button class="btn increment">+</button>
</div>
<br>
<div>
<span class="label">Dead Balls</span>
<br><span class="dead-ball-score">0</span>
</div>
</div>
<div class="column bottom-column row-reverse">
<div class="incrementer">
<div class="label">9OTS</div>
<button class="btn decrement">-</button>
<span class="number">0</span>
<button class="btn increment nineOTS right">+</button>
</div>
<div class="incrementer">
<div class="label">B&R</div>
<button class="btn decrement">-</button>
<span class="number">0</span>
<button class="btn increment">+</button>
</div>
<div class="incrementer">
<div class="label">Defense</div>
<button class="btn decrement">-</button>
<span class="number">0</span>
<button class="btn increment">+</button>
</div>
</div>
</div>
</div>
<!-- <div class="view view-bottom"></div>-->
</div>
<div class="screen-portrait">
<div class="view">
<div class="row">
</div>
<div class="rotate">
<span class="rotate">rotate device</span>
</div>
<div class="row">
<div class="column" id="titleContainer">
<div>
<img src="img/highball_76_transparent.png" />
</div>
<span class="label title" id="title">highball</span>
<div class="gray" id="subtitle">
<span>9 ball scorekeeper</span>
</div>
</div>
</div>
<div class="instructions">
<span>Tap a ball to activate it and mark a point</span>
<br>
<br>
<span>Touch and hold to mark a ball as dead</span>
</div>
<div class="row">
<div class="column">
<a id="donateLink" href="https://venmo.com/?txn=pay&audience=private&recipients=highball" target="_blank">Donate!</a>
<div class="title-sm">
created by <a href="//github.com/wharpa" target="_blank">wharpa</a> and <a href="//github.com/escodel" target="_blank">escodel</a>
</div>
</div>
</div>
</div>
</div>
<script src="https://hammerjs.github.io/dist/hammer.min.js"></script>
<script src="https://hammerjs.github.io/dist/hammer-time.min.js"></script>
<script src="bundle.js?V=1.1.3"></script>
<script>
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m)
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-99021754-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>