-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
50 lines (44 loc) · 1.33 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
<!DOCTYPE html>
<html 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" />
<link rel="stylesheet" href="styles.css" />
<script src="script.js" defer></script>
<title>Rock Paper Scissors Game!</title>
</head>
<body>
<header class="header">
<h1>Let's Play!</h1>
</header>
<main>
<div class="instructions"><p id="styleB">Choose your hand below:</p></div>
<div class="buttons">
<button id="btn1" onclick="getUserChoice('rock'); game();">
Rock!
</button>
<button id="btn2" onclick="getUserChoice('paper'); game();">
Paper!
</button>
<button id="btn3" onclick="getUserChoice('scissors'); game();">
Scissors!
</button>
</div>
<div class="textBox">
<p id="demo"></p>
<p id="demoComp"></p>
<p id="result"></p>
</div>
<div id="restart"></div>
<div class="counter">
<div id="scores">
<p id="userScore">User: 0</p>
<p id="computerScore">Computer: 0</p>
</div>
<div id="roundScores"><p id="final"></p></div>
</div>
</main>
<footer class="footer">2022 © Martyna Mika</footer>
</body>
</html>