-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
40 lines (40 loc) · 1.23 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
<!DOCTYPE html>
<html>
<head>
<title>Rock Paper Scissors with CSS</title>
<link rel="stylesheet" href="styles/rock-paper-scissors.css" />
</head>
<body>
<div class="container">
<p class="title">Rock Paper Scissors Game</p>
<p class="score">Choose your move:</p>
<div class="buttons">
<button onclick="playGame('rock');" class="move-button">
<img src="images/rock-emoji.png" class="move-icon" />
</button>
<button onclick="playGame('paper');" class="move-button">
<img src="images/paper-emoji.png" class="move-icon" />
</button>
<button onclick="playGame('scissors');" class="move-button">
<img src="images/scissors-emoji.png" class="move-icon" />
</button>
</div>
<p class="js-result result"></p>
<p class="js-moves"></p>
<p class="js-score score"></p>
<button
onclick="
score.wins = 0;
score.losses = 0;
score.ties = 0;
localStorage.removeItem('score');
updateScoreElement();
"
class="reset-score-button"
>
Reset Score
</button>
</div>
<script src="scripts/rock-paper-scissors.js"></script>
</body>
</html>