-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
266 lines (207 loc) · 7.33 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
<html lang="en">
<script src="https://cdn.jsdelivr.net/npm/lodash@4.17.11/lodash.min.js"></script>
<script src="https://kit.fontawesome.com/5a7c2184a6.js"></script>
<script src="script.js"></script>
<style>
table {
border: 3px solid #344861;
border-collapse: collapse;
}
td {
height: 50px;
width: 60px;
background-color: white;
border: 1px solid #bec6d4;
text-align: center;
font-family: Courier New, sans-serif;
font-size: 35px;
color: #344861;
}
.border-bottom td {
border-bottom: 2px solid #344861;
}
.column3, .column6 {
border-right: 2px solid #344861;
}
.container {
display: flex;
}
.numbers {
margin-top: 10px;
font-family: Courier New, sans-serif;
font-size: 40px;
font-weight: bold;
color: #007bff;
}
.numbers div {
margin-right: 20px;
margin-left: 20px;
cursor: pointer;
}
.error {
background-color: #f7cfd6;
color: red;
}
.cell {
cursor: pointer;
}
.blocked {
font-weight: bolder;
}
.selected {
background-color: #bbdefb
}
.btn {
display: flex;
flex-direction: column;
cursor: pointer;
align-items: center;
}
.options {
margin-top: 10px;
margin-left: 25px;
font-family: Monospaced, monospace;
color: #344861;
}
</style>
<head>
<meta charset="UTF-8">
<title>Sudoku</title>
</head>
<body>
<div class="container">
<table id="sudoku-board">
<tr>
<td class="block0"></td>
<td class="block0"></td>
<td class="column3 block0"></td>
<td class="block1"></td>
<td class="block1"></td>
<td class="column6 block1"></td>
<td class="block2"></td>
<td class="block2"></td>
<td class="block2"></td>
</tr>
<tr>
<td class="block0"></td>
<td class="block0"></td>
<td class="column3 block0"></td>
<td class="block1"></td>
<td class="block1"></td>
<td class="column6 block1"></td>
<td class="block2"></td>
<td class="block2"></td>
<td class="block2"></td>
</tr>
<tr class="border-bottom">
<td class="block0"></td>
<td class="block0"></td>
<td class="column3 block0"></td>
<td class="block1"></td>
<td class="block1"></td>
<td class="column6 block1"></td>
<td class="block2"></td>
<td class="block2"></td>
<td class="block2"></td>
</tr>
<tr>
<td class="block3"></td>
<td class="block3"></td>
<td class="column3 block3"></td>
<td class="block4"></td>
<td class="block4"></td>
<td class="column6 block4"></td>
<td class="block5"></td>
<td class="block5"></td>
<td class="block5"></td>
</tr>
<tr>
<td class="block3"></td>
<td class="block3"></td>
<td class="column3 block3"></td>
<td class="block4"></td>
<td class="block4"></td>
<td class="column6 block4"></td>
<td class="block5"></td>
<td class="block5"></td>
<td class="block5"></td>
</tr>
<tr class="border-bottom">
<td class="block3"></td>
<td class="block3"></td>
<td class="column3 block3"></td>
<td class="block4"></td>
<td class="block4"></td>
<td class="column6 block4"></td>
<td class="block5"></td>
<td class="block5"></td>
<td class="block5"></td>
</tr>
<tr>
<td class="block6"></td>
<td class="block6"></td>
<td class='column3 block6'></td>
<td class="block7"></td>
<td class="block7"></td>
<td class="column6 block7"></td>
<td class="block8"></td>
<td class="block8"></td>
<td class="block8"></td>
</tr>
<tr>
<td class="block6"></td>
<td class="block6"></td>
<td class='column3 block6'></td>
<td class="block7"></td>
<td class="block7"></td>
<td class="column6 block7"></td>
<td class="block8"></td>
<td class="block8"></td>
<td class="block8"></td>
</tr>
<tr>
<td class="block6"></td>
<td class="block6"></td>
<td class='column3 block6'></td>
<td class="block7"></td>
<td class="block7"></td>
<td class="column6 block7"></td>
<td class="block8"></td>
<td class="block8"></td>
<td class="block8"></td>
</tr>
</table>
</div>
</body>
<div class="container options">
<div id="btn-delete" class="btn">
<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="eraser" role="img"
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
<path fill="currentColor"
d="M497.941 273.941c18.745-18.745 18.745-49.137 0-67.882l-160-160c-18.745-18.745-49.136-18.746-67.883 0l-256 256c-18.745 18.745-18.745 49.137 0 67.882l96 96A48.004 48.004 0 0 0 144 480h356c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12H355.883l142.058-142.059zm-302.627-62.627l137.373 137.373L265.373 416H150.628l-80-80 124.686-124.686z"
class=""></path>
</svg>
<b>Apagar</b>
</div>
<div id="btn-reset" class="btn" style="margin-left: 25px">
<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="sync-alt" role="img"
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="height: 53px;">
<path fill="currentColor"
d="M370.72 133.28C339.458 104.008 298.888 87.962 255.848 88c-77.458.068-144.328 53.178-162.791 126.85-1.344 5.363-6.122 9.15-11.651 9.15H24.103c-7.498 0-13.194-6.807-11.807-14.176C33.933 94.924 134.813 8 256 8c66.448 0 126.791 26.136 171.315 68.685L463.03 40.97C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.749zM32 296h134.059c21.382 0 32.09 25.851 16.971 40.971l-41.75 41.75c31.262 29.273 71.835 45.319 114.876 45.28 77.418-.07 144.315-53.144 162.787-126.849 1.344-5.363 6.122-9.15 11.651-9.15h57.304c7.498 0 13.194 6.807 11.807 14.176C478.067 417.076 377.187 504 256 504c-66.448 0-126.791-26.136-171.315-68.685L48.97 471.03C33.851 486.149 8 475.441 8 454.059V320c0-13.255 10.745-24 24-24z"
class=""></path>
</svg>
<b>Recarregar</b>
</div>
</div>
<div class="container numbers">
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
<div>5</div>
<div>6</div>
<div>7</div>
<div>8</div>
<div>9</div>
</div>
</html>