-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
86 lines (71 loc) · 2.38 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
<!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">
<title>Rock, Paper, Scissors</title>
<link rel="stylesheet" href="reset.css">
<link rel="stylesheet" href="style.css">
<script src="app.js" defer></script>
</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 choice-click" data-choice="paper">
<span class="wrapper">
<img src="./images/icon-paper.svg" alt="paper-icon"/>
</span>
</button>
<button class="btn-circle btn-scissors choice-click" data-choice="scissors">
<span class="wrapper">
<img src="./images/icon-scissors.svg" alt="scissors-icon"/>
</span>
</button>
<button class="btn-circle btn-rock choice-click" data-choice="rock">
<span class="wrapper">
<img src="./images/icon-rock.svg" alt="rock-icon"/>
</span>
</button>
</main>
<button class="btn-rules" id="rules">Rules</button>
</div>
<div class="rules-container" id="modal">
<img src='./images/image-rules.svg' alt="rules" />
<button id="close-modal"><img src="./images/icon-close.svg" alt="close button"/></button>
</div>
<div class="selection" id="selection">
<div class="user-selection">
<h2>You picked</h2>
<button class="btn-circle btn-paper" id="user_select">
<span class="wrapper">
<img src="./images/icon-paper.svg" alt="paper-icon"/>
</span>
</button>
</div>
<div class="result-section">
<h1>YOU <span id="result">win</span></h1>
<button id="reset">PLay again</button>
</div>
<div class="computer-selection">
<h2>The House picked</h2>
<button class="btn-circle btn-paper" id="computer_select">
<span class="wrapper">
<img src="./images/icon-paper.svg" alt="paper-icon"/>
</span>
</button>
</div>
</div>
</body>
</html>