-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
51 lines (47 loc) · 1.52 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
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>Number Guesser</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-0evHe/X+R7YkIZDRvuzKMRqM+OrBnVFBL6DOitfPri4tjfHxaWutUpFmBp4vmVor" crossorigin="anonymous">
<link rel="stylesheet" href="styles.css">
<script src="app.js" async defer></script>
</head>
<body>
<!--I didn't need to have all of these rows and columns.-->
<!-- <div class="container wrapper"> -->
<div class="container main align-items-center">
<div class="row">
<div class="column">
<h1>Welcome to the Number Guessing Game! The computer has selected a number between 1 and 100, it's your job to
guess it!</h1>
</div>
</div>
<div class="row">
<div class="column">
<form id="form" onsubmit="userGuess(event)">
<input type="text" alt="input_a_number" placeholder="Input a number" id="input">
<button class="btn btn-dark btn-lg" type="submit" id="guess">Guess!</button>
</form>
</div>
</div>
<div class="row">
<div class="column">
<h2 id="wrong" class="mt-3"></h2>
</div>
</div>
<div class="row">
<div class="column">
<h2 id="guesses" class="mt-3"></h2>
</div>
</div>
<div class="row">
<div class="column">
<h2 id="answer"></h2>
</div>
</div>
</div>
<!-- </div> -->
</body>
</html>