generated from Code-Institute-Org/gitpod-full-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
83 lines (79 loc) · 3.42 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
<!DOCTYPE html>
<html lang="en">
<!--header section starts here-->
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="Paper, Rock, Scissors Game" content="Game Web App">
<meta name="keywords" content="HTML, CSS, JavaScript, paper, rock, scissors, game, online game">
<meta name="author" content="Eric Nathaniel Jones">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Paper, Rock, Scissors</title>
<link rel="stylesheet" href="assets/css/style.css">
</head>
<!--body section starts here-->
<body>
<!--header section starts here-->
<div>
<header>
<h1>Paper, Rock, Scissors</h1>
</header>
</div>
<!--game section starts here-->
<main class="container">
<div id="gameDiv">
<section class="choice-area" id="choiceArea">
<div class="pick-one">
<div>
<h2>Pick One:</h2>
</div>
<div class="choices-buttons">
<div class="choice-button" id="choiceButton">
<button aria-label="Rock" id="rock" data-choice="rock" class="control">ROCK</button>
<button aria-label="Paper" id="paper" data-choice="paper" class="control">PAPER</button>
<button aria-label="Scissors" id="scissors" data-choice="scissors" class="control">SCISSORS</button>
<button aria-label="resetButton" id="resetScore">RESET</button>
</div>
</div>
<div class="winner-area">
<p><span id="result-output"></span></p>
</div>
</div>
</section>
<div class="you-chose">
<h2>You Chose: <span id="result"></span></h2><br>
<h2>Computer Chose:<span id="computer-choice"></span></h2>
</div>
<div class="main-section">
<section class="pic-display">
<div class="player" id="player">
<div class="score-one" id="scoreOne"></div>
<h2><span id="player-choice" class="user-score"></span><span>Player:</span><span id="userScore">0</span></h2>
<img id="player-image" src="assets/images/rock-paper-scissors-1238146.jpg" alt="Rock Paper Scissors">
</div>
</section>
<section>
<div class="computer" id="computer">
<div class="score-two" id="scoreTwo"></div>
<h2><span id="computerSpan" class="computer-score"></span><span>Computer:</span><span id="compScore">0</span></h2>
<img id="computer-image" src="assets/images/rock-paper-scissors-1238146.jpg" alt="Rock Paper Scissors">
</div>
</section>
</div>
</div>
</main>
<!--footer section-->
<footer>
<div class="footer-style">
<div>
<h3>Rules</h3>
</div>
<div class="game-rules">
<span>*Scissors cuts Paper*</span><span>*Paper covers Rock*</span><span>*Rock crushes Scissors*</span><span>*Best out of 9 games wins!*</span>
</div>
</div>
</footer>
<!--scripts-->
<script src="assets/js/script.js"></script>
</body>
</html>