-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
211 lines (205 loc) · 10.6 KB
/
index.html
File metadata and controls
211 lines (205 loc) · 10.6 KB
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
<!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.0, user-scalable=no">
<link rel="icon"
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🎯</text></svg>">
<title>Score Keeper</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.2/css/bulma.min.css">
<link rel="stylesheet" href="app.css">
</head>
<body>
<div class="modal">
<div class="modal-background"></div>
<div class="modal-content">
<!-- Any other Bulma elements you want -->
<form action="/page" class="form box">
<h1 class="is-size-5-touch is-size-4-tablet has-text-black has-text-centered">Enter Player Names</h1>
<br>
<div class="columns">
<div class="column">
<div class="field">
<label for="player1Name" class="label">Player 1</label>
<div class="control">
<input type="text" id="player1Name" class="input" placeholder="Name">
</div>
</div>
</div>
<div class="column">
<label for="player2Name" class="label">Player 2</label>
<div class="control">
<input type="text" id="player2Name" class="input" placeholder="Name">
</div>
</div>
</div>
<div class="columns">
<div class="column">
<div class="field">
<div class="control">
<button type="submit" class="button is-primary is-centered is-fullwidth"
id="submitNames">Enter</button>
</div>
</div>
</div>
</div>
</form>
</div>
<button class="modal-close is-large" aria-label="close"></button>
</div>
<section class="section">
<div class="container">
<div class="columns">
<div class="column is-half is-offset-one-quarter">
<div class="card">
<header class="card-header">
<p class="card-header-title is-size-4">
Squash Score Tracker
</p>
<div class="card-header-icon">
<span class="icon is-large">
<img src="icons/racket-vector.jpeg" alt="">
</span>
</div>
</header>
<div class="card-content">
<div class="content">
<div class="columns is-12" id="scoreDisplay">
<div class="column is-7 is-three-fifths-desktop">
<h1 class="title is-1" id="scoreCount"><span id="p1Display">0</span> to <span
id="p2Display">0</span>
</h1>
<p class="subtitle">Use the buttons below to keep score</p>
</div>
<div class="column is-1 is-hidden-tablet is-hidden-touch"></div>
<div class="column is-3" id="changePlayersCol">
<div class="container is-fullwidth-tablet is-flex" id="changePlayersContainer">
<button id="changePlayers"
class="button is-rounded is-small-touch is-fullwidth-tablet">
change players
</button>
</div>
</div>
</div>
<label class="label is-inline" for="toWin">Score to win</label>
<div class="select is-rounded is-small">
<select name="set-score" id="toWin">
<option value="5">5</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="21">21</option>
</select>
</div>
</div>
<div class="content is-fullwidth">
<footer class="card-footer">
<button class="button card-footer-item is-success is-one-third" id="p1Button">+1
Player 1</button>
<button class="button card-footer-item is-success is-one-third" id="p2Button">+1
Player 2</button>
<button class="button card-footer-item is-danger is-one-third" id="reset">Reset
Score</button>
</footer>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- UNDER CONSTRUCTION -->
<div class="container">
<div class="columns">
<div class="column is-half is-offset-one-quarter">
<div class="box is-half is-offset-one-quarter">
<div class="content mb-0">
<H1 class="is-size-5">Player Statistics</H1>
<hr class="mt-1 mb-2">
<div class="content">
<div class="columns is-2">
<div class="column">
<table class="has-text-centered is-narrow is-bordered stats">
<thead>
<tr>
<td colspan="2"><h2 id="p1NameStats" class="has-text-centered is-size-6">Player 1</h2></td>
</tr>
</thead>
<tbody>
<tr>
<td><b>Won</b></td>
<td id="p1Won">0</td>
</tr>
<tr>
<td><b>Lost</b></td>
<td id="p1Lost">0</td>
</tr>
</tbody>
</table>
</div>
<div class="column">
<table class="has-text-centered is-narrow is-bordered stats">
<thead>
<tr>
<td colspan="2"><h2 id="p2NameStats" class="has-text-centered is-size-6">Player 2</h2></td>
</tr>
</thead>
<tbody>
<tr>
<td><b>Won</b></td>
<td id="p2Won">0</td>
</tr>
<tr>
<td><b>Lost</b></td>
<td id="p2Lost">0</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="container">
<div class="columns">
<div class="column is-half is-offset-one-quarter">
<div class="box is-half is-offset-one-quarter">
<div class="content mb-0">
<H1 class="is-size-5">Game History</H1>
<hr class="mt-1 mb-2">
<div class="content listBox">
<p id="emptyListText" class="">Play matches to view history</p>
<ol class="ml-4" id="gameHistory">
<!-- <li>Match Records</li> -->
</ol>
</div>
<hr class="mb-0">
</div>
<div class="is-flex is-fluid py-0 is-justify-content-space-between">
<button id="clearHistory"
class="button is-rounded is-danger is-outlined mt-2">clear</button>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="section footer" style="padding: 35px 24px 20px">
<div class="content has-text-centered has-text-white">
<p>
Squash Score Tracker by <b>Pritish Dugar</b>. Mini-project inspired by Colt Steele's
<b>Web Developer Bootcamp 2021</b>.
</p>
<p>
<a href="https://bulma.io">
<img src="https://bulma.io/images/made-with-bulma.png" alt="Made with Bulma" width="128"
height="24">
</a>
</p>
</div>
</section>
<script src="app.js"></script>
</body>
</html>