-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
56 lines (55 loc) · 1.86 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
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="styles.css" />
<meta charset="UTF-8" />
<meta="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Barlow:wght@600&display=swap" rel="stylesheet">
<title>Rock Paper Scissors</title>
</head>
<body>
<div class="wrapper">
<div class="scoreboard">
<div class="title">
<img src='title.png' />
</div>
<div class="score">
<p>SCORE</p>
<h1> 0 </h1>
</div>
</div>
<div class="hands">
<div class="hand paper">
<img src="Paper.png" onclick="pickUserHand('paper')"/>
</div>
<div class="hand scissors">
<img src="Scissors.png" onclick="pickUserHand('scissors')"/>
</div>
<div class="hand rock">
<img src="Rock.png" onclick="pickUserHand('rock')"/>
</div>
</div>
<div class="contest">
<div class="userhand">
<h1>YOU PICKED</h1>
<div class="handImageContainer">
<img id="userPickImage" src="Paper.png">
</div>
</div>
<div class="referee">
<div class="decision"><h1> YOU WIN! </h1></div>
<div class="newGame" onclick="restartGame()">PLAY AGAIN</div>
</div>
<div class="computerhand">
<h1>THE HOUSE PICKED</h1>
<div class="handImageContainer">
<img id="computerPickImage" src='Paper.png' />
</div>
</div>
</div>
</div>
<script src="index.js"></script>
</body>
</html>