fix: update frontend styles and scripts
This commit is contained in:
@@ -359,3 +359,31 @@ $('.mobile-picker').each(function(i, item){
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
|
||||
const menuButton = document.querySelector('.mobile-menu-toggle');
|
||||
const mobileNavigation = document.querySelector('.mobile-navigation');
|
||||
|
||||
if (!menuButton || !mobileNavigation) {
|
||||
return;
|
||||
}
|
||||
|
||||
menuButton.addEventListener('click', function () {
|
||||
|
||||
const isOpen = mobileNavigation.style.display === 'block';
|
||||
|
||||
mobileNavigation.style.display = isOpen ? 'none' : 'block';
|
||||
|
||||
const icon = menuButton.querySelector('i');
|
||||
|
||||
if (icon) {
|
||||
icon.className = isOpen
|
||||
? 'fa fa-bars'
|
||||
: 'fa fa-times';
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user