-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
52 lines (49 loc) · 2.66 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Spock Rock Game</title>
<link rel="icon" type="image/png" href="https://meilune.github.io/spock-rock-game/hand.png">
<script src="https://kit.fontawesome.com/8c25178190.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://meilune.github.io/spock-rock-game/style.css">
</head>
<body>
<div class="game-container">
<!-- Header -->
<div class="header">
<h1>Rock - Paper - Scissors - Lizard - Spock</h1>
</div>
<!-- Player Container -->
<div class="player-container" id="player">
<h2>You - <span id="player-score">0</span> --- <span class="choice" id="player-choice">Choice</span></h2>
<i class="fa-regular fa-hand-rock" title="Rock" id="player-rock" onclick="select('rock')"></i>
<i class="fa-regular fa-hand-paper" title="Paper" id="player-paper" onclick="select('paper')"></i>
<i class="fa-regular fa-hand-scissors" title="Scissors" id="player-scissors" onclick="select('scissors')"></i>
<i class="fa-regular fa-hand-lizard" title="Lizard" id="player-lizard" onclick="select('lizard')"></i>
<i class="fa-regular fa-hand-spock" title="Spock" id="player-spock" onclick="select('spock')"></i>
</div>
<!-- Computer Container -->
<div class="computer-container" id="computer">
<h2>Computer - <span id="computer-score">0</span> --- <span class="choice" id="computer-choice">Choice</span></h2>
<i class="fa-regular fa-hand-rock" title="Rock" id="computer-rock"></i>
<i class="fa-regular fa-hand-paper" title="Paper" id="computer-paper"></i>
<i class="fa-regular fa-hand-scissors" title="Scissors" id="computer-scissors"></i>
<i class="fa-regular fa-hand-lizard" title="Lizard" id="computer-lizard"></i>
<i class="fa-regular fa-hand-spock" title="Spock" id="computer-spock"></i>
</div>
<!-- Reset Icon -->
<div class="footer">
<i class="fa-solid fa-arrows-rotate" title="Reset" id="reset-game"></i>
<!-- Results Text -->
<div class="result-container">
<h3 class="result-text" id="result-text">You Won!</h3>
</div>
</div>
</div>
<!-- Confetti Script -->
<script src="https://meilune.github.io/spock-rock-game/confetti.js"></script>
<!-- My Own Script-->
<script src="https://meilune.github.io/spock-rock-game/app.js"></script>
</body>
</html>