kspace-bludit-theme/js/mobile-sidebar.js
Kazhnuz 0723137efd
All checks were successful
continuous-integration/drone/push Build is passing
fix: re-add js for mobile-sidebar
2024-06-10 21:52:51 +02:00

10 lines
No EOL
358 B
JavaScript

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');
}
});