made mobile actually work :)
This commit is contained in:
moonmoon97 2024-02-08 12:59:09 +01:00 committed by GitHub
parent 8e3e083c63
commit b355b404ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 541 additions and 38 deletions

View file

@ -0,0 +1,22 @@
const wrapper = document.querySelector('.wrapper');
const loginLink = document.querySelector('.login-link');
const registerLink = document.querySelector('.register-link');
const btnPopup = document.querySelector('.btnLogin-popup');
const iconClose = document.querySelector('.icon-close');
registerLink.addEventListener('click', ()=> {
wrapper.classList.add('active');
});
loginLink.addEventListener('click', ()=> {
wrapper.classList.remove('active');
});
btnPopup.addEventListener('click', ()=> {
wrapper.classList.add('active-popup');
});
iconClose.addEventListener('click', ()=> {
wrapper.classList.remove('active-popup');
wrapper.classList.remove('active');
});