fix: update frontend styles and scripts

This commit is contained in:
2026-08-19 08:24:36 +03:30
parent de190fb550
commit 771d4d4b00
2 changed files with 496 additions and 4 deletions
+28
View File
@@ -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';
}
});
});