More layout fiddling...

This commit is contained in:
2024-10-28 16:44:08 +01:00
parent da27b36eb4
commit cdcb425839
6 changed files with 249 additions and 55 deletions

View File

@@ -44,6 +44,8 @@ if (location.pathname.includes('login')) {
if (! location.pathname.includes('login')) {
const vocabs = document.querySelector('#vocabs');
const userMenu = document.querySelector('.dropdown-trigger');
document.querySelector('#for-vocabs').addEventListener('click', function () {
vocabs.classList.toggle('is-hidden');
@@ -55,4 +57,8 @@ if (! location.pathname.includes('login')) {
this.firstElementChild.classList.add('fa-angle-right');
}
});
userMenu.addEventListener('click', function () {
document.querySelector('.dropdown').classList.toggle('is-active');
});
}