-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
35 lines (35 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Rock-Paper-Scissors</title>
<meta charset="utf-8">
<script src="script.js" defer></script>
<link rel="stylesheet" href="style.css">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<h1>Rock-Paper-Scissors</h1>
<h2>Man vs Machine</h2>
<h3>First to 5 games win</h3>
<h4>Select your choice</h4>
<div class="choice">
<button id="Rock" style="width:100px;height:20px">Rock</button>
<button id="Paper" style="width:100px;height:20px">Paper</button>
<button id="Scissors" style="width:100px;height:20px">Scissor</button>
</div>
<div class="labels">
<span id="playerlabel">Player Score</span>
<span id="computerlabel">Computer Score</span>
</div>
<div class="scores">
<div class="playerscore"></div>
<div class="computerscore"></div>
</div>
<div class="final">
<div class="flabel">Results<br></div>
<div class="winner"></div>
</div>
<button onClick="window.location.reload();"style="margin:30px;width:100px;height:20px">Play again</button>
</body>
</html>