function closeNav() {
    document.getElementById("sidebar").style.width = "0";
    var elements = new Set([
        ...document.getElementsByClassName("content"),
        ...document.getElementsByClassName("wide-content")
    ]);
    elements.forEach(function(value){
        value.style.marginLeft = "0"
    });
    var smallnav = document.getElementById("smallnav");
    smallnav.style.display = "block";
    var page = document.getElementById("page-container");
    page.style.paddingTop = "75px";
}
/* Set the width of the sidebar to 0 and the left margin of the page content to 0 */
Set the width of the sidebar to 0 and the left margin of the page content to 0
Set the width of the sidebar to 0 and the left margin of the page content to 0
function closeNav() {
    document.getElementById("sidebar").style.width = "0";
    var elements = new Set([
        ...document.getElementsByClassName("content"),
        ...document.getElementsByClassName("wide-content")
    ]);
    elements.forEach(function(value){
        value.style.marginLeft = "0"
    });
    var smallnav = document.getElementById("smallnav");
    smallnav.style.display = "block";
    var page = document.getElementById("page-container");
    page.style.paddingTop = "75px";
}
function closeNav ( ) { document . getElementById ( "sidebar" ) . style . width = "0" ; var elements = new Set ( [ ... document . getElementsByClassName ( "content" ) , ... document . getElementsByClassName ( "wide-content" ) ] ) ; elements . forEach ( function ( value ) { value . style . marginLeft = "0" } ) ; var smallnav = document . getElementById ( "smallnav" ) ; smallnav . style . display = "block" ; var page = document . getElementById ( "page-container" ) ; page . style . paddingTop = "75px" ; }
Set the width of the sidebar to 0 and the left margin of the page content to 0
Set the width of the sidebar to 0 and the left margin of the page content to 0