From ddcabbdd3930dd2495d7a2d7104edbb9e203ffc4 Mon Sep 17 00:00:00 2001 From: adrien Date: Thu, 2 Nov 2023 08:40:13 +0100 Subject: [PATCH] html format --- head.php | 67 ++++++++++++++++++++++----------------------- js/sudoku.js | 4 +-- sudoku.php | 77 +++++++++++++++++----------------------------------- 3 files changed, 60 insertions(+), 88 deletions(-) diff --git a/head.php b/head.php index 2c693eb..c305437 100644 --- a/head.php +++ b/head.php @@ -1,35 +1,34 @@ - -Sudoku - + + Sudoku + - - - - - - - - - - - - - - - - - - - - - -" /> -/thumbnail.php?size=200&grid=" /> - - - - -" /> \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + " /> + /thumbnail.php?size=200&grid=" /> + + + + + " /> diff --git a/js/sudoku.js b/js/sudoku.js index 848e33a..809ba1d 100755 --- a/js/sudoku.js +++ b/js/sudoku.js @@ -295,12 +295,12 @@ function onmouseenter(event) { box.neighbourhood.forEach(neighbour => { if (valueToInsert && neighbour.value == valueToInsert) { - for (neighbour of[box, neighbour]) { + for (neighbour of [box, neighbour]) { neighbour.parentElement.classList.add("table-danger") } } }) -} + } } function onmouseleave(event) { diff --git a/sudoku.php b/sudoku.php index 2aef0e3..fe82616 100755 --- a/sudoku.php +++ b/sudoku.php @@ -2,7 +2,7 @@ - + @@ -12,69 +12,48 @@
- + - + - +
- +
- + - +
- - - - + + + +
- - - - + - - @@ -82,32 +61,26 @@
- - - +\n"; + echo " \n"; } ?>
-
- ⚠️ $warning ⚠️
\n"); + echo("⚠️ $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.\n") -?> -
+ 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.") +?>