-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
72 lines (70 loc) · 2.04 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
71
72
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<link
href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;700&display=swap"
rel="stylesheet"
/>
<title>game</title>
</head>
<body>
<div class="main">
<div class="header">
<h1>Guess the number game</h1>
</div>
<div class="how-to-play">
<h2>How to play ?</h2>
<p>
I have a random number in my mind and you have to find that
number
</p>
<p>
when you try you'll see some letters, they gonna help you to
find the number, here is what they mean
</p>
<p>
<span class="tips">F - </span>means that this integer
doesn't match my random number <br />
<span class="tips">P - </span>means that this integer
matching my random number but in a diffrent position so you
have to switch the his position <br />
<span class="tips">T - </span>means that this integer is
matching my random number and it's in the right position
</p>
</div>
<div class="play" id="play">
<div class="input-div">
<label for="number"></label>
<input
placeholder="Enter your attemp"
type="number"
name="number"
id="number"
/>
<button onclick="handleSubmit()">Try it</button>
</div>
<div class="results-container" id="results-container"></div>
</div>
<div class="settings">
<h3>Settings</h3>
<button class="restart-button" onclick="restart()">
Restart
</button>
<span class="level-text">choose level and press start</span>
<select id="level" name="level" size="1">
<option hidden="true">Choose Level</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
<button onclick="start()" class="start">Start</button>
</div>
</div>
<script src="index.js"></script>
</body>
</html>