Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // grave id
- const quoteBtn = document.getElementById('quoteBtn');
- const closeQuote = document.getElementById('popupClose');
- const quoteWindow = document.getElementById('getQuot');
- // event listener
- quoteBtn.addEventListener('click', openPopup);
- closeQuote.addEventListener('click', closePopup);
- function openPopup() {
- quoteWindow.className = 'activePopup';
- }
- function closePopup() {
- quoteWindow.classList.remove('activePopup')
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement