generated from Code-Institute-Org/gitpod-full-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrps.html
49 lines (48 loc) · 2.71 KB
/
rps.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
<!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="description" content="A website where you can play a few simple games to pass the time">
<meta name="keywords" content="Simple Game, Rock Paper Scissors, Quizzit, Quiz, Guillotine, Hangman">
<link rel="stylesheet" href="assets/css/style.css">
<!-- Favicon -->
<link rel="icon" href="assets/images/favicon.ico" type="image/x-icon">
<title>Play A Game</title>
</head>
<body>
<!-- main header, visible on all pages -->
<header>
<div id="game-select-area">
<a href="rps.html"><img src="assets/images/logos/rps_logo.webp" alt="An image of a rock, a paper scroll and a pair of scissors" class="header-link" aria-label="Jump directly to the Rock Paper Scissors game(opens in the same tab)"></a>
<a href="quizzit.html"><img src="assets/images/logos/quizzit_logo.webp" alt="An image of a large letter Q with 'quizzit' written across" class="header-link" aria-label="Jump directly to the Quizzit game(opens in the same tab)"></a>
<a href="guillotine.html"><img src="assets/images/logos/guillotine_logo.webp" alt="An image of a guillotine with the word 'guillotine' written across" class="header-link" aria-label="Jump directly to the Guillotine game(opens in the same tab)"></a>
</div>
</header>
<div class="spacer"></div>
<!-- Main 'game area' containg all game elements -->
<div id="rps-game-area">
<h1 id="rps-heading">Rock Paper<br>Scissors</h1>
<div id="ai-choice" class="choice-display"></div>
<div id="rps-outcome-display">READY</div>
<div id="player-choice" class="choice-display"></div>
<div id="rps-selection-area">
<button class="rps-selection" id="rock-button" data-type="rock">ROCK</button>
<button class="rps-selection" id="paper-button" data-type="paper">PAPER</button>
<button class="rps-selection" id="scissors-button" data-type="scissors">SCISSORS</button>
</div>
<div id="rps-win-start-lose">
<h2 id="rps-losses">LOSE: 0</h2>
<button id="rps-start">START</button>
<h2 id="rps-wins">WIN: 0</h2>
</div>
</div>
<!-- main footer, visible on all pages -->
<footer>
<a href="contact.html"><img src="assets/images/logos/contact_logo.webp" alt="An image of an ink-jar and feather" id="footer-form-link" aria-label="Jump directly to the Contact page(opens in the same tab)"></a>
<!-- RPS game script -->
<script src="assets/js/rps.js"></script>
</footer>
</body>
</html>