-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
53 lines (51 loc) · 1.78 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
51
52
53
<!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">
<title>Rock Paper Scissors</title>
<link rel="stylesheet" href="style.css">
<script src="script.js" defer></script>
</head>
<body>
<h1>ROCK PAPER SCISSORS</h1>
<div class="score-section">
<p>First to: 5</p>
<div id="scores">
<p>Player score: <span class="player-score">0</span></p>
<p>Computer score: <span class="computer-score">0</span></p>
</div>
</div>
<div class="play-section">
<div class="player-section">
<p>Choose</p>
<div class="input-section">
<div>
<input draggable="false" class="btn" id="rock" type="image" src="images/RPS-rock.png" alt="rock">
<label for="rock">Rock</label>
</div>
<div>
<input draggable="false" class="btn" id="paper" type="image" src="images/RPS-paper.png" alt="paper">
<label for="paper">Paper</label>
</div>
<div>
<input draggable="false" class="btn" id="scissors" type="image" src="images/RPS-scissors.png" alt="scissors">
<label for="scissors">Scissors</label>
</div>
</div>
</div>
<div class="computer-section">
<p>Computer</p>
<div class="computer-choice">
<div>?</div>
</div>
<img draggable="false" class="btn" id="computer-img">
</div>
</div>
<dialog>
<h2>YOU LOSE!</h2>
<button>Play again?</button>
</dialog>
</body>
</html>