Site
- add function on back arrow login page
This commit is contained in:
Binary file not shown.
Before Width: | Height: | Size: 377 KiB |
Binary file not shown.
Before Width: | Height: | Size: 28 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.3 MiB |
Binary file not shown.
Before Width: | Height: | Size: 103 KiB |
@ -3,10 +3,10 @@
|
|||||||
/* ::: :::::::: */
|
/* ::: :::::::: */
|
||||||
/* main.js :+: :+: :+: */
|
/* main.js :+: :+: :+: */
|
||||||
/* +:+ +:+ +:+ */
|
/* +:+ +:+ +:+ */
|
||||||
/* By: madegryc <madegryc@student.42.fr> +#+ +:+ +#+ */
|
/* By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2024/08/25 00:02:19 by edbernar #+# #+# */
|
/* Created: 2024/08/25 00:02:19 by edbernar #+# #+# */
|
||||||
/* Updated: 2024/10/05 22:24:29 by madegryc ### ########.fr */
|
/* Updated: 2024/10/09 22:43:31 by edbernar ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
@ -35,6 +35,10 @@ class HomePage
|
|||||||
})
|
})
|
||||||
document.getElementById('buttonProject').addEventListener('click', () => scrollToSection(0));
|
document.getElementById('buttonProject').addEventListener('click', () => scrollToSection(0));
|
||||||
document.getElementById('buttonAuthors').addEventListener('click', () => scrollToSection(1));
|
document.getElementById('buttonAuthors').addEventListener('click', () => scrollToSection(1));
|
||||||
|
document.getElementById('cross-login').addEventListener('click', () => {
|
||||||
|
document.getElementById('loginPopup').style.display = 'none';
|
||||||
|
document.body.style.overflow = 'auto';
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
static dispose()
|
static dispose()
|
||||||
@ -44,6 +48,7 @@ class HomePage
|
|||||||
LiveChat.dispose();
|
LiveChat.dispose();
|
||||||
window.removeEventListener('scroll', scrool);
|
window.removeEventListener('scroll', scrool);
|
||||||
document.getElementById('buttonPlay').removeEventListener('click', redirection);
|
document.getElementById('buttonPlay').removeEventListener('click', redirection);
|
||||||
|
document.body.style.overflow = 'auto';
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user