From 606a42c36148b07d2e91c2107d3f02d31273e876 Mon Sep 17 00:00:00 2001 From: Madeorsk Date: Sat, 7 Sep 2024 15:28:09 +0200 Subject: [PATCH] =?UTF-8?q?Meilleure=20initialisation=20de=20l'art=20num?= =?UTF-8?q?=C3=A9rique.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/website.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/website.ts b/src/website.ts index 11f3149..c8b08b4 100644 --- a/src/website.ts +++ b/src/website.ts @@ -61,7 +61,9 @@ function fakeArt(element: Element): void { // On ajoute 150 caractères animés. [...Array(150)].forEach(() => { - element.appendChild(spawnChar()); + window.setTimeout(() => { + element.appendChild(spawnChar()); + }, (500 + Math.round(Math.random() * 1000))); }); }