-
Notifications
You must be signed in to change notification settings - Fork 106
/
index.html
124 lines (103 loc) · 4.67 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Guess The Number</title>
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/index.css">
<link href="https://fonts.googleapis.com/css?family=Acme|Volkhov" rel="stylesheet">
</head>
<body>
<div class="container-fluid">
<div class="row text-center">
<div class="col-xs-3 text-center" style="padding-top: 30px">
<div id="diffchoose">
<label class="container">Easy
<input type="radio" name="radio" class="dif" value="0">
<span class="checkmark"></span>
</label>
<label class="container">Medium
<input type="radio" checked="checked" name="radio" class="dif" value="1">
<span class="checkmark"></span>
</label>
<label class="container">Hard
<input type="radio" name="radio" class="dif" value="2">
<span class="checkmark"></span>
</label>
<label class="container">Expert
<input type="radio" name="radio" class="dif" value="3">
<span class="checkmark"></span>
</label>
</div>
</div>
<div class="col-xs-6" style="right: 65px; font-family: Acme!important;">
<h2>
I'm thinking of a number between
</h2>
<h1>1 and <span id="max">100</span></h1>
<h3 >
You have ten guesses<br>
Can you figure out what it is?
</h3>
</div>
<div class="col-xs-3 hbox">
<h2>Show Hints</h2>
<label class="switch">
<input type="checkbox" checked>
<span class="slider round"></span>
</label>
</div>
</div>
<div class="text-center" style="margin-left: -120px">
<a id="resetbtn" class="btn btn-warning">Reset</a>
</div>
<div class="center-block">
<div class="row">
<div id="guesspanel" class="blocks col-xs-3 text-center">
<h2>Guesses <span id="guesses" class="badge" style="margin-bottom: 5px">0</span></h2>
<div class="gcontent">
</div>
</div>
<div id="mainpanel" class="blocks col-xs-4 text-center " style="padding-top: 130px">
<input id="gno" type="number" step="1" min="1" oninput="validity.valid||(value='');" class="form-control center-block" placeholder="Type Your Guess Here!">
<a id="gbtn" class="btn btn-danger text-uppercase">Guess</a>
</div>
<div id="hintpanel" class="blocks col-xs-4" style="width: 30%">
<h2 class="text-center">Hints</h2><br><br>
<div class="hcontent center-block text-center">
</div>
<h1 id="tsfd" class="text-center" style="color: blue" >Too smart for hints</h1>
</div>
</div>
</div>
<div class="modal fade" id="myModal" role="dialog">
<div class="modal-dialog" >
<div class="modal-content" style="background-color: #00a86b">
<div class="modal-body">
<h1 class="text-center">You Won!</h1>
</div>
<div class="modal-footer">
<button id="clw" type="button" class="btn btn-danger center-block" data-dismiss="modal">Play Again</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="myModal2" role="dialog">
<div class="modal-dialog" >
<div class="modal-content" style="background-color: crimson">
<div class="modal-body">
<h1 class="text-center">You lost!</h1>
<h2 id="lost_msg" class="text-center"></h1>
</div>
<div class="modal-footer">
<button id="cll" type="button" class="btn btn-success center-block" data-dismiss="modal">Try Again</button>
</div>
</div>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/index.js"></script>
</body>
</html>