Skip to content

Commit

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

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

0 comments on commit 06351ea

Please sign in to comment.