-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
32 lines (25 loc) · 943 Bytes
/
index.html
File metadata and controls
32 lines (25 loc) · 943 Bytes
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
<!DOCTYPE html>
<html>
<head>
<title>Rock-Paper-Scissors</title>
<link rel="stylesheet" href="RPS.css">
<script src="RPS.js"></script>
</head>
<body>
<h3>Rock Paper Scissors</h3>
<button onclick="playGame('Rock')" class="move-button"><img src="rock-emoji.png" class="image-element"></button>
<button onclick="playGame('Paper')" class="move-button"><img src="paper-emoji.png" class="image-element"></button>
<button onclick=" playGame('Scissors');" class="move-button"><img src="scissors-emoji.png" class="image-element"></button>
<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="button-reset">Reset Score</button>
</body>
</html>