-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
47 lines (47 loc) · 1.66 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Rock, papers or scissors?</title>
<link rel="stylesheet" href="style.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Bellota&display=swap" rel="stylesheet">
<link rel="stylesheet" href="//use.fontawesome.com/releases/v5.0.7/css/all.css">
<script async src="main.js"></script>
</head>
<body>
<header>
<h1>Rock, paper or scissors?</h1>
<button id="play">Play <i class="fa fa-play"></i></button>
</header>
<div class="options">
<button class="button" id="rock">Rock <i class="far fa-hand-rock"></i></button>
<button class="button" id="paper">Paper <i class="far fa-hand-paper"></i></button>
<button class="button" id="scissors">Scissors <i class="far fa-hand-scissors"></i></button>
</div>
<div id="body">
<div class="choices">
<div>
<p><b> Player Score</b></p>
<p id="player-score">0</p>
<p id="player-choice"><b>Your choice</b></p>
<p id= "player">-</p>
</div>
<div>
<p><b>Computer Score</b></p>
<p id="computer-score">0</p>
<p id="computer-choice"><b>Computer choice</b></p>
<p id="computer">-</p>
</div>
</div>
<div class="round-result">
<p id="round-result"></p>
</div>
</div>
<div class="winner-section">
<p id="final-winner"></p>
<button id="restart">Play again <i class="fas fa-redo"></i></button>
</div>
</body>
</html>