-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
61 lines (61 loc) · 1.98 KB
/
index.html
File metadata and controls
61 lines (61 loc) · 1.98 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
57
58
59
60
61
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="icon" href="./images/rock-favi.png" type="image/png" />
<link rel="stylesheet" href="./style.css" />
<title>Rock paper and scissors</title>
</head>
<body>
<section class="game">
<div id="resultModal" class="modal">
<div class="modal-content">
<span class="close">×</span>
<h2 id="modal-title"></h2>
<p id="modal-body"></p>
</div>
</div>
<div class="score">
<div class="player-score">
<h2>Player</h2>
<p>
<span id="player-score">0</span> / <span class="max-score"></span>
</p>
</div>
<div class="score-board fadeOut">
<p>Total match: <span id="totalRounds"></span></p>
<p>Player: <span id="playerWins">0</span></p>
<p>Computer: <span id="computerWins">0</span></p>
</div>
<div class="computer-score">
<h2>Computer</h2>
<p>
<span id="computer-score">0</span> / <span class="max-score"></span>
</p>
</div>
</div>
<div class="intro">
<h1>Rock Paper and Scissors</h1>
<button>Let's Play</button>
</div>
<div class="match fadeOut">
<h2 class="winner">Choose an option</h2>
<div class="hands">
<img class="player-hand" src="./images/rock.png" alt="" />
<img class="computer-hand" src="./images/rock.png" alt="" />
</div>
<div class="options">
<button class="rock">rock</button>
<button class="paper">paper</button>
<button class="scissors">scissors</button>
</div>
</div>
<div class="credits">
<h2>Game created by Jobin</h2>
</div>
</section>
<script src="./script.js"></script>
</body>
</html>