science-ation/theme/new_default/theme-script.js

5 lines
127 B
JavaScript

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