-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
67 lines (62 loc) · 2.03 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
62
63
64
65
66
67
<!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/style.css">
<script src="./js/script.js"></script>
</head>
<body>
<div class="home">
<!-- scoreboard div -->
<div class="scoreboard">
<div class="title">
<h1>Rock</h1>
<h1>Paper</h1>
<h1>Scissors</h1>
</div>
<div class="score">
<p>Score</p>
<h2>0</h2>
</div>
</div>
<!-- hands div -->
<div class="hands">
<div class="paper hand">
<img src="../images/Paper.png" onclick="pick_user_hand('paper')" alt="">
</div>
<div class="scissors hand">
<img src="../images/Scissors.png" onclick="pick_user_hand('scissors')" alt="">
</div>
<div class="rock hand">
<img src="../images/Rock.png" onclick="pick_user_hand('rock')" alt="">
</div>
</div>
<!-- contest div -->
<div class="contest">
<div class="user_hand">
<h1>YOU PICKED</h1>
<div class="hand_pic">
<img id="user_pick_img" src="./images/Paper.png" alt="">
</div>
</div>
<div class="referee">
<div class="decision">
<h1>YOU WIN</h1>
</div>
<div class="play_again" onclick="play_again()">
PLAY AGAIN
</div>
</div>
<div class="computer_hand">
<h1>COMPUTER PICKED</h1>
<div class="hand_pic">
<img id="computer_pick_img" src="./images/Scissors.png" alt="">
</div>
</div>
</div>
</div>
</body>
</html>