-
Notifications
You must be signed in to change notification settings - Fork 0
/
win-page.html
65 lines (61 loc) · 2.27 KB
/
win-page.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
<!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 - Win</title>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="rps-score-box">
<div class="title">
ROCK<br>
PAPER<br>
SCISSORS
</div>
<div class="score-container">
<div class="score-box">
<label for="computer-score">Computer<br> Score</label>
<span id="computer-score">0</span>
</div>
<div class="score-box">
<label for="player-score">Your <br>Score</label>
<span id="player-score">0</span>
</div>
</div>
</div>
<div class="result-container">
<div class="choice-result" id="player-choice">
<p>YOU PICKED</p>
<div class="choice-circle">
<img src="" alt="Player Choice">
</div>
</div>
<div class="result-message">
<h2 id="result-message">YOU WIN</h2>
<p>AGAINST PC</p>
<button id="play-again-btn">PLAY AGAIN</button>
</div>
<div class="choice-result" id="computer-choice">
<p>PC PICKED</p>
<div class="choice-circle">
<img src="" alt="Computer Choice">
</div>
</div>
</div>
<button id="rules-btn" class="rules-btn">RULES</button>
<button id="next-btn" class="next-btn">NEXT</button>
<div id="rules-popup" class="rules-popup">
<button id="close-rules" class="close-btn">X</button>
<h2>Game Rules</h2>
<ul>
<li>Rock beats scissors, scissors beat paper, and paper beats rock.</li>
<li>Agree ahead of time whether you'll count off "rock, paper, scissors, shoot" or just "rock, paper, scissors."</li>
<li>Use rock, paper, scissors to settle minor decisions or simply play to pass the time.</li>
<li>If both players lay down the same hand, each player lays down another hand.</li>
</ul>
</div>
<script src="win.js"></script>
</body>
</html>