From ac914530131a60d0d6a47dec6b9591989c0d6c3d Mon Sep 17 00:00:00 2001 From: adrien Date: Thu, 30 Mar 2023 21:26:14 +0200 Subject: [PATCH] table-success --- css/style.css | 1 + js/sudoku.js | 1 + sudoku.php | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/css/style.css b/css/style.css index 8535c0a..16f9b1c 100644 --- a/css/style.css +++ b/css/style.css @@ -31,6 +31,7 @@ table input { table td.table-primary input, table td.table-active input, +table.table-success input, table input:not([disabled]) { background: transparent !important; } diff --git a/js/sudoku.js b/js/sudoku.js index 280a086..e437aaa 100755 --- a/js/sudoku.js +++ b/js/sudoku.js @@ -206,6 +206,7 @@ function checkBox(box) { if (box.form.checkValidity()) { // Correct grid if (boxes.filter(box => box.value == "").length == 0) { + grid.classList.add("table-success") saveButton.disabled = true setTimeout(() => { if (confirm(`Bravo ! Vous avez résolu la grille. En voulez-vous une autre ?`)) diff --git a/sudoku.php b/sudoku.php index e1f8773..0df87bf 100755 --- a/sudoku.php +++ b/sudoku.php @@ -35,7 +35,7 @@