From f747bdb6f87f6a0ee72b0982cac8da61fa19efb2 Mon Sep 17 00:00:00 2001 From: serguei Date: Fri, 5 Dec 2025 03:29:44 +0000 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'flask=5Fbase/templ?= =?UTF-8?q?ates/pokemon.html'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flask_base/templates/pokemon.html | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/flask_base/templates/pokemon.html b/flask_base/templates/pokemon.html index 7e707dc..eabc5a5 100644 --- a/flask_base/templates/pokemon.html +++ b/flask_base/templates/pokemon.html @@ -5,6 +5,22 @@ Jeu Pokémon + @@ -28,7 +44,7 @@
-

Combat Pokémon-like (simple)

+

Proprimon

Score: 0
@@ -123,7 +139,12 @@ } function addLog(text) { - log.textContent = log.textContent + '\n' + text; + const entry = document.createElement("div"); + entry.textContent = text; + log.appendChild(entry); + + // Scroll automatique vers le bas + log.scrollTop = log.scrollHeight; } const attacksDiv = document.getElementById("attacksDiv"); @@ -171,7 +192,7 @@ addRandomItemToInventory(); score += 1; setCombat(); - addLog("Un nouvel ennemi sauvage apparaît !\n"); + addLog("\nUn nouvel ennemi sauvage apparaît !"); return; }