lestoitsduval/assets/js/main.js

11 lines
282 B
JavaScript
Raw Normal View History

2020-05-22 11:13:09 +02:00
function toggleCheckbox(element)
{
if (element.checked) {
document.getElementsByTagName("body")[0].style.overflow = "hidden"
} else {
document.getElementsByTagName("body")[0].style.overflow = "auto"
}
}
toggleCheckbox(document.getElementById("menu_checkbox"))