-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
63 lines (62 loc) · 1.61 KB
/
index.html
File metadata and controls
63 lines (62 loc) · 1.61 KB
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
54
55
56
57
58
59
60
61
62
63
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Rock,Paper and Scissor</title>
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="media.css">
</head>
<body>
<section class="header">
<h2>Rock Paper Scissor</h2>
</section>
<div class="game-box">
<div class="flex-item">
<img
src="./assets/paper.png"
alt="player-choice"
id="player"
class="img hidden"
/>
<p>YOU: <span id="player-score"></span></p>
</div>
<div class="hr"></div>
<div class="flex-item">
<img
src="./assets/rock.png"
alt="computer-choice"
id="computer"
class="img hidden"
/>
<p>COM: <span id="computer-score"></span></p>
</div>
</div>
<div class="decision-box">
<div>
<p class="score hidden"></p>
</div>
<div class="choices">
<img
id="rock"
class="choices-img"
src="./assets/rock.png"
alt="rock-img" onclick="playerChoice('rock')"
/>
<img
id="paper"
class="choices-img"
src="./assets/paper.png"
alt="paper-img" onclick="playerChoice('paper')"
/>
<img
id="scissor"
class="choices-img"
src="./assets/scissors.png"
alt="scissor-img" onclick="playerChoice('scissors')"
/>
</div>
</div>
<script src="script.js"></script>
</body>
</html>