-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
351 lines (322 loc) · 17.9 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
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
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
<!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">
<title>SUDOKU</title>
<link rel="icon" href="icon.png">
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="build/app.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"
integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<link rel="stylesheet" href="styles.css">
<script src="https://kit.fontawesome.com/7c3398c69c.js" crossorigin="anonymous"></script>
<!-- <link rel="stylesheet" href="icons/all.css"> -->
</head>
<body>
<header class="">
<nav class="menu container-md navbar navbar-expand-md navbar-dark fixed-top">
<div class="col-5">
<h2>SUDOKU</h2>
</div>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse"
aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="col-6 ml-100 collapse navbar-collapse" id="navbarCollapse">
<div class="btn-group mr-sm-4 dif">
<button id="diff" type="button" class=" btn dropdown-toggle tnav" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">
DIFFICULTY
</button>
<div class="dropdown-menu">
<a class="dropdown-item" href="#"></a>
<button class="diff dropdown-item" value="easy">Easy </button>
<button class="diff dropdown-item" value="medium">Medium</button>
<div class="dropdown-divider"></div>
<button class="diff dropdown-item" value="hard">Hard</button>
</div>
</div>
<div class="btn-group mr-sm-4">
<button type="button" class=" btn dropdown-toggle tnav" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">
<span id="times">TIME</span>
</button>
<div class="dropdown-menu">
<a class="dropdown-item" href="#"></a>
<button class="timeSel dropdown-item" value="five">5 min</button>
<button class="timeSel dropdown-item" value="ten">10 min</button>
<button class="timeSel dropdown-item" value="twenty">20 min</button>
</div>
</div>
<div class="btn-group">
<button type="button" class="btn mr-0 sgen" id="gen">Generate Board</button>
</div>
</div>
</nav>
</header>
<main class="container-fluid d-flex mt-20 sud">
<div>
<div class="container-md mt-2 mb-3 inc">
<div class="row justify-center">
<div class="mr-6">DIFFICULTY : <span id="dif">EASY</span></div>
<div class="ml-6 inc">HINTS : <span id="hints">3</span> </div>
</div>
</div>
<div class="container-md mt-2 mb-3 imf">
<div class="row justify-center">
<div class="mr-8 incs" id="timer">10:00</div>
</div>
</div>
<table class="justify-center">
<tbody>
<tr>
<td>
<table>
<tbody>
<tr>
<td><button class="nums" id="0"></button></td>
<td><button class="nums" id="1"></button></td>
<td><button class="nums" id="2"></button></td>
</tr>
<tr>
<td><button class="nums" id="9"></button></td>
<td><button class="nums" id="10"></button></td>
<td><button class="nums" id="11"></button></td>
</tr>
<tr>
<td><button class="nums" id="18"></button></td>
<td><button class="nums" id="19"></button></td>
<td><button class="nums" id="20"></button></td>
</tr>
</tbody>
</table>
</td>
<td>
<table>
<tr>
<td><button class="nums" id="3"></button></td>
<td><button class="nums" id="4"></button></td>
<td><button class="nums" id="5"></button></td>
</tr>
<tr>
<td><button class="nums" id="12"></button></td>
<td><button class="nums" id="13"></button></td>
<td><button class="nums" id="14"></button></td>
</tr>
<tr>
<td><button class="nums" id="21"></button></td>
<td><button class="nums" id="22"></button></td>
<td><button class="nums" id="23"></button></td>
</tr>
</table>
</td>
<td>
<table>
<tr>
<td><button class="nums" id="6"></button></td>
<td><button class="nums" id="7"></button></td>
<td><button class="nums" id="8"></button></td>
</tr>
<tr>
<td><button class="nums" id="15"></button></td>
<td><button class="nums" id="16"></button></td>
<td><button class="nums" id="17"></button></td>
</tr>
<tr>
<td><button class="nums" id="24"></button></td>
<td><button class="nums" id="25"></button></td>
<td><button class="nums" id="26"></button></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table>
<tr>
<td><button class="nums" id="27"></button></td>
<td><button class="nums" id="28"></button></td>
<td><button class="nums" id="29"></button></td>
</tr>
<tr>
<td><button class="nums" id="36"></button></td>
<td><button class="nums" id="37"></button></td>
<td><button class="nums" id="38"></button></td>
</tr>
<tr>
<td><button class="nums" id="45"></button></td>
<td><button class="nums" id="46"></button></td>
<td><button class="nums" id="47"></button></td>
</tr>
</table>
</td>
<td>
<table>
<tr>
<td><button class="nums" id="30"></button></td>
<td><button class="nums" id="31"></button></td>
<td><button class="nums" id="32"></button></td>
</tr>
<tr>
<td><button class="nums" id="39"></button></td>
<td><button class="nums" id="40"></button></td>
<td><button class="nums" id="41"></button></td>
</tr>
<tr>
<td><button class="nums" id="48"></button></td>
<td><button class="nums" id="49"></button></td>
<td><button class="nums" id="50"></button></td>
</tr>
</table>
</td>
<td>
<table>
<tr>
<td><button class="nums" id="33"></button></td>
<td><button class="nums" id="34"></button></td>
<td><button class="nums" id="35"></button></td>
</tr>
<tr>
<td><button class="nums" id="42"></button></td>
<td><button class="nums" id="43"></button></td>
<td><button class="nums" id="44"></button></td>
</tr>
<tr>
<td><button class="nums" id="51"></button></td>
<td><button class="nums" id="52"></button></td>
<td><button class="nums" id="53"></button></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table>
<tr>
<td><button class="nums" id="54"></button></td>
<td><button class="nums" id="55"></button></td>
<td><button class="nums" id="56"></button></td>
</tr>
<tr>
<td><button class="nums" id="63"></button></td>
<td><button class="nums" id="64"></button></td>
<td><button class="nums" id="65"></button></td>
</tr>
<tr>
<td><button class="nums" id="72"></button></td>
<td><button class="nums" id="73"></button></td>
<td><button class="nums" id="74"></button></td>
</tr>
</table>
</td>
<td>
<table>
<tr>
<td><button class="nums" id="57"></button></td>
<td><button class="nums" id="58"></button></td>
<td><button class="nums" id="59"></button></td>
</tr>
<tr>
<td><button class="nums" id="66"></button></td>
<td><button class="nums" id="67"></button></td>
<td><button class="nums" id="68"></button></td>
</tr>
<tr>
<td><button class="nums" id="75"></button></td>
<td><button class="nums" id="76"></button></td>
<td><button class="nums" id="77"></button></td>
</tr>
</table>
</td>
<td>
<table>
<tr>
<td><button class="nums" id="60"></button></td>
<td><button class="nums" id="61"></button></td>
<td><button class="nums" id="62"></button></td>
</tr>
<tr>
<td><button class="nums" id="69"></button></td>
<td><button class="nums" id="70"></button></td>
<td><button class="nums" id="71"></button></td>
</tr>
<tr>
<td><button class="nums" id="78"></button></td>
<td><button class="nums" id="79"></button></td>
<td><button class="nums" id="80"></button></td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
<div id="buttons cont" class="row my-3">
<button class="btn input-button m-1 m-md-2" id="01">1</button>
<button class="btn input-button m-1 m-md-2" id="02">2</button>
<button class="btn input-button m-1 m-md-2" id="03">3</button>
<button class="btn input-button m-1 m-md-2" id="04">4</button>
<button class="btn input-button m-1 m-md-2" id="05">5</button>
<button class="btn input-button m-1 m-md-2" id="06">6</button>
<button class="btn input-button m-1 m-md-2" id="07">7</button>
<button class="btn input-button m-1 m-md-2" id="08">8</button>
<button class="btn input-button m-1 m-md-2" id="09">9</button>
<button class="btn input-button m-1 m-md-2" id="00">
<i class="far fa-trash-alt"></i>
</button>
</div>
<div class="container mt-3 mb-7">
<div class="row justify-center">
<div class="">
<button type="button" class="btn btn-lg btn-secondary mr-4" id="hintnum">HINT</button>
<button type="button" class="btn btn-lg strt ml-4" id="start">START</button>
</div>
</div>
</div>
</div>
</main>
<div class="container-lg mt-20 mb-10 inst">
<h2 id="inst">INSTRUCTIONS</h2>
<ol class="list-group list-group-numbered">
<li class="list-group-item">1. Each New Game may have multilple solutions, all of which are acceptable.</li>
<li class="list-group-item">2. You may use the SOLVE button only after Half the Selected Time is OVER.</li>
<li class="list-group-item">3. Make sure to click on Generate Board after making the selections, or to start A New Game. </li>
<li class="list-group-item">4. To Enter a number, Select the number from the options 1-9 given below the grid
and then click on the cell of the grid where you want it to go.
</li>
<li class="list-group-item">5. If you place a digit which already exists in the same row, column or sub-grid
then the cell will flash red while inserting.
</li>
</ol>
</div>
<div class="bg-dark mb-0" id="Sfoot">
<nav class="justify-content-center navbar navbar-expand-md navbar-dark text-center my-0 bottom container-fluid"
id="foot">
<div class="row text-center">
<div class="col-12 border-bottom">
<a class="navbar-brand not" href="#"><i class="fab fa-facebook"></i></a>
<a class="navbar-brand not" href="#"><i class="fab fa-instagram"></i></a>
<a class="navbar-brand" href="https://github.com/tiger-yash"><i class="fab fa-github"></i></a>
<a class="navbar-brand not" href="#"><i class="fab fa-linkedin-in"></i></a>
</div>
<h4 class="col-12 my-1">
<i class="fas fa-code"></i> with <i class="fas fa-heart"></i> by Yash Raj !!!
</h4>
</div>
</nav>
</div>
<script defer src="app.js"></script>
<!-- <script defer src="alt.js"></script> -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"
integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI"
crossorigin="anonymous"></script>
<!-- <script src="icons/all.js"></script> -->
</body>
</html>