diff --git a/script.js b/script.js index 75736a9..8f1ab93 100644 --- a/script.js +++ b/script.js @@ -8,7 +8,7 @@ var nbLettres var nbEssais function nouvellePartie() { nbEssais = 0 - motATrouver = motsATrouver[Math.floor(motsATrouver.length * Math.pow(Math.random(), 1.5))] + motATrouver = motsATrouver[Math.floor(motsATrouver.length * Math.pow(Math.random(), 1.8))] motATrouver = motATrouver.normalize("NFD").replace(/\p{Diacritic}/gu, "") listeATrouver = Array.from(motATrouver) nbLettres = listeATrouver.length @@ -142,7 +142,7 @@ function onsubmit(event) { } } -var volumeOn +var volumeOn = this.checked volumeCheckbox.oninput = function(event) { volumeOn = this.checked } diff --git a/style.css b/style.css index f252dd9..4c99c76 100644 --- a/style.css +++ b/style.css @@ -29,7 +29,7 @@ h1 img { padding: 0.15em; text-align: center; border-radius: 0.3rem; - vertical-align: center; + vertical-align: text-top; } .lettre-bien-placee {