Site
- add new request for start game in tournament - fix some bug with style
This commit is contained in:
@ -6,10 +6,12 @@
|
||||
/* By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/10/01 13:42:29 by edbernar #+# #+# */
|
||||
/* Updated: 2024/10/02 04:55:51 by edbernar ### ########.fr */
|
||||
/* Updated: 2024/10/02 13:39:23 by edbernar ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
import { pageRenderer } from '/static/javascript/main.js';
|
||||
|
||||
const playerNb = [1, 2, 4, 5, 13, 14, 15, 16];
|
||||
const playerList = {
|
||||
player1: {id: 0, username: null, pfp: null},
|
||||
@ -116,6 +118,11 @@ class TournamentPage
|
||||
newText.innerText = `${content.username} : ${content.message}`;
|
||||
divChat.appendChild(newText);
|
||||
}
|
||||
|
||||
static startGame(content)
|
||||
{
|
||||
pageRenderer.changePage("waitingGamePage", false, {username: content.username, id: content.id, isTournament: true})
|
||||
}
|
||||
}
|
||||
|
||||
function newInfo(message)
|
||||
|
Reference in New Issue
Block a user