5 lines
127 B
JavaScript

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