forked from SchoolOfCode/bootcamp-18-week-2-hackathon-rock-paper-scissors-hackathon_rock-paper-scissors
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
47 lines (47 loc) · 1.88 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Rock Paper Scissors</title>
<link rel="stylesheet" href="styles.css">
<script src="script.js" defer></script>
</head>
<body>
<div id="start-menu" class="start-menu">
<h1>Welcome to Rock Paper Scissors</h1>
<input type="text" id="user-name-input" placeholder="Enter your name">
<button id="start-button">Start Game</button>
</div>
<div id="game-mode-menu" class="game-mode-menu" style="display: none;">
<h2>Select Game Mode</h2>
<button id="best-of-3-button">Best of 3</button>
<button id="best-of-5-button">Best of 5</button>
</div>
<div id="game-container" class="game-container" style="display: none;">
<div id="result-display" class="result-display"></div>
<div id="user-name-display" class="user-name-display"></div>
<div class="row">
<div id="player" class="box">
<img id="player-img" src="" alt="Player Choice">
</div>
<div id="vs" class="vs">
<img src="vs.jpeg" alt="VS">
</div>
<div id="npc" class="box">
<img id="npc-img" src="" alt="NPC Choice">
</div>
</div>
<div class="choices">
<button class="choice-button" onclick="makeChoice('rock')">Rock</button>
<button class="choice-button" onclick="makeChoice('paper')">Paper</button>
<button class="choice-button" onclick="makeChoice('scissors')">Scissors</button>
</div>
</div>
<div id="post-game-menu" class="post-game-menu" style="display: none;">
<h2 id="final-result"></h2>
<button id="play-again-button">Play Again</button>
<button id="end-game-button">End Game</button>
</div>
</body>
</html>