-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
51 lines (44 loc) · 2 KB
/
Copy pathindex.html
File metadata and controls
51 lines (44 loc) · 2 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="GiftinTech">
<meta name="description" content="My first rock, paper, scissors game.">
<title>Gift Egbonyi - Rock, Paper, Scissors Game</title>
<link rel="stylesheet" href="style.css">
<link rel="icon" href="img/gift-logo.png" type="image/x-icon">
</head>
<body>
<section class="home-section">
<h1>Do you want to play a Rock, Paper, and Scissors Game?</h1>
<button type="button" id="exit-btn" class="play-btn header-btn">PLAY</button>
<button type="button" class="exit-btn header-btn">EXIT</button>
<dialog class="message-dialog">
<h2>Okay, maybe next time.</h2>
<p>
<button class="close-modal" autofocus>Close</button>
</p>
</dialog>
<dialog class="player-input-dialog">
<h2>Enter player name:</h2>
<p>
<input type="text" name="player-name" id="player-name" class="player-input" placeholder="Enter your name" onkeydown="handleNameKeyDown(event)">
</p>
<button type="button" class="second-play-btn player-name-btn" onclick="initGame()">NEXT</button>
<button type="button" class="second-exit-btn player-name-btn">EXIT</button>
</dialog>
<dialog class="thanks-message-dialog">
<h2>Thanks for playing!</h2>
<p>
<button id="second-close-modal" class="close-modal" autofocus>Close</button>
</p>
</dialog>
<footer>
<div>© <span class="js-current-year"></span> <a href="https://giftegbonyi.vercel.app/" target="_blank">Gift Egbonyi</a></div>
<div>Design inspired by <a href="https://markteekman.github.io/rock-paper-scissors-game/" target="_blank">Mark</a></div>
</footer>
</section>
<script src="main.js"></script>
</body>
</html>