-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
56 lines (56 loc) · 2.94 KB
/
index.html
File metadata and controls
56 lines (56 loc) · 2.94 KB
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
<!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 Game</title>
<link rel="icon" type="image/png" href="assets/rock-paper-scissors copy.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>
<!-- Header -->
<div class="header">
<h1>Rock Paper Scissors</h1>
</div>
<!-- Game Container -->
<div class="game-container">
<!-- PlayerComputer Container -->
<div class="playercomputer-container" id="playercomputercontainer">
<!-- Player Container -->
<div class="player-container" id="player">
<!-- Player Score -->
<h2>You <span id="playerScore"></span><span class="choice" id="playerChoice"></span></h2>
<div class="icon-container">
<i class="fas fa-hand-rock fa-rotate-90 " title="Rock" id="playerRock" onclick="select('rock')" aria-hidden="true"></i>
<i class="fas fa-hand-paper fa-rotate-90" title="Paper" id="playerPaper" onclick="select('paper')" aria-hidden="true"></i>
<i class="fas fa-hand-scissors fa-flip-horizontal" title="Scissors" id="playerScissors" onclick="select('scissors')" aria-hidden="true"></i>
</div>
</div> <!--end of player-container-->
<!-- Computer Container -->
<div class="computer-container" id="computer">
<!-- Computer Score -->
<h2>Computer <span id="computerScore"></span><span class="choice" id="computerChoice"></span></h2>
<div class="icon-container">
<span class="fa-rotate-90" style="display:inline-block;">
<i class="fas fa-hand-rock fa-flip-vertical" title="Rock" id="computerRock" aria-hidden="true"></i>
</span>
<span class="fa-rotate-90" style="display:inline-block;">
<i class="fas fa-hand-paper fa-flip-vertical" title="Paper" id="computerPaper" aria-hidden="true"></i>
</span>
<i class="fas fa-hand-scissors" title="Scissors" id="computerScissors" aria-hidden="true"></i>
</div>
</div><!--end of computer-container-->
</div> <!--end of playercomputer-container-->
<!-- Results and Reset Container -->
<div class="resultsReset-container">
<!-- Results Text -->
<h3 class="result-text" id="resultText"></h3>
<a href="#" class="btn btn-white" onclick="resetAll()">Reset</a>
</div>
</div> <!--end of game-container-->
<!-- Scripts -->
<script src="confetti.js"></script>
<script src="script.js"></script>
</body>
</html>