diff --git a/index.html b/index.html
index 6e42cf5..ef597bb 100644
--- a/index.html
+++ b/index.html
@@ -104,6 +104,7 @@ body > main {
const bouton_fermer = document.getElementById('bouton_fermer');
const bouton_annuler = document.getElementById('bouton_annuler');
const bouton_ok = document.getElementById('bouton_ok');
+ const footer = document.querySelector('footer');
const langue = "fr-FR";
let voix = null;
@@ -206,6 +207,14 @@ body > main {
question.focus()
}, t);
})
+
+ function onResize() {
+ footer.style.setProperty("bottom", `${window.innerHeight - window.visualViewport.height}px`);
+ }
+ window.visualViewport?.addEventListener('resize', onResize);
+ window.addEventListener('resize', onResize);
+ onResize();
+