More layout fiddling...
This commit is contained in:
@@ -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');
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user