encore le clavier

This commit is contained in:
2026-01-19 20:33:04 +01:00
parent 81519b1de3
commit 159432b7a1

View File

@@ -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;