-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
70 lines (70 loc) · 3.07 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
<!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>Number Guess</title>
<link rel="stylesheet" href="./src/css/style.css" />
</head>
<body>
<div class="container">
<div class="row">
<div class="title">
<img src="./src/assets/images/joystick.png" alt="">
<h3>Number guessing game</h3>
<img src="./src/assets/images/joystick.png" alt="">
</div>
<div class="infos">
<p>
Try and guess a random number between <strong>1</strong> and
<strong> 100</strong>.
</p>
<p>You have 10 attempts to guess the right number.</p>
</div>
<div class="main">
<h1>Guess a number</h1>
<input
type="text"
onkeypress="return onlyEnterNumbers()"
maxlength="3"
required
class="GameInputValue"
/>
<input type="submit" />
<div class="previous-numbers">
<p>Previous Guesses:</p>
</div>
<p class="times">
Guesses Remaining:
<span>10</span>
</p>
<div class="alert"></div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal-overlay open-modal">
<div class="modal-container">
<h3>Select your level</h3>
<div class="game-btn">
<button class="btn" data-id="easy">easy 0-10</button>
<button class="btn" data-id="normal">normal 0-100</button>
<button class="btn" data-id="hard">hard 0-500</button>
</div>
</div>
</div>
<!-- End Modal -->
<!-- top message -->
<div class="message-overlay">
<div class="message-container">
<h3 class="message-text"></h3>
<div>
<button>Ok</button>
</div>
</div>
</div>
<!-- End top message -->
<script src="./src/scripts/index.js"></script>
</body>
</html>