From cabac66d56e8912941cef976d69a4fd3ec9ad928 Mon Sep 17 00:00:00 2001 From: Karan Jayachandra Date: Sat, 15 Nov 2025 14:30:38 +0100 Subject: Working on improving tables --- src/data.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/data.js') diff --git a/src/data.js b/src/data.js index 4358ee6..589b5a3 100644 --- a/src/data.js +++ b/src/data.js @@ -45,7 +45,7 @@ const guestCategories = { }; export class Guest extends Switch { - maxCount = 4; + maxCount = 6; categoryCount = 3; constructor(id, status, games) { @@ -82,14 +82,15 @@ export class Game extends Switch { this.teamTwo = teamTwo; } print() { - super.print(); let teamOne = this.teamOne.playerOne + " and " + this.teamOne.playerTwo; let teamTwo = this.teamTwo.playerOne + " and " + this.teamTwo.playerTwo; - console.log(teamOne + " is playing against " + teamTwo); + console.log( + "Game " + this.id + ": " + teamOne + " is playing against " + teamTwo + ); } render() { let blockedState = this.teamOne.playerOne === "RESERVED"; - let type = blockedState ? `class="is-danger is-dark"` : ``; + let type = blockedState ? `class="is-dark"` : ``; let court = `${ this.id + 1 }`; -- cgit v1.3.1