kspace-bludit-theme/js/mobile-sidebar.js

10 lines
358 B
JavaScript
Raw Normal View History

2024-06-10 21:52:51 +02:00
document.getElementById('mobile-button').addEventListener('click', function () {
const sidebar = document.getElementById('mobile-sidebar');
if (sidebar.classList.contains('hidden')) {
sidebar.classList.remove('hidden');
sidebar.classList.add('shown');
} else {
sidebar.classList.remove('shown');
sidebar.classList.add('hidden');
}
});