html
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
<!DOCTYPE html>
<html>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--
<meta name="viewport" content="width=device-width, initial-scale=1">
-->
<head>
<title>Page Title</title>
</head>
<body>
<center>
<h2 class="centered">
Sudoku Solver
</h2>
<div id="options">
<button id="lsb">Load / Save</button>
<button onclick="clearAll(0)">Clear All</button>
<button id="reset">Reset</button>
</div>
<div id="s">
<!-- SudoKo Table -->
Enter to Rename, Shift+Enter to Preview
css
css
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
body {
background: linear-gradient(90deg, skyBlue, white , skyblue);
}
h2
{
background-color: purple;
height:50px;
width: auto;
border-radius: 5px;
color: white;
margin-top: 0px;
transition: 1s;
}
.centered
{
display: flex;
flex-direction: column;
justify-content: center;
text-align: center;
}
td
{
height: 20px;
width: 20px;
border: 1px solid black;
Enter to Rename, Shift+Enter to Preview
js
js
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
const trim = (obj) =>
{
let temp = {}
for(let i in obj)
{
if(obj[i])
temp[i] = obj[i];
}
return temp;
}
const gncs = (callBack) => {
//gncs = get new cell load string
sMap = {}
for(let i=1; i<=9;i++)
{
for(let j=1; j <= 9; j++)
{
let tempId = rc2id(i, j);
let nc = se("i", tempId );
if(!nc.textContent)
continue;
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run