-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
59 lines (54 loc) · 1.75 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
<!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" />
<style>
@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap");
</style>
<title>Guess My Number!</title>
</head>
<body>
<header>
<div>
<button class="btn again">Again!</button>
<p>(Between 1 and 20)</p>
<button class="btn help">HELP!</button>
</div>
<h2>Guess My Number!</h2>
<div class="horr-line"></div>
<div class="my-number">?</div>
</header>
<main>
<div class="modal hidden">
<button class="close-modal">×</button>
<p class="modal-message">
How To Play? <br />
1. The computer generates random numbers from 1-20. <br />
2. In each round, you're expected to guess the same number the
computer has. <br />
3. For each wrong trial, a score is deducted from your initial 20.
<br />
4. A new highscore is made when your new score is higher than the
former highscore
</p>
</div>
<div class="overlay hidden"></div>
<form action="">
<section>
<input class="guess" type="number" name="guess" id="guess" />
<br />
<button class="btn check">Check!</button>
</section>
<section>
<p class="message">Start guessing. . .</p>
<p class="score">💯 Score: 20</p>
<p class="highscore">🏆 High Score: 0</p>
</section>
</form>
</main>
<script src="script.js"></script>
</body>
</html>