-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
95 lines (91 loc) · 2.7 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!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 -->
<link
rel="icon"
type="image/png"
sizes="32x32"
href="./images/favicon-32x32.png"
/>
<link rel="stylesheet" href="./styles/main.css" />
<title>Rock, Paper, Scissors | Game</title>
</head>
<body>
<div class="container">
<header>
<h1>
<span>Rock</span>
<span>Paper</span>
<span>Scissors</span>
</h1>
<div class="score-container">
<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>
<!-- button for rules -->
<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>
<button class="btn-reset-score" id="reset-score">Reset Score</button>
</div>
<!-- After selecting some moves -->
<div class="selection" id="selection">
<div>
<h2>You picked</h2>
<button
class="btn-circle btn-paper"
data-choice="paper"
id="user_select"
>
<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="win">Win</span></p>
<button class="btn" id="reset">
Play Again
</button>
</div>
<div>
<h2>The House picked</h2>
<button
class="btn-circle btn-rock"
data-choice="rock"
id="computer_select"
>
<span class="wrapper">
<img src="./images/icon-rock.svg" alt="paper icon" />
</span>
</button>
</div>
</div>
<script src="./scripts/main.js"></script>
</body>
</html>