generated from Code-Institute-Org/gitpod-full-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
108 lines (99 loc) · 4.61 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
101
102
103
104
105
106
107
108
<!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 simple game of Rock, Paper, Scissors!">
<meta name="keywords" content="rockpaperscissors, game, javascriptgame">
<!-- CSS Stylesheet link -->
<link rel="stylesheet" href="./assets/css/style.css">
<title>Rock-Paper-Scissors</title>
<!-- Favicon icons -->
<link rel="apple-touch-icon" sizes="180x180" href="assets/images/favicon_io/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="assets/images/favicon_io/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="assets/images/favicon_io/favicon-16x16.png">
<link rel="manifest" href="assets/images/favicon_io/site.webmanifest">
</head>
<!-- Start Page that user first sees when website is opened-->
<body>
<div id="start-page">
<h1 id="home-h">Rock Paper Scissors! </h1>
<p class="home-p">Welcome to my Rock Paper Scissors Javascript game! <br>
Before we play, let's make sure you know the rules:
</p>
<p class="home-p">In this game, you have 3 choices to choose from. Rock (fist emoji 🤜), Paper (Open palm emoji
✋) and Scissors (Peace sign emoji ✌️). <br>
<p class="home-p">In short, Rock beats Scissors, Paper beats Rock and Scissors beats paper. A score will be
tallied for you at the bottom of the screen, keeping track as you play against the computer. When either
you or the computer reaches a score of 10, that round will be won and another round will begin!
<b>Remember:</b> If you need to come back to this page, just click the <em>title</em> in-game and you
will be taken right back here!
</p>
<img src="assets/images/rock-paper-scissors-game-rules.png"
alt="Diagram showing rule of Rock, Paper, Scissors.">
<p class="home-p">Please display a username before we begin:</p>
<div id="div-input">
<input id="u-name" type="text" maxlength="15" placeholder="Please enter your name" name="username"
aria-label="Enter-Username">
</div>
<!--Start game div/button-->
<div id="start-game">Start!</div>
</div>
<!-- End of Start Page section -->
<!-- Modal for round win/loss -->
<div id="modal" class="modal-outer">
<span id="close-modal">x</span>
<div class="modal-inner">
<p id="modalpara"></p>
</div>
</div>
<!-- End of Modal code -->
<!-- Main Game section-->
<main id="main">
<!-- Clicking the h1 on the Main Game Page switches back to Start Page-->
<h1 id="link">Rock Paper Scissors!</h1>
<div class="content-block">
<h2 class="subheading"> Choose Your Weapon!</h2>
<div class="block">
<!-- In-game player choices-->
<div id="rock" class="item items">🤜</div>
<div id="paper" class="item items">✋</div>
<div id="scissors" class="item items">✌️</div>
</div>
</div>
<!-- Player vs Computer bar-->
<div class="content-block">
<div class="block">
<div id="username" class="player">User</div>
<div class="vs">vs</div>
<div class="player">Comp</div>
</div>
</div>
<!-- The game-arena -->
<div class="content-block">
<div class="block">
<div id="user" class="arena-block"></div>
<div id="comp" class="arena-block"></div>
</div>
</div>
<!-- The WIN/LOSE/DRAW Banner that displays after each user choice-->
<div id="wl"></div>
<!-- The match scoreboard-->
<div class="content-block">
<div class="block block-score">
<div id="user-score">User </div>
<div class="blocktwo" id="score"><span id="u-score">0</span>:<span id="c-score">0</span></div>
<div id="comp-score"> Comp</div>
</div>
</div>
<!-- The rounds scoreboard -->
<label id="rounds-label">Rounds</label>
<div id="rounds"><span id="u-rounds">0</span>:<span id="c-rounds">0</span></div>
<!-- The Game Reset div/button-->
<div id="reset">Reset</div>
</main>
<!-- Javascript file link-->
<script src="./assets/javascript/style.js"></script>
</body>
</html>