-
Notifications
You must be signed in to change notification settings - Fork 0
/
rock-paper-scissors.html
37 lines (37 loc) · 1.33 KB
/
rock-paper-scissors.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="rock-paper-scissors.css" />
</head>
<body>
<p>Rock Paper Scissors</p>
<div>
<button class="js-button" onclick="playGame('Rock')">
<img src="rock-emoji.png" class="img-png" />
</button>
<button class="js-button" onclick="playGame('Paper')">
<img src="paper-emoji.png" class="img-png" />
</button>
<button class="js-button" onclick="playGame('Scissor')">
<img src="scissor-emoji.png" class="img-png" />
</button>
</div>
<p id="js-result"></p>
<p id="js-move"></p>
<p class="js-score"></p>
<footer>
<button
class="js-button-bottom js-rest-button"
>
Reset score
</button>
<button class="js-button-bottom js-auto-button">Auto play</button>
</footer>
<div class="div2"></div>
<script src="rock-paper-scissors.js"></script>
</body>
</html>