Skip to content

Commit

Permalink
Fix: Hide mobile menu on button click
Browse files Browse the repository at this point in the history
  • Loading branch information
1bl4z3r committed Mar 28, 2024
1 parent 16670b0 commit e339421
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const toggleMobileMenu = () => {
} else {
mobileMenu.style.animationName = 'bounceOutRight';
mobileMenu.style.webkitAnimationName = 'bounceOutRight'
mobileMenu.style.display = 'none';
mobileMenuVisible = false;
}
}
Expand Down Expand Up @@ -100,7 +101,7 @@ if (header !== null) {
listen('#img-btn', "click", showImg);
listen('.bg-img', "click", hideImg);

document.querySelectorAll('.post-year').forEach((ele)=> {
document.querySelectorAll('.post-year').forEach((ele) => {
ele.addEventListener('click', () => {
window.location.hash = '#' + ele.id;
});
Expand Down

0 comments on commit e339421

Please sign in to comment.