-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
93 lines (93 loc) · 2.97 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Score Keeper</title>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bulma@1.0.0/css/bulma.min.css"
/>
<style>
#canvas {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 9999;
pointer-events: none;
}
</style>
</head>
<body>
<div class="container">
<div class="columns">
<div class="column is-half is-offset-one-quarter">
<div class="card mt-6">
<div class="card-image">
<figure class="image is-2by1">
<img
src="https://images.unsplash.com/photo-1614036417651-efe5912149d8?q=80&w=1819&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"
/>
</figure>
</div>
<header class="card-header">
<p class="card-header-title title is-3">Score Keeper</p>
</header>
<div class="card-content">
<h1 class="title is-4">
<span id="p1Display">0</span> to
<span id="p2Display">0</span>
</h1>
<p class="pb-3">Use the buttons below to keep score</p>
<div for="playTo" class="label is-large is-inline pt-3">
Winning Score limit
</div>
<div class="select is-rounded pl-3">
<select name="" id="playTo">
<option value="3">3</option>
<option value="4">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>
<option value="10">10</option>
<option value="11">11</option>
</select>
</div>
</div>
<footer class="card-footer">
<button
id="p1Button"
class="button is-warning is-dark card-footer-item"
>
+1 Player One
</button>
<button
id="p2Button"
class="button is-info is-dark card-footer-item"
>
+1 Player Two
</button>
<button
id="resetButton"
class="button is-danger is-dark card-footer-item"
>
Reset
</button>
</footer>
</div>
</div>
</div>
</div>
<canvas id="canvas"></canvas>
<div
id="winnerMessage"
class="column is-half is-offset-one-quarter mt-6"
></div>
<script src="fireworks.js"></script>
<script src="app.js"></script>
</body>
</html>