Adding transparent click closes menu.
This commit is contained in:
parent
942b9f4ca4
commit
d832f0a3e4
@ -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
Loading…
Reference in New Issue
Block a user