-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex-100.html
328 lines (315 loc) · 16.9 KB
/
index-100.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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Start your development with a Dashboard for Bootstrap 4.">
<meta name="author" content="Creative Tim">
<title>Argon Dashboard - Free Dashboard for Bootstrap 4</title>
<!-- Favicon -->
<link rel="icon" href="assets/img/brand/favicon.png" type="image/png">
<!-- Fonts -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700">
<!-- Icons -->
<link rel="stylesheet" href="assets/vendor/nucleo/css/nucleo.css" type="text/css">
<link rel="stylesheet" href="assets/vendor/@fortawesome/fontawesome-free/css/all.min.css" type="text/css">
<!-- Page plugins -->
<!-- Argon CSS -->
<link rel="stylesheet" href="assets/css/argon.css?v=1.2.0" type="text/css">
<link rel="stylesheet" href="assets/css/style.css?v=1.2.0" type="text/css">
</head>
<body>
<!-- Main content -->
<div class="main-content" id="panel">
<!-- Header -->
<!-- Header -->
<div class="header bg-primary pb-6">
<div class="container-fluid">
<div class="header-body">
<div class="row align-items-center py-4">
<div class="col-lg-6 col-7">
<h6 class="h2 text-white d-inline-block mb-0">Housie</h6>
</div>
</div>
</div>
</div>
</div>
<!-- Page content -->
<div class="container-fluid mt--6">
<div class="row">
<div class="col-xl-7">
<div class="card bg-default">
<div class="card-header bg-transparent">
<div class="row align-items-center">
<div class="col">
<h6 class="text-light text-uppercase ls-1 mb-1">Overview</h6>
<h5 class="h3 text-white mb-0">The Board</h5>
</div>
<div class="col">
<ul class="nav nav-pills justify-content-end">
<li class="nav-item mr-2 mr-md-0">
<button type="button" class="btn btn-block btn-warning btn-sm next-number-btn" data-toggle="modal" data-target="#modal-notification">Next Number</button>
<div class="modal fade" id="modal-notification" tabindex="-1" role="dialog" aria-labelledby="modal-notification" aria-hidden="true">
<div class="modal-dialog modal-danger modal-dialog-centered modal-" role="document">
<div class="modal-content bg-gradient-danger">
<div class="modal-header">
<h6 class="modal-title" id="modal-title-notification">Next number is...</h6>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="text-center">
<h4 class="heading next-number next-number-js">00</h4>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-white ml-auto" data-dismiss="modal">Ok</button>
<!-- <button type="button" class="btn btn-link text-white " data-dismiss="modal">Close</button> -->
</div>
</div>
</div>
</div>
</li>
<li class="nav-item mr-2 mr-md-0">
<!-- Button trigger modal -->
<button type="button" class="btn btn-primary btn-sm" data-toggle="modal" data-target="#exampleModal">
Rules
</button>
<!-- Modal -->
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Modal title</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>
</li>
</ul>
</div>
</div>
</div>
<div class="card-body">
<div class="hpusie-board-container">
<div class="board">
<div class="number-box"><input type="checkbox" id="number-1"><label for="number-1">1</label></div>
<div class="number-box"><input type="checkbox" id="number-2"><label for="number-2">2</label></div>
<div class="number-box"><input type="checkbox" id="number-3"><label for="number-3">3</label></div>
<div class="number-box"><input type="checkbox" id="number-4"><label for="number-4">4</label></div>
<div class="number-box"><input type="checkbox" id="number-5"><label for="number-5">5</label></div>
<div class="number-box"><input type="checkbox" id="number-6"><label for="number-6">6</label></div>
<div class="number-box"><input type="checkbox" id="number-7"><label for="number-7">7</label></div>
<div class="number-box"><input type="checkbox" id="number-8"><label for="number-8">8</label></div>
<div class="number-box"><input type="checkbox" id="number-9"><label for="number-9">9</label></div>
<div class="number-box"><input type="checkbox" id="number-10"><label for="number-10">10</label></div>
<div class="number-box"><input type="checkbox" id="number-11"><label for="number-11">11</label></div>
<div class="number-box"><input type="checkbox" id="number-12"><label for="number-12">12</label></div>
<div class="number-box"><input type="checkbox" id="number-13"><label for="number-13">13</label></div>
<div class="number-box"><input type="checkbox" id="number-14"><label for="number-14">14</label></div>
<div class="number-box"><input type="checkbox" id="number-15"><label for="number-15">15</label></div>
<div class="number-box"><input type="checkbox" id="number-16"><label for="number-16">16</label></div>
<div class="number-box"><input type="checkbox" id="number-17"><label for="number-17">17</label></div>
<div class="number-box"><input type="checkbox" id="number-18"><label for="number-18">18</label></div>
<div class="number-box"><input type="checkbox" id="number-19"><label for="number-19">19</label></div>
<div class="number-box"><input type="checkbox" id="number-20"><label for="number-20">20</label></div>
<div class="number-box"><input type="checkbox" id="number-21"><label for="number-21">21</label></div>
<div class="number-box"><input type="checkbox" id="number-22"><label for="number-22">22</label></div>
<div class="number-box"><input type="checkbox" id="number-23"><label for="number-23">23</label></div>
<div class="number-box"><input type="checkbox" id="number-24"><label for="number-24">24</label></div>
<div class="number-box"><input type="checkbox" id="number-25"><label for="number-25">25</label></div>
<div class="number-box"><input type="checkbox" id="number-26"><label for="number-26">26</label></div>
<div class="number-box"><input type="checkbox" id="number-27"><label for="number-27">27</label></div>
<div class="number-box"><input type="checkbox" id="number-28"><label for="number-28">28</label></div>
<div class="number-box"><input type="checkbox" id="number-29"><label for="number-29">29</label></div>
<div class="number-box"><input type="checkbox" id="number-30"><label for="number-30">30</label></div>
<div class="number-box"><input type="checkbox" id="number-31"><label for="number-31">31</label></div>
<div class="number-box"><input type="checkbox" id="number-32"><label for="number-32">32</label></div>
<div class="number-box"><input type="checkbox" id="number-33"><label for="number-33">33</label></div>
<div class="number-box"><input type="checkbox" id="number-34"><label for="number-34">34</label></div>
<div class="number-box"><input type="checkbox" id="number-35"><label for="number-35">35</label></div>
<div class="number-box"><input type="checkbox" id="number-36"><label for="number-36">36</label></div>
<div class="number-box"><input type="checkbox" id="number-37"><label for="number-37">37</label></div>
<div class="number-box"><input type="checkbox" id="number-38"><label for="number-38">38</label></div>
<div class="number-box"><input type="checkbox" id="number-39"><label for="number-39">39</label></div>
<div class="number-box"><input type="checkbox" id="number-40"><label for="number-40">40</label></div>
<div class="number-box"><input type="checkbox" id="number-41"><label for="number-41">41</label></div>
<div class="number-box"><input type="checkbox" id="number-42"><label for="number-42">42</label></div>
<div class="number-box"><input type="checkbox" id="number-43"><label for="number-43">43</label></div>
<div class="number-box"><input type="checkbox" id="number-44"><label for="number-44">44</label></div>
<div class="number-box"><input type="checkbox" id="number-45"><label for="number-45">45</label></div>
<div class="number-box"><input type="checkbox" id="number-46"><label for="number-46">46</label></div>
<div class="number-box"><input type="checkbox" id="number-47"><label for="number-47">47</label></div>
<div class="number-box"><input type="checkbox" id="number-48"><label for="number-48">48</label></div>
<div class="number-box"><input type="checkbox" id="number-49"><label for="number-49">49</label></div>
<div class="number-box"><input type="checkbox" id="number-50"><label for="number-50">50</label></div>
</div>
</div>
</div>
</div>
</div>
<div class="col-xl-5">
<!-- Card stats -->
<div class="row">
<div class="col-md-6">
<div class="card card-stats">
<!-- Card body -->
<div class="card-body">
<div class="row">
<div class="col">
<h5 class="card-title text-uppercase text-muted mb-0">Next No.</h5>
<span class="h2 font-weight-bold mb-0 next-number-js">--</span>
</div>
<div class="col-auto">
<div class="icon icon-shape bg-gradient-red text-white rounded-circle shadow">
<i class="ni ni-active-40"></i>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-6">
<div class="card card-stats">
<!-- Card body -->
<div class="card-body">
<div class="row">
<div class="col">
<h5 class="card-title text-uppercase text-muted mb-0">Numbers Checked</h5>
<span class="h2 font-weight-bold mb-0 count"></span>
</div>
<div class="col-auto">
<div class="icon icon-shape bg-gradient-orange text-white rounded-circle shadow">
<i class="ni ni-chart-pie-35"></i>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- End Card Stats-->
<div class="card">
<div class="card-header border-0">
<div class="row align-items-center">
<div class="col">
<h3 class="mb-0"><i class="ni ni-trophy"></i> Prizes</h3>
</div>
</div>
</div>
<div class="table-responsive">
<!-- Projects table -->
<table class="table align-items-center table-flush">
<thead class="thead-light">
<tr>
<th scope="col">Prize</th>
<th scope="col">Amount</th>
<th scope="col">Winner</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Quick 5</th>
<td>10</td>
<td><span contenteditable="true">-</span></td>
</tr>
<tr>
<th scope="row">Top Square</th>
<td>10</td>
<td><span contenteditable="true">-</span></td>
</tr>
<tr>
<th scope="row">Middle square</th>
<td>10</td>
<td><span contenteditable="true">-</span></td>
</tr>
<tr>
<th scope="row">Diagonal 1</th>
<td>10</td>
<td><span contenteditable="true">-</span></td>
</tr>
<tr>
<th scope="row">Diagonal 2</th>
<td>10</td>
<td><span contenteditable="true">-</span></td>
</tr>
<tr>
<th scope="row">Full Housie 1</th>
<td>10</td>
<td><span contenteditable="true">-</span></td>
</tr>
<tr>
<th scope="row">Full Housie 2</th>
<td>10</td>
<td><span contenteditable="true">-</span></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- Footer -->
</div>
</div>
<!-- Argon Scripts -->
<!-- Core -->
<script src="assets/vendor/jquery/dist/jquery.min.js"></script>
<script src="assets/vendor/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
<script src="assets/vendor/js-cookie/js.cookie.js"></script>
<script src="assets/vendor/jquery.scrollbar/jquery.scrollbar.min.js"></script>
<script src="assets/vendor/jquery-scroll-lock/dist/jquery-scrollLock.min.js"></script>
<!-- Optional JS -->
<script src="assets/vendor/chart.js/dist/Chart.min.js"></script>
<script src="assets/vendor/chart.js/dist/Chart.extension.js"></script>
<!-- Argon JS -->
<script src="assets/js/argon.js?v=1.2.0"></script>
<script>
var numbers_array = Array();
var number = Math.floor(Math.random() * 100) + 1;
$('.next-number-btn').on('click',function(){
nextNumber();
})
function nextNumber(){
var number = Math.floor(Math.random() * 100) + 1;
return checkReset(number);
}
function checkReset(number){
// If the checkbox is checked, display the output text
var checkBox = document.getElementById("number-"+number);
// debugger;
if (checkBox.checked == true){
var number = Math.floor(Math.random() * 100) + 1;
return checkReset(number);
} else {
numbers_array.push(number);
$('.next-number-js').html(number);
$('#number-'+number).prop("checked", true);
return true;
}
}
$(document).keypress(function(event){
var keycode = (event.keyCode ? event.keyCode : event.which);
console.log(keycode);
if(keycode == '49'){
$("#modal-notification").modal();
nextNumber();
}
if(keycode == '50'){
$('#modal-notification').modal('hide');
}
});
</script>
</body>
</html>