thumbnail

This commit is contained in:
2024-04-25 02:40:33 +02:00
parent 479b632989
commit 4f7abafe8f
4 changed files with 15 additions and 5 deletions

View File

@@ -4,7 +4,8 @@ var motATrouver
var lettresTrouvees
var nbLettres
function nouvellePartie() {
motATrouver = motsATrouver[Math.floor(motsATrouver.length * Math.random())].normalize("NFD").replace(/\p{Diacritic}/gu, "")
motATrouver = motsATrouver[Math.floor(motsATrouver.length * Math.pow(Math.random(), 1.5))]
motATrouver = motATrouver.normalize("NFD").replace(/\p{Diacritic}/gu, "")
motATrouver = Array.from(motATrouver)
nbLettres = motATrouver.length
@@ -34,6 +35,7 @@ function nouvelEssai() {
input.maxLength = 1
input.size = 1
input.pattern = "[a-z]"
input.placeholder = "."
input.onfocus = onfocus
input.onkeydown = onkeydown
input.oninput = oninput