-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
61 lines (61 loc) · 2.45 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Rock Paper Scissor</title>
<link rel="stylesheet" href="./style.css">
<script src="./script.js" defer></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Fuzzy+Bubbles&display=swap');
</style>
<link rel="icon" href="./media/hand-icon.png">
</head>
<body>
<header id="title">
<h1>Rock Paper Scissor</h1>
<div id="info">
<p>Copyright © <span id="currentYear"></span> TomPic93</p>
<a href="https://github.com/TomPic93" target="_blank"><img id="gitHubImg" src="./media/github-logo.png"
alt="github-logo"></a>
</div>
</header>
<div id="mainGame">
<!-- holds the main visual information about the game and the round -->
<div id="tabs">
<div class="tab" id="playerTab">
<div class="name" id="playerName">Player</div>
<div class="score" id="playerScoreDisplay"></div>
<!-- graphical display of the user selection -->
<div class="choice" id="playerChoiceDisplay"></div>
</div>
<div class="tab" id="computerTab">
<div class="name" id="computerName">Computer</div>
<div class="score" id="computerScoreDisplay"></div>
<!-- graphical display of the user selection -->
<div class="choice" id="computerChoiceDisplay"></div>
</div>
</div>
<!-- elements for the user to select -->
<div id="symbols">
<div class="symbolContainer">
<div class="symbol" id="rock" data-value="3">👊</div>
</div>
<div class="symbolContainer">
<div class="symbol" id="paper" data-value="1">✋</div>
</div>
<div class="symbolContainer">
<div class="symbol" id="scissors" data-value="2">✌️</div>
</div>
</div>
<!-- written display showing the round / final result -->
<div id="roundChoicesDisplay"></div>
<div id="roundWinnerDisplay"></div>
<!-- reset button, only visible at game-over -->
<div id="playAgainDisplay">
<button id="playAgainBtn">Play Again</button>
</div>
</div>
</body>
</html>