Messing with voters
This commit is contained in:
@@ -47,17 +47,21 @@ if (! location.pathname.includes('login')) {
|
||||
const userMenu = document.querySelector('.dropdown-trigger');
|
||||
const userCaret = document.querySelector('#user-caret');
|
||||
|
||||
document.querySelector('#for-vocabs').addEventListener('click', function () {
|
||||
vocabs.classList.toggle('is-hidden');
|
||||
const forVocabs = document.querySelector('#for-vocabs')
|
||||
|
||||
if (forVocabs) {
|
||||
forVocabs.addEventListener('click', function () {
|
||||
vocabs.classList.toggle('is-hidden');
|
||||
|
||||
if (this.firstElementChild.classList.contains('fa-angle-right')) {
|
||||
this.firstElementChild.classList.remove('fa-angle-right');
|
||||
this.firstElementChild.classList.add('fa-angle-down');
|
||||
} else {
|
||||
this.firstElementChild.classList.remove('fa-angle-down');
|
||||
this.firstElementChild.classList.add('fa-angle-right');
|
||||
}
|
||||
});
|
||||
if (this.firstElementChild.classList.contains('fa-angle-right')) {
|
||||
this.firstElementChild.classList.remove('fa-angle-right');
|
||||
this.firstElementChild.classList.add('fa-angle-down');
|
||||
} else {
|
||||
this.firstElementChild.classList.remove('fa-angle-down');
|
||||
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