-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
56 lines (53 loc) · 2.19 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
<!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="stylesheet" href="style.css">
<title>Play with Numbers</title>
</head>
<body>
<header>
<h1>Guess the Number Game!!</h1>
</header>
<main>
<div id="levels" class="showlevels">
<div id="easy">
<a href="#play"></a><button onclick="easy()">Easy Mode</button></a>
<p>In this level number is given between 0 to 100</p>
</div>
<div id="medium">
<a href="#play"></a><button onclick="medium()">Medium Mode</button></a>
<p>In this level number is given between 0 to 500</p>
</div>
<div id="hard">
<a href="#play"></a><button onclick="hard()">Hard Mode</button></a>
<p>In this level number is given between 0 to 1000</p>
</div>
</div>
<div id="play">
<p id="instruction">
There is a number selected between <span>0 to 100 for Easy</span>, <span>0 to 500 for Medium</span> and <span>0 to 1000 for Hard</span>.
<br> Guess the number and check if it's correct or smaller or bigger than the actual. Keep trying untill you get the correct one. You have 10 chances.
</p>
<a href="#levels"><button onclick="showLevels()">See the Levels</button></a>
<div id="playground">
<input type="number" id="number" placeholder="Your Number here">
<button onclick="check()">Check your guess</button>
<p id="result"></p>
</div>
</div>
</main>
<footer>
<p>
This page has copyright issues because it is the result of Somia's Hard work, not yours!!
</p>
<p>
If you like my work, Give star to the repo at
<a href="https://github.com/somia-ansari/guessTheNumber-Game" target="_blank">Github!</a>
</p>
</footer>
<script src="script.js"></script>
</body>
</html>