-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
84 lines (83 loc) · 3.8 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!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 Scissors</title>
<link rel="stylesheet" href="css/styles.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=Roboto:ital,wght@0,100;0,300;0,400;0,600;0,700;0,800;0,900;1,300&display=swap" rel="stylesheet">
<link rel="shortcut icon" type="image/png" href="img/favicon-16x16.png">
<script src="js/main.js" defer></script>
</head>
<body>
<section id="title-screen">
<h2>LET'S PLAY:</h2>
<h1 class="rock-title">ROCK</h1>
<h1 class="paper-title">PAPER</h1>
<h1 class="scissors-title">SCISSORS</h1>
</section>
<section id="game-area">
<h1 class="round-text">ROUND <span id="round-label">N</span></h1>
<div class="selection-area">
<div class="player-area">
<h2 class="player-label"><span class="player-text">Player</span></h2>
<div class="actions-area">
<div class="action">
<button class="action-block player-button rock-block" data-state="active">R</button>
<p class="action-text">ROCK</p>
</div>
<div class="action">
<button class="action-block player-button paper-block" data-state="active">P</button>
<p class="action-text">PAPER</p>
</div>
<div class="action">
<button class="action-block player-button scissors-block" data-state="active">S</button>
<p class="action-text">SCISSORS</p>
</div>
</div>
</div>
<div class="computer-area">
<h2 class="computer-label"><span class="computer-text">Computer</span></h2>
<div class="actions-area">
<div class="action">
<button class="action-block computer-button rock-block" data-state="active" tabindex="-1">R</button>
<p class="action-text">ROCK</p>
</div>
<div class="action">
<button class="action-block computer-button paper-block" data-state="active" tabindex="-1">P</button>
<p class="action-text">PAPER</p>
</div>
<div class="action">
<button class="action-block computer-button scissors-block" data-state="active" tabindex="-1">S</button>
<p class="action-text">SCISSORS</p>
</div>
</div>
</div>
</div>
<div class="points-area">
<h2 class="points-label">Score</h2>
<div class="points">
<span id="player-points" data-visibility="show">0</span>
<span class="points-divider">-</span>
<span id="computer-points" data-visibility="show">0</span>
</div>
</div>
</section>
<section id="game-logs-area">
<h2 class="game-logs">
<span class="game-logs-name" data-logname=""></span>
<span class="game-logs-body"></span>
</h2>
</section>
<section id="end-game-buttons" data-visibility="hide">
<button class="play-again">PLAY AGAIN</button>
<button class="view-source-code">VIEW SOURCE CODE</button>
</section>
<footer>
Project made by <a href="https://github.com/ErickBGomez" target="_blank">Erick B. Gómez</a>
</footer>
</body>
</html>