-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
68 lines (61 loc) · 2.58 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/main.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Alegreya+Sans+SC:wght@400;700&family=Tilt+Prism&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script defer src="js/game.js"></script>
<title>Rock, Papper, Scissors!</title>
</head>
<body>
<header>
<h1>Rock, Paper, Scissors!</h1>
</header>
<main>
<div class="game-info flex-center">
<p>You are playing against your mighty computer!</p>
<p>Prepare for trouble, Make it double!</p>
<p>< Choose Wisely /></p>
</div>
<div class="rps-container flex-center">
<button title="Rock" class="player-choice" id="rock"><img src="images/rock.png" alt="rock"></button>
<button title="Paper" class="player-choice" id="paper"><img src="images/paper.png" alt="paper"></button>
<button title="Scissors" class="player-choice" id="scissors"><img src="images/scissors.png" alt="scissors"></button>
</div>
<div class="image flex-center hidden">
<img src="media/rps-gon.gif" alt="rock-paper-scissors-gon">
</div>
<div class="score">
<div class="score-info flex-center">
<h2 id="resultTitle"></h2>
<h3 id="resultDesc"></h3>
</div>
<div class="score-board flex-center">
<div class="player-score">
<div>
<img id="playerChoiceIcon" src="" alt="">
</div>
<p id="playerScoreTitle"></p>
</div>
<div class="comp-score flex-center">
<div>
<img id="compChoiceIcon" src="" alt="">
</div>
<p id="compScoreTitle"></p>
</div>
</div>
</div>
<div class="endgame hidden">
<p id="gameResult"></p>
<button class="restart-button">Play Again</button>
</div>
</main>
<footer class="flex-center">
<p>Copyright © <a href="https://github.com/S-Y-A-N" target="_blank">S-Y-A-N <i class="fa fa-github"></i></a></p>
</footer>
</body>
</html>