-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
98 lines (95 loc) · 3.16 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
<!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" />
<link
rel="stylesheet"
href="https://unpkg.com/modern-css-reset/dist/reset.min.css"
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Convergence&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Seaweed+Script&family=Source+Code+Pro:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="output/style.css" />
<title>Play Sudoku</title>
</head>
<body>
<script type="module" src="output/index.js"></script>
<header>
<h1>Play Sudoku</h1>
</header>
<ul id="template-big-square"></ul>
<li id="template-square">
<div class="pencilmarks">
<sub class="hidden">1</sub>
<sub class="hidden">2</sub>
<sub class="hidden">3</sub>
<sub class="hidden">4</sub>
<sub class="hidden">5</sub>
<sub class="hidden">6</sub>
<sub class="hidden">7</sub>
<sub class="hidden">8</sub>
<sub class="hidden">9</sub>
</div>
<strong class="hidden"></strong>
</li>
<section class="flex-row">
<div class="card flex-col">
<h2>Instructions</h2>
<hr />
<p>
Fill in blank squares with the numbers 1 through 9 until all squares
are filled and the following rules are met:
</p>
<ol>
<li>Each <em>row</em> only contains one of each number.</li>
<li>Each <em>column</em> only contains one of each number.</li>
<li>
Each <em>three-by-three square</em> only contains one of each
number.
</li>
</ol>
<p>
Select a square using the mouse or arrow keys. Enter or delete numbers
in squares using your keyboard. Hold Ctrl while entering a number to
add it as a pencilmark.
<strong>Have fun!</strong>
</p>
</div>
<div id="sudoku"></div>
<div class="card flex-col">
<h2>Generate Sudoku</h2>
<hr />
<ol>
<li>Easy — 62</li>
<li>Medium — 53</li>
<li>Hard — 44</li>
<li>Very-Hard — 35</li>
<li>Insane — 26</li>
<li>Inhuman — 17</li>
</ol>
<input
type="range"
name="difficulty"
id="difficulty-range"
min="17"
max="62"
value="62"
/>
<label for="difficulty">
Given Squares:
<strong><output id="difficulty-output"></output></strong>
</label>
<button id="generate-btn">Generate New Sudoku</button>
<sub>Note: Puzzles may or may not have unique solutions</sub>
</div>
</section>
<!-- <footer>
<a>Back to Home</a>
</footer> -->
</body>
</html>