-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathguessingGame.html
64 lines (52 loc) · 2.1 KB
/
guessingGame.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
<!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">
<meta name="description" content="">
<meta name="author" content="">
<title>Guess the Number</title>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Custom CSS -->
<link href="css/3-col-portfolio.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="guessingGame.css">
</head>
<body>
<!--jquery-->
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script src="guessManager.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
<div class = "row" align = "center">
<div class = "col-md-4 col-md-push-3" id = 'guessArea'>
<h1 id='gameHeader'> Guess the Number!</h1>
<form class = "form-inline" role = "form" id = 'guessingForm'>
<div class="form-group">
<input type="guess" class="form-control" id="guess">
</div>
<button type = "button" class = "btn btn-default" id = "submitGuess">Guess</button>
</form>
<p>Attempts Left: <span id= "guessTicker"></span></p>
<br>
<br>
<br>
<div class = "row" align = "center">
<button type = "button" class = "btn btn-default" id="restart">Restart Game</button>
<button type = "button" class = "btn btn-default" id="hint">Hint</button>
</div>
<div class = "row" align = "center" id = "hintDisplay">
<p><b>Hint:</b> The answer is <span id="answer" style = "bold"></span>.</p>
</div>
</div>
<div class = "col-md-4 col-md-push-2" align = "center">
<h3 id='guessesTitle'>Your Guesses</h3>
<ul id = "pastGuesses">
</ul>
</div>
</div>
<p></p>
</body>
</html>