Commit 9ee83b6c authored by pet's avatar pet

Desabilitando scroll do body quando o menu é ativado

parent 39acf3d4
......@@ -443,18 +443,22 @@ ______________________________________PATROCINIO AQUI__________________________
if(menuAberto){
var e = document.getElementById('navbar');
e.style.display="none";
document.getElementsByTagName("body")[0].style.overflow="auto";
}
}
function open_menu(){
var e = document.getElementById('navbar');
if(e.style.display != "inline"){
e.style.display="inline";
document.getElementsByTagName("body")[0].style.overflow="hidden";
menuAberto = true;
}
else{
menuAberto = false;
e.style.display="none";
document.getElementsByTagName("body")[0].style.overflow="auto";
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment