-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathindex.html
80 lines (70 loc) · 2.31 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
68
69
70
71
72
73
74
75
76
77
78
79
80
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- displays site properly based on user's device -->
<title> Rock, Paper, Scissors</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="container">
<header>
<h1>
<span>Rock</span>
<span>Paper</span>
<span>Scissors</span>
</h1>
<div class="score-box">
<h4>Score</h4>
<p id ="score">0</p>
</div>
</header>
<main id="main">
<button class="btn-circle btn-paper pick" data-choice="paper">
<span class="wrapper"
><img src="./images/icon-paper.svg" alt="Paper icon"
/></span>
</button>
<button class="btn-circle btn-scissors pick" data-choice="scissors">
<span class="wrapper"
><img src="./images/icon-scissors.svg" alt="Scissors icon"
/></span>
</button>
<button class="btn-circle btn-rock pick" data-choice="rock">
<span class="wrapper"
><img src="./images/icon-rock.svg" alt="Rock icon"
/></span>
</button>
</main>
<div class="rules-modal" id="modal">
<img src="./images/image-rules.svg" alt="rules"/>
<button id="close"><img src="./images/icon-close.svg" alt="close"></button>
</div>
<button class="btn-rules" id="open">Rules</button>
</div>
<div class="selection" id="selection">
<div>
<h2>You picked</h2>
<button class="btn-circle btn-paper" id="user_select" data-choice="paper">
<span class="wrapper">
<img src="./images/icon-paper.svg" alt="Paper icon"/>
</span>
</button>
</div>
<div class="go-down">
<p class="big-text">You <span id="winner">win</span></p>
<button class="btn" id="reset">Play Again</button>
</div>
<div>
<h2>The house picked</h2>
<button class="btn-circle btn-rock" id="computer_select" data-choice="rock">
<span class="wrapper">
<img src="./images/icon-rock.svg" alt="Rock icon"/>
</span>
</button>
</div>
</div>
<script src="script.js"></script>
</body>
</html>