-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
56 lines (56 loc) · 1.97 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
<!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">
<link rel="stylesheet" href="style.css">
<script src="https://kit.fontawesome.com/b9e860295a.js" crossorigin="anonymous"></script>
<title>Rock Paper Scissors</title>
</head>
<body>
<header>
<h1>Rock Paper Scissors</h1>
<span id="top-head">The winner is first to reach 5 points</span>
</header>
<div id="game">
<div id="player-vs-robot">
<div id="left">
<h2 id="player" data-score="0">Player</h2>
<div class="game-box" id="rock">
<i class="fas fa-hand-rock"></i>
<h3>Rock</h3>
</div>
<div class="game-box" id="paper">
<i class="fas fa-hand-paper"></i>
<h3>Paper</h3>
</div>
<div class="game-box" id="scissors">
<i class="fas fa-hand-scissors"></i>
<h3>Scissors</h3>
</div>
</div>
<div id="right">
<h2 id="robot" data-score="0">Robot</h2>
<div class="game-box" id="rock-fixe">
<i class="fas fa-hand-rock"></i>
<h3>Rock</h3>
</div>
<div class="game-box" id="paper-fixe">
<i class="fas fa-hand-paper"></i>
<h3>Paper</h3>
</div>
<div class="game-box" id="scissors-fixe">
<i class="fas fa-hand-scissors"></i>
<h3>Scissors</h3>
</div>
</div>
</div>
<div id="bot-result">
<div id="text-area"></div>
<div id='refresh' class="hiden">Play Again</div>
</div>
</div>
</body>
<script src="main.js"></script>
</html>