update
made mobile actually work :)
This commit is contained in:
parent
8e3e083c63
commit
b355b404ee
8 changed files with 541 additions and 38 deletions
22
script.js
22
script.js
|
|
@ -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');
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue