From 159432b7a18a9b66737193b71ec466ff04e8e2e8 Mon Sep 17 00:00:00 2001 From: adrien Date: Mon, 19 Jan 2026 20:33:04 +0100 Subject: [PATCH] encore le clavier --- index.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.html b/index.html index 48e0c34..c2b5735 100644 --- a/index.html +++ b/index.html @@ -159,6 +159,7 @@ question.onkeydown = function(e) { }; question.onfocus = function() { + window.onresize; question.scrollIntoView({ block: 'end', behavior: 'auto' }); }; @@ -205,7 +206,6 @@ formulaire.addEventListener('submit', async (e) => { paragraphe.innerHTML += lettre; } paragraphe.scrollIntoView({ block: 'end', behavior: 'auto' }); - question.onfocus(); }, t += 100 * Math.random()); }); setTimeout(() => { @@ -213,7 +213,6 @@ formulaire.addEventListener('submit', async (e) => { paragraphe.classList.add('reponse'); paragraphe.innerHTML = 'Voulez-vous que je réponde à une autre question ?'; conversation.appendChild(paragraphe); - paragraphe.scrollIntoView({ block: 'end', behavior: 'auto' }); bouton_envoyer.disabled = false; bouton_envoyer.setAttribute("aria-busy", false); bouton_envoyer.innerHTML = bouton_envoyer_innerHTML;