Site
- buttons US FR working - if someone is in waitingpage and receive his opponent has left tournament, redirect to tournament page
This commit is contained in:
@ -6,10 +6,11 @@
|
||||
/* By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/10/01 13:42:29 by edbernar #+# #+# */
|
||||
/* Updated: 2024/10/02 13:39:23 by edbernar ### ########.fr */
|
||||
/* Updated: 2024/10/03 01:31:12 by edbernar ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
import { sendRequest } from "/static/javascript/websocket.js";
|
||||
import { pageRenderer } from '/static/javascript/main.js';
|
||||
|
||||
const playerNb = [1, 2, 4, 5, 13, 14, 15, 16];
|
||||
@ -27,6 +28,8 @@ let divTopInfo = null;
|
||||
let divInfo = null;
|
||||
let divChat = null;
|
||||
|
||||
// gerer quand une personne finit sa partie pour remettre tout comme il le faut
|
||||
|
||||
class TournamentPage
|
||||
{
|
||||
static create(code)
|
||||
@ -34,7 +37,6 @@ class TournamentPage
|
||||
divTopInfo = document.getElementById('actuality-tournament');
|
||||
divInfo = document.getElementsByClassName('infoo')[0];
|
||||
divChat = document.getElementsByClassName('chat')[0];
|
||||
|
||||
document.getElementById('code-tournament').innerText = "Code : " + code;
|
||||
divTopInfo.innerText = 'Tournament';
|
||||
}
|
||||
|
@ -15,7 +15,8 @@ typeTournament({action: 1, id: 7, username: "NovaBlaze", pfp: "https://encrypted
|
||||
typeTournament({action: 1, id: 8, username: "GlitchPhantom", pfp: "https://images.wondershare.com/filmora/article-images/2022/cool-tiktok-pfp.jpg"});
|
||||
typeTournament({action: 1, id: 9, username: "FrostBiteX", pfp: "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQJWyvMlk1053PLnD3PRrz2g_LdQtW2H-M-GQ&s"});
|
||||
typeTournament({action: 1, id: 10, username: "LunarEcho", pfp: "https://hypixel.net/attachments/1928357/"});
|
||||
typeTournament({action: 2,id: 3});
|
||||
typeTournament({action: 2, id: 3});
|
||||
|
||||
typeTournament({action: 3, username: "Eddy", message: "Bonsoir"});
|
||||
typeTournament({action: 4, username: "Eddy", message: "Bonsoir"});
|
||||
|
||||
typeTournament({action: 4, id:4, username: "Zouave"});
|
Reference in New Issue
Block a user