9 lines
294 B
JavaScript
9 lines
294 B
JavaScript
function openNav() {
|
|
document.getElementById("mySidenav").style.width = "250px";
|
|
document.getElementById("main").style.marginLeft = "250px";
|
|
}
|
|
|
|
function closeNav() {
|
|
document.getElementById("mySidenav").style.width = "0";
|
|
document.getElementById("main").style.marginLeft= "0";
|
|
} |