-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
39 lines (36 loc) · 1.51 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
<!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="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css" integrity="sha512-EZLkOqwILORob+p0BXZc+Vm3RgJBOe1Iq/0fiI7r/wJgzOFZMlsqTa29UEl6v6U6gsV4uIpsNZoV32YZqrCRCQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<title>Number Guesser</title>
<style>
/* Removing the up and down spinners/arrows of input field */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button
{
-webkit-appearance: none;
margin: 0;
}
</style>
</head>
<body>
<!-- Container class centers the content -->
<div class="container">
<div id="game">
<!-- Game id has the markup for the game -->
<h1>Number Guesser</h1>
<p>Guess a number between <span class="min"></span> and <span class="max"></span></p>
<!-- This input field stores the user input -->
<input type="number" id="user_input" placeholder="Enter your guess...">
<!-- button to check user's guess -->
<button class="button button-primary" id="submit_btn">Submit</button>
<!-- Messages are shown on user's screen. Manipulated in JavaScript -->
<p class="message"></p>
</div>
</div>
<script src="app.js"></script>
</body>
</html>