function toggle_sidebar(){ var sidebar = document.querySelector('#sidebar'); sidebar.classList.toggle('active'); }