- fix bug login button
This commit is contained in:
Kum1ta
2024-10-08 23:33:12 +02:00
parent 95c8d62e7c
commit 7be1d3ae9f
3 changed files with 16 additions and 3 deletions

View File

@ -6,7 +6,7 @@
/* By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/08/07 17:40:15 by edbernar #+# #+# */
/* Updated: 2024/10/06 17:01:31 by edbernar ### ########.fr */
/* Updated: 2024/10/08 23:32:11 by edbernar ### ########.fr */
/* */
/* ************************************************************************** */
@ -65,6 +65,17 @@ class Login
}
}
static changeEventLoginButton()
{
const loginButton = document.getElementById('loginButton');
loginButton.removeEventListener('click', showLoginDiv);
loginButton.addEventListener('click', showMenu);
window.addEventListener('resize', movePopMenuLoginButton);
movePopMenuLoginButton();
initButtonPopMenuLogin();
}
static dispose()
{
const loginButton = document.getElementById('loginButton');