web/static/javascript/toggleMenu.js
/* Set the width of the side navigation to 250px and the left margin of the page content to 250px */
Set the width of the side navigation to 250px and the left margin of the page content to 250px
Set the width of the side navigation to 250px and the left margin of the page content to 250px
function toggleMenu() {
    var nav = document.querySelector("nav");
    var main = document.querySelector("article");
    if (nav.style.width === "0px"){
        nav.style.width = "250px";
        main.style.marginLeft = "250px";
    } else {
        nav.style.width = "0px";
        main.style.marginLeft = "0px";
    }
}
function toggleMenu ( ) { var nav = document . querySelector ( "nav" ) ; var main = document . querySelector ( "article" ) ; if ( nav . style . width === "0px" ) { nav . style . width = "250px" ; main . style . marginLeft = "250px" ; } else { nav . style . width = "0px" ; main . style . marginLeft = "0px" ; } }
Set the width of the side navigation to 250px and the left margin of the page content to 250px
Set the width of the side navigation to 250px and the left margin of the page content to 250px