From e1fc9743728907298b18cbd04cead1d4fa7bc605 Mon Sep 17 00:00:00 2001 From: adrien Date: Tue, 5 Dec 2023 17:32:40 +0100 Subject: [PATCH] links on aside --- style.css | 9 ----- sudoku.js | 8 ++-- sudoku.php | 112 ++++++++++++++++++++++++++++------------------------- 3 files changed, 64 insertions(+), 65 deletions(-) diff --git a/style.css b/style.css index 7acaff3..0247be7 100644 --- a/style.css +++ b/style.css @@ -1,8 +1,3 @@ -body { - width: min-content; - margin: auto; -} - input[type="number"]::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none !important; @@ -136,10 +131,6 @@ table input:enabled { cursor: inherit; } -.modal-content { - z-index: 1000; -} - .pencil { color: var(--bs-secondary-color) !important; } diff --git a/sudoku.js b/sudoku.js index 0d0fe11..a67261c 100755 --- a/sudoku.js +++ b/sudoku.js @@ -176,8 +176,6 @@ function oninput() { fixGridLink.href = "?" + boxes.map(box => box.value || UNKNOWN).join("") } saveGame() - restartLink.classList.remove("disabled") - undoButton.disabled = false } function checkBoxes() { @@ -280,6 +278,8 @@ function saveGame() { boxesValues: boxes.map(box => box.value), boxesPlaceholders: boxes.map(box => box.placeholder) }, "") + restartLink.classList.remove("disabled") + undoButton.disabled = false } function onmouseenter(event) { @@ -315,7 +315,7 @@ function insert(radio) { insert(0) } else { valueToInsert = radio.value - grid.style.cursor = valueToInsert ? "copy" : "text" + grid.style.cursor = valueToInsert ? "pointer" : "text" highlight() } } @@ -357,7 +357,7 @@ function oncontextmenu(event) { li.onclick = function(e) { contextMenu.style.display = "none" valueToInsert = e.target.innerText - grid.style.cursor = "copy" + grid.style.cursor = "pointer" document.getElementById("insertRadio" + valueToInsert).checked = true box.onclick() } diff --git a/sudoku.php b/sudoku.php index f8d0cc1..6b4b3f0 100755 --- a/sudoku.php +++ b/sudoku.php @@ -5,85 +5,93 @@ - -
-

Sudoku

-
-
-
- - - - - - -
- - -
- - - - -
- - - -
-
- - + + +
+
+
+
+
+ + + + + + +
+ + +
+ + + + +
+ + + +
+ +
+ - + - + - + - + - -
-
-
-
- + + + +
+
+ \n"; + echo " \n"; } ?> -
-
-
+
+
⚠️ $warning ⚠️
"); else echo("Remplissez la grille de sorte que chaque ligne, colonne et région (carré de 3×3 cases) contienne tous les chiffres de 1 à 9.") ?>
- - + + +
+