generated from Code-Institute-Org/gitpod-full-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
79 lines (79 loc) · 3.23 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
<!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="Rock, paper, scissors, lizard, spock game">
<meta name="keywords" content="Rock, paper, scissors, lizard, spock, game, fun, big bang theory">
<link rel="shortcut icon" type="image/png" href="spock.png">
<link href="assets/css/style.css" rel="stylesheet">
<title>Rock Paper Spock</title>
</head>
<body>
<!--header-->
<a href="index.html" id="logo"><h1>
<i class="fa-regular fa-hand-back-fist"></i><i class="fa-solid fa-toilet-paper"></i><i class="fa-regular fa-hand-spock"></i> Rock Paper Spock!
</h1></a>
<a href="about.html" class="button" id="about-btn">Sign Up</a>
<button class="button button-open">How to play</button>
<!--rules pop up modal code inspired by free code camp-->
<section class="modal hidden">
<div class="flex">
<button id="button1" class="button-close">X</button>
</div>
<div id="rules">
<h2>How to play</h2>
<br>
<h2>This is a game similar to Rock, Paper, Scissors but with a lizard and star trek's spock added in..</h2>
<br>
<p>These are the rules:</p>
<p>Scissors cuts Paper</p>
<p>Paper covers Rock</p>
<p>Rock crushes Lizard</p>
<p>Lizard poisons Spock</p>
<p>Spock smashes Scissors</p>
<p>Scissors decapitates Lizard</p>
<p>Lizard eats Paper</p>
<p>Paper disproves Spock</p>
<p>Spock vaporizes Rock</p>
<p>Rock crushes Scissors</p>
<br>
<h2>Click the icon to choose your variable, the computer will then pick it's own variable and the winner will be revealed</h2>
<h2>The first to 5 wins is the victor!</h2>
</div>
</section>
<!--Game Area-->
<div class="game-area">
<div class="controls-area">
<!--Game Control buttons-->
<button class="btn" id="rock">Rock</button>
<button class="btn" id="paper">Paper</button>
<button class="btn" id="scissors">Scissors</button>
<button class="btn" id="lizard">Lizard</button>
<button class="btn" id="spock">Spock</button>
</div>
<!--Player and computer choice is outputted here-->
<div id="results">
<h3 class="choice-results" id="player-choice">You chose:</h3>
<br>
<h3 class="choice-results" id="computer-choice">Computer chose:</h3>
<br>
<h3 class="choice-results" id="result-text">Result: </h3>
</div>
</div>
<div>
<span class="players" id="player">Player</span>
<span class="players">|</span>
<span class="players" id="computer">Computer</span>
</div>
<!--Incremented scores outputted here-->
<div class="score-area">
<span>:</span>
</div>
<footer>Mc Daid Games <i class="fa-solid fa-hand-fist"></i> inc. 2022</footer>
<script src="assets/js/script.js"></script>
<script src="https://kit.fontawesome.com/602c42d7e5.js" crossorigin="anonymous"></script>
<noscript>Sorry your browser does not support javascript!</noscript>
</body>
</html>