Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
Signed-off-by: redfyel <[email protected]>
  • Loading branch information
redfyel authored Nov 16, 2023
1 parent 3ffe496 commit 06b8605
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,11 @@ function showSlides() {
slides[slideIndex].style.display = "block";
}

const contactButton = document.querySelector('.contact-button');

contactButton.addEventListener('click', function(e) {
e.preventDefault();

const footer = document.getElementById('footer');
footer.scrollIntoView({ behavior: 'smooth' });
});

0 comments on commit 06b8605

Please sign in to comment.