52dc0b9c5c
Fixes #30 Fixes #35 Fixes #36 Fixes #38 Fixes #40 Fixes #43 Fixes #44 Fixes #46 Fixes #47 Fixes #49 Fixes #51 Fixes #53
10 lines
No EOL
358 B
JavaScript
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');
|
|
}
|
|
}); |