-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
76 lines (70 loc) · 3.2 KB
/
index.html
File metadata and controls
76 lines (70 loc) · 3.2 KB
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
73
74
75
76
<!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> 🏆 Guess Number Game</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/custom.css">
</head>
<body>
<div class="container-fluid">
<!-- Guess number Title Start -->
<section class="row justify-content-center mt-5">
<div class="col-md-10 text-center">
<h5>Guess A Number Between 1 and 30</h5>
</div>
<div class="col-md-10 text-center" id="trophy">
<h1> <img src="image/trophy3.gif" alt="trophy image"> </h1>
</div>
</section>
<!-- Guess number Title End -->
<!-- Input and Output Section Start -->
<section class="row text-center justify-content-center mt-5 mb-5">
<!-- Output Div Start -->
<div class="col-md-6 mb-3">
<div class="card">
<div class="card-body">
<h1 id="guessNumber">Guess The Number ⚠️</h1>
</div>
</div>
</div>
<!-- Output Div End -->
<!-- Input Div Start -->
<div class="col-md-4" id="userInput">
<input id="inputNumber" class="form-control mb-3" type="number" placeholder="Select a number">
<button class="btn btn-success btn-block text-uppercase" onclick="showResult()">Check</button>
</div>
<!-- Input Div End -->
<!-- Attempt Count Div Start -->
<div class="col-md-4" id="userAttempt">
<h1 class="mb-4" id="medal">0</h1>
<h5 class="mb-4">You have tried <strong id="attemptNumber">0</strong> times and won the <strong id="position">0</strong> position 👏</h5>
<button class="btn btn-primary btn-block text-uppercase" onclick="location.reload()">Start Again</button>
</div>
<!-- Attempt Count Div End -->
</section>
<!-- Input and Output Section End -->
<!-- Footer Section Start -->
<footer class="row text-center justify-content-center mt-5 mb-5">
<div class="col-md-10">
<p class="m-0">Made with 🖤 by <a class="text-decoration-none text-dark" target="_blank" href="https://github.com/munaimpro">Munaim Khan</a></p>
</div>
</footer>
<!-- Footer Section End -->
<!-- Sound Effect Start -->
<audio src="sound/click.mp3" id="clickSound"></audio>
<audio src="sound/flevel.mp3" id="flevelSound"></audio>
<audio src="sound/slevel.mp3" id="slevelSound"></audio>
<audio src="sound/finalwin.mp3" id="finalwinSound"></audio>
<!-- Sound Effect End -->
</div>
<!-- JavaScript File Link Start -->
<script src="js/jquery-3.4.1.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/script.js"></script>
<!-- JavaScript File Link End -->
</body>
</html>