encore le clavier
This commit is contained in:
@@ -159,6 +159,7 @@ question.onkeydown = function(e) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
question.onfocus = function() {
|
question.onfocus = function() {
|
||||||
|
window.onresize;
|
||||||
question.scrollIntoView({ block: 'end', behavior: 'auto' });
|
question.scrollIntoView({ block: 'end', behavior: 'auto' });
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -205,7 +206,6 @@ formulaire.addEventListener('submit', async (e) => {
|
|||||||
paragraphe.innerHTML += lettre;
|
paragraphe.innerHTML += lettre;
|
||||||
}
|
}
|
||||||
paragraphe.scrollIntoView({ block: 'end', behavior: 'auto' });
|
paragraphe.scrollIntoView({ block: 'end', behavior: 'auto' });
|
||||||
question.onfocus();
|
|
||||||
}, t += 100 * Math.random());
|
}, t += 100 * Math.random());
|
||||||
});
|
});
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
@@ -213,7 +213,6 @@ formulaire.addEventListener('submit', async (e) => {
|
|||||||
paragraphe.classList.add('reponse');
|
paragraphe.classList.add('reponse');
|
||||||
paragraphe.innerHTML = 'Voulez-vous que je réponde à une autre question ?';
|
paragraphe.innerHTML = 'Voulez-vous que je réponde à une autre question ?';
|
||||||
conversation.appendChild(paragraphe);
|
conversation.appendChild(paragraphe);
|
||||||
paragraphe.scrollIntoView({ block: 'end', behavior: 'auto' });
|
|
||||||
bouton_envoyer.disabled = false;
|
bouton_envoyer.disabled = false;
|
||||||
bouton_envoyer.setAttribute("aria-busy", false);
|
bouton_envoyer.setAttribute("aria-busy", false);
|
||||||
bouton_envoyer.innerHTML = bouton_envoyer_innerHTML;
|
bouton_envoyer.innerHTML = bouton_envoyer_innerHTML;
|
||||||
|
|||||||
Reference in New Issue
Block a user