-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
51 lines (50 loc) ยท 1.81 KB
/
index.html
File metadata and controls
51 lines (50 loc) ยท 1.81 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Rock Paper Scissors Game</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div id="gameContainer" role="main" aria-label="Rock Paper Scissors game">
<header>
<h1>Rock Paper Scissors</h1>
<p>Choose your weapon!</p>
</header>
<section id="choices" role="group" aria-label="Choose Rock, Paper or Scissors">
<button class="choice-btn" id="rock" aria-pressed="false" aria-label="Choose Rock" title="Rock">
<span class="emoji" aria-hidden="true">โ</span>
</button>
<button class="choice-btn" id="paper" aria-pressed="false" aria-label="Choose Paper" title="Paper">
<span class="emoji" aria-hidden="true">โ</span>
</button>
<button class="choice-btn" id="scissors" aria-pressed="false" aria-label="Choose Scissors" title="Scissors">
<span class="emoji" aria-hidden="true">โ๏ธ</span>
</button>
</section>
<section id="resultDisplay" aria-live="polite" aria-atomic="true">
<p>Your Choice: <span id="userChoice">?</span></p>
<p>Computer Choice: <span id="computerChoice">?</span></p>
<p id="resultMessage"></p>
</section>
<section id="scoreboard" aria-label="Scoreboard">
<div>
<div>Player</div>
<span class="number" id="playerScore">0</span>
</div>
<div>
<div>Draws</div>
<span class="number" id="drawScore">0</span>
</div>
<div>
<div>Computer</div>
<span class="number" id="computerScore">0</span>
</div>
</section>
<footer id="footer">Made with โค๏ธ - Play fair!</footer>
</div>
<script src="script.js"></script>
<script src="app.py"></script>
</body>
</html>