v1 du site #12

Merged
mbess merged 25 commits from develop into master 2024-03-16 09:23:26 +00:00
Showing only changes of commit 388c4ed11e - Show all commits

View file

@ -46,16 +46,16 @@
const nav_button = document.getElementById("navi-toggle")
nav_button.addEventListener("change", event => {
if (event.target.checked) {
/*
document.documentElement.style.overflow = "hidden";
document.body.style.overflow = "hidden";
*/
}
if (!event.target.checked) {
/*
document.documentElement.style.overflow = "initial";
document.body.style.overflow = "initial";
*/
setTimeout(() => {
document.documentElement.style.overflow = "hidden";
document.body.style.overflow = "hidden";
}, 800)
setTimeout(() => {
document.documentElement.style.overflow = "initial";
document.body.style.overflow = "initial";
}, 810)
}
})
</script>