-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
61 lines (56 loc) · 1.67 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
54
55
56
57
58
59
60
61
<!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="icon" type="image/png" sizes="32x32" href="./images/favicon-32x32.png">
<link rel="stylesheet" href="style.css">
<script src="index.js"></script>
<title>Frontend Mentor | Rock, Paper, Scissors</title>
</head>
<body>
<div class="wrapper">
<div class="scoreboard">
<div class="title">
<h1>ROCK <br> PAPER <br> SCISSORS</h1>
</div>
<div class="score">
<p>SCORE</p>
<h1>0</h1>
</div>
</div>
<div class="hands">
<div class="hand paper">
<img src="assets/Paper.png" alt="paper" onclick="pickUserHand('paper')">
</div>
<div class="scissors hand">
<img src="assets/Scissors.png" alt="scissors" onclick="pickUserHand('scissors')">
</div>
<div class="rock hand">
<img src="assets/Rock.png" alt="rock" onclick="pickUserHand('rock')">
</div>
</div>
<div class="contest">
<div class="userhand">
<h1>YOU PICKED</h1>
<div class="handImageContainer">
<img id="userpick" src="assets/Rock.png" alt="">
</div>
</div>
<div class="referee">
<div class="decision">
<h1>YOU WIN</h1>
</div>
<div class="newgame" onclick="restartGame()">PLAY AGAIN</div>
</div>
<div class="househand">
<h1>THE HOUSE PICKED</h1>
<div class="handImageContainer">
<img id="housepick" src="assets/Scissors.png" alt="">
</div>
</div>
</div>
</div>
</body>
</html>