-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
46 lines (45 loc) · 2.29 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
<!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" href="https://lh3.googleusercontent.com/ogw/ADGmqu-t4SjxY4Ie8AO20govlZr2aRd8b66T9sL48xyx=s32-c-mo" type="image/png">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.2/css/all.min.css"/>
<link rel="stylesheet" href="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="playerScore"></span><span class="choice" id="playerChoice"></span></h2>
<i class="far fa-hand-rock" title="rock" id="playerRock" onclick="select('rock')"></i>
<i class="far fa-hand-paper" title="paper" id="playerPaper" onclick="select('paper')"></i>
<i class="far fa-hand-scissors" title="scissors" id="playerScissors" onclick="select('scissors')"></i>
<i class="far fa-hand-lizard" title="lizard" id="playerLizard" onclick="select('lizard')"></i>
<i class="far fa-hand-spock" title="spock" id="playerSpock" onclick="select('spock')"></i>
</div>
<!--computer container-->
<div class="player-container" id="computer">
<h2>You - <span id="computerScore"></span><span class="choice" id="computerChoice"></span></h2>
<i class="far fa-hand-rock" title="rock" id="computerRock"></i>
<i class="far fa-hand-paper" title="paper" id="computerPaper"></i>
<i class="far fa-hand-scissors" title="scissors" id="computerScissors"></i>
<i class="far fa-hand-lizard" title="lizard" id="computerLizard"></i>
<i class="far fa-hand-spock" title="spock" id="computerSpock"></i>
</div>
<!--reset icon-->
<i class="fas fa-sync-alt reset-icon" title="reset" onclick="resetAll()"></i>
<!--result text-->
<div class="result-container">
<h3 class="result-text" id="resultText">Result here</h3>
</div>
</div>
<!-- Script -->
<script src="script.js" type="module"></script>
</body>
</html>