-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
409 lines (409 loc) · 10.3 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
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
<!doctype html>
<html class="light" 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" />
<title>rock,paper,scissors</title>
<link
rel="apple-touch-icon"
sizes="180x180"
href="img/favicon/apple-touch-icon.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="img/favicon/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="img/favicon/favicon-16x16.png"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.2/css/all.min.css"
integrity="sha512-1sCRPdkRXhBV2PBLUdRb4tMg1w2YPf37qatUFeS7zlBy7jJI8Lf4VHwWfZZfpXtYSLy85pkm9GaYVYMfw5BC1A=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="./src/sass/style.scss" />
</head>
<body
class="position-relative vw-100 vh-100 d-flex justify-content-center align-items-center overflow-hidden"
></body>
<div class="container-fluid">
<i
class="fa-solid fa-scissors position-absolute fs-1"
id="moving_scissors"
></i>
<div class="container" id="settings_page">
<nav
class="col-4 rounded d-flex flex-column position-absolute p-3 top-0 animate__animated"
id="settings"
>
<button
class="position-absolute top-0 end-0 m-2 bg-transparent border-0 fs-4"
id="setting__close_btn"
type="button"
aria-label="Close"
>
<i class="fa-solid fa-xmark"></i>
</button>
<h3
class="text-center p-3 user-select-none"
id="settings__title"
>
settings
</h3>
<form class="d-flex flex-column" action="">
<h4 class="text-center user-select-none">Avatar</h4>
<section
class="d-flex justify-content-center align-items-center"
id="settings__user__gender"
>
<label for="female_avatar_logo">
<img
class="img-fluid"
src="img/female_avatar.png"
alt=""
/></label>
<input
id="female_avatar_logo"
type="radio"
name="controls"
value="female"
/>
<label for="male_avatar_logo">
<img
class="img-fluid"
src="img/male_avatar.png"
alt=""
/></label>
<input
id="male_avatar_logo"
type="radio"
name="controls"
value="male"
/>
</section>
<h4 class="text-center user-select-none">info</h4>
<section
class="d-flex justify-content-center align-items-center flex-column"
id="settings__user_info"
>
<label class="fs-5 user-select-none" for=""
>player name
</label>
<input
class="w-75"
type="text"
name=""
placeholder="enter a cool name!"
/>
<label class="fs-5 user-select-none" for=""
>player name
</label>
<input
class="w-75"
type="password"
name=""
placeholder="enter a strong password!"
/>
<button type="submit">save</button>
</section>
<section id="settings__user__info"></section>
</form>
</nav>
</div>
<div class="container animate__animated" id="intro_page">
<div class="row">
<div class="setting__btn_wrapper">
<button
class="fs-2 bg-transparent border-0"
id="game__setting_button"
>
<i class="fa-solid fa-gear"></i>
</button>
</div>
</div>
<div class="row">
<h1
class="text-center user-select-none pt-5"
id="main__heading"
>
Rock Paper Scissors
</h1>
</div>
<div class="row text-center">
<div class="d-flex justify-content-center col-12 mt-5">
<button
class="btn btn-secondary w-25 fs-3 rounded-pill"
id="play__button"
>
play !
</button>
<button
class="ms-4 bg-transparent border-0"
id="help__btn"
data-bs-toggle="tooltip"
data-bs-title="how to play"
data-bs-custom-class="custom-tooltip"
>
<i class="fa-solid fa-circle-info"></i>
</button>
</div>
</div>
<div class="row text-center mt-5">
<footer class="user-select-none" id="copyright">
Made with <span class="text-warning">❤ </span>by
<a
class="text-secondary text-decoration-none"
href="https://github.com/Silent-Watcher"
target="_blank"
>silentWatcher</a
>
<time>2022</time> ©
</footer>
</div>
</div>
<div class="container mt-5" id="game_page">
<div
class="position-absolute w-100 h-100 top-0 start-0 animate__animated mt-5"
id="game_wrapper"
hidden
>
<div class="row">
<section class="col-12 mt-5 text-center" id="game__widgets">
<button
class="bg-transparent border-0 fs-2 me-1"
disabled
id="refresh_game"
>
<i class="fa-solid fa-arrow-rotate-left"></i>
</button>
<button
class="border-0 bg-transparent fs-2 ms-1"
disabled
id="home_widget"
>
<i class="fa-solid fa-house"></i>
</button>
</section>
</div>
<div class="row">
<section
class="col-12 d-flex justify-content-around align-items-center"
id="players"
>
<section
class="d-flex justify-content-around align-items-center flex-column"
id="main__player"
>
<figure
class="player__avatar"
id="main__player__avatar"
>
<img
class="img-fluid"
src="img/male_avatar.png"
alt=""
/>
</figure>
<h2 class="user-select-none" id="player__name">
silentWatcher
</h2>
</section>
<section id="scoreboard">
<h3 class="text-center fs-1 user-select-none">
ScoreBoard
</h3>
<table>
<tbody>
<tr></tr>
<td
class="text-center fs-1"
data-score="0"
id="humanScore"
>
0
</td>
<td
class="text-center fs-1"
data-score="0"
id="computerScore"
>
0
</td>
</tbody>
<tfoot>
<tr></tr>
<th
class="text-center fs-5 user-select-none"
>
You
</th>
<th
class="text-center fs-5 user-select-none"
>
Bot
</th>
</tfoot>
</table>
</section>
<section
class="d-flex justify-content-around align-items-center flex-column"
id="computer__player"
>
<figure
class="player__avatar"
id="computer__player__avatar"
>
<img
class="img-fluid"
src="img/computer_avatar.png"
alt=""
/>
</figure>
<h2 class="user-select-none" id="computer__name">
Robot
</h2>
</section>
</section>
</div>
<div class="row">
<section
class="col-12 mt-5 d-flex justify-content-center align-items-center"
id="user_choice_options"
>
<ul>
<li>
<button
class="choice__icon bg-transparent fs-1"
data-value="rock"
id="rock__icon"
>
<i class="fa-solid fa-hand-back-fist"></i>
</button>
</li>
<li>
<button
class="choice__icon bg-transparent fs-1"
data-value="paper"
id="paper__icon"
>
<i class="fa-solid fa-hand"></i>
</button>
</li>
<li>
<button
class="choice__icon bg-transparent fs-1"
data-value="scissors"
id="scissors__icon"
>
<i class="fa-solid fa-hand-scissors"></i>
</button>
</li>
</ul>
<section class="text-center" id="hands">
<div class="hand" id="user-hand">
<div class="fist"></div>
<div class="finger finger-1"></div>
<div class="finger finger-2"></div>
<div class="finger finger-3"></div>
<div class="finger finger-4"></div>
<div class="thumb"></div>
<div class="arm"></div>
</div>
<div class="hand" id="computer-hand">
<div class="fist"></div>
<div class="finger finger-1"></div>
<div class="finger finger-2"></div>
<div class="finger finger-3"></div>
<div class="finger finger-4"></div>
<div class="thumb"></div>
<div class="arm"></div>
</div>
</section>
</section>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="animate__animated" id="game_sets_page" hidden>
<section
class="col-6 p-3 rounded d-flex flex-column fs-4 animate__animated"
id="game_sets_window"
>
<div id="game_sets_header">
<button
class="goToIntroBtn border-0 bg-transparent"
>
<i class="fa-solid fa-house"></i>
</button>
<p
class="text-center user-select-none"
id="game_sets_title"
>
How many sets do you want to play ? 🤔
</p>
</div>
<ul
class="d-flex justify-content-around align-items-center"
id="game_sets_list"
>
<li>
<button class="gameSetsButton">3</button>
</li>
<li>
<button class="gameSetsButton">5</button>
</li>
<li>
<button class="gameSetsButton">10</button>
</li>
</ul>
</section>
</div>
</div>
</div>
<div class="container">
<div class="row">
<section
class="text-center col-12 position-absolute start-0 mt-3"
id="help"
>
<button
class="btn-close position-absolute top-0 bg-white fs-5"
id="close__help_btn"
type="button"
aria-label="Close"
></button
><img
class="img-fluid rounded"
src="img/game-help.png"
alt="rock-paper-scissors"
/>
</section>
</div>
</div>
</div>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-A3rJD856KowSb7dwlZdYEkO39Gagi7vIsF0jrRAoQmDKKtQBHUuLZ9AsSv4jD4Xa"
crossorigin="anonymous"
></script>
<script type="module" src="src/js/main.js"></script>
</html>