-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
100 lines (87 loc) · 3.65 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
96
97
98
99
100
<!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">
<meta name="author" content="https://github.com/kenua">
<!-- GOOGLE FONTS -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@300;400;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./reset.css">
<link rel="stylesheet" href="./styles.css">
<title>Rock Paper Scissors</title>
<script src="./rock-paper-scissors.js" rel="text/javascritp" defer></script>
<script src="./ui-functionality.js" rel="text/javascritp" defer></script>
</head>
<body>
<header class="header barlow--bold">
<h1 class="header__heading">Rock<br>Paper<br>Scissors</h1>
<div id="scores" class="header__scores">
<div class="scores__item">
<p>
Your Score
<span id="player-score">0</span>
</p>
</div>
<div class="scores__item">
<p>
CPU Score
<span id="cpu-score">0</span>
</p>
</div>
</div>
</header>
<!-- OPTIONS -->
<section id="options" class="options">
<h2 class="barlow--bold sub-heading">Pick an option</h2>
<div class="options__button-container">
<a href="#" id="rock-button" class="option__item barlow--bold">
<div class="option__img-container">
<img src="./images/rock-icon.png" alt="Fist" class="option__img">
</div>
<span>Rock</span>
</a>
<a href="#" id="paper-button" class="option__item barlow--bold">
<div class="option__img-container">
<img src="./images/paper-icon.png" alt="Open hand" class="option__img">
</div>
<span>Paper</span>
</a>
<a href="#" id="scissors-button" class="option__item barlow--bold">
<div class="option__img-container">
<img src="./images/scissors-icon.png" alt="Hand and two fingers" class="option__img">
</div>
<span>Scissors</span>
</a>
</div>
</section>
<!-- MATCH RESULT -->
<section id="match-result" class="match-result">
<h2 id="animated-text" class="barlow--bold sub-heading"><span>Rock,</span> <span>Paper,</span> <span>Scissors!</span></h2>
<div id="match-weapons" class="match__weapons">
<div class="match__item barlow--bold">
<div class="match__img-container">
<img src="./images/paper-icon.png" alt="" id="player-picked__img" class="match__img">
</div>
<span>You picked</span>
</div>
<img src="./images/x.svg" alt="" width="40" class="match__icon">
<div id="scissors-button" class="match__item barlow--bold">
<div class="match__img-container">
<img src="./images/scissors-icon.png" alt="" id="cpu-picked__img" class="match__img">
</div>
<span>CPU Picked</span>
</div>
</div>
<div id="play-again" class="play-again">
<h3 id="winner-text" class="barlow--bold">YOU WIN</h3>
<button id="play-again-button" class="button barlow--light">Play Again</button>
</div>
</section>
<div class="button-reset-container">
<button id="reset-button" class="button button--reset barlow--light">Reset Game</button>
</div>
</body>
</html>