styler le bouton comme un lien

This commit is contained in:
2025-04-24 21:00:33 +02:00
parent d1d189a0db
commit 2aba951d3b
3 changed files with 84 additions and 60 deletions

View File

@ -40,7 +40,7 @@ inputs.forEach(input => {
if (!input.checkValidity()) {
input.value = '';
}
if (grilleForm.checkValidity()) {
if (inputs.every(input => input.value.length == 1) && grilleForm.checkValidity()) {
sha256(inputs.map(input => input.value).join('')).then(hash => {
if (hash == solution_hashee.value) {
if (confirm('Bravo ! \nUne nouvelle partie ?')) {