/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.js :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: edbernar { if (points.length < 3) points += '.'; else points = ''; sentence.innerText = text + points; }, 500); sendRequest("game", {action: 0}) returnButton.addEventListener('click', returnToLobby); } static dispose() { if (intervalPoints) clearInterval(intervalPoints); intervalPoints = null; } } function returnToLobby() { for (let i = 0; i < document.body.children.length; i++) { document.body.children[i].style.animation = "anim3 0.6s"; } setTimeout(() => { pageRenderer.changePage('lobbyPage'); }, 500); } export { WaitingGamePage };