Skip to content

Commit

Permalink
restore modal open btn
Browse files Browse the repository at this point in the history
  • Loading branch information
TetiZ committed Feb 1, 2024
1 parent bdc0928 commit ff78a5d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/js/submit-email-footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,16 @@ form.addEventListener('submit', async e => {
console.log('Електронна пошта не введена.');
}
});

// MODAL
const closeBtnFooter = document.querySelector('.footer-close-btn');
const backDropFooter = document.querySelector('.footer-modal-backdrop');

const openFooterModalBtn = document.querySelector('.footer-team-link');
openFooterModalBtn.addEventListener('click', function () {
backDropFooter.classList.add('is-open');
});

closeBtnFooter.addEventListener('click', function () {
backDropFooter.classList.remove('is-open');
});

0 comments on commit ff78a5d

Please sign in to comment.