Skip to content

Commit

Permalink
Update web-controls.js
Browse files Browse the repository at this point in the history
  • Loading branch information
pavly-gerges authored Jun 20, 2024
1 parent c4263ae commit c5db1dd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions website/web-controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ const expandButton = document.getElementById('expandButton');
const menu = document.getElementById('navbar-collapse-with-animation');

// toggle events
expandButton.addEventListener('touchstart', function() {
menu.classList.toggle('hidden');
menu.classList.toggle('overflow-hidden');
});

expandButton.addEventListener('click', function() {
menu.classList.toggle('hidden');
menu.classList.toggle('overflow-hidden');
});

0 comments on commit c5db1dd

Please sign in to comment.