Adding transparent click closes menu.

This commit is contained in:
Sergiotarxz 2023-09-28 18:08:58 +02:00
parent 942b9f4ca4
commit d832f0a3e4
2 changed files with 5 additions and 1 deletions

View File

@ -16,6 +16,10 @@ window.onload = () => {
addEasterEggAnimation()
if (menu_expand !== null && mobile_foldable !== null && transparentFullscreenHide !== null) {
transparentFullscreenHide.addEventListener('click', () => {
mobile_foldable.classList.remove('show');
transparentFullscreenHide.classList.remove('show');
});
menu_expand.addEventListener('click', () => {
mobile_foldable.classList.toggle('show');
transparentFullscreenHide.classList.toggle('show');

File diff suppressed because one or more lines are too long