-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
45 lines (45 loc) · 1.91 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
<!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 href="index.css" rel="stylesheet" />
<!--Google Font-->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet">
<title>Number Guesser</title>
</head>
<body>
<main class="roboto-regular">
<div class="holder">
<h1 class="roboto-bold">Guessing Game</h1>
<p class="main">
"I'm thinking of a number from 1 to 99! Can you guess it in 5 tries or
less?"
</p>
<div class="center">
<input type="number" id="guess" min="1" max="99" />
<!-- NO ONCLICK HERE need event listener -->
<button id="submit">Submit Guess</button>
</div>
<div class="center">
<p class="message" id="number-of-guesses"></p>
<p class="message" id="too-high">You guessed too high. Try again.</p>
<p class="message" id="too-low">You guessed too low. Try again.</p>
<p class="message" id="max-guesses">
<p class="message" id="invalid-num">Opps, you entered an invalid Number please enter a number between 1 and 99!</p>
<p class="message" id="not-a-num">Opps not a number, enter a valid number 1 to 99!!!!</p>
<p class="message" id="max-guesses">
You reached the max number of guesses
</p>
<p class="message" id="correct">
Congratulations, You guessed correctly! <br />
Would you like to play again?
</p>
<button id="reset">Reset</button>
</main>
<script src="index.js"></script>
</body>
</html>