diff options
Diffstat (limited to 'src/data.js')
| -rw-r--r-- | src/data.js | 9 |
1 files changed, 5 insertions, 4 deletions
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 = `<td style="width: 8%; text-align: center;">${ this.id + 1 }</td>`; |
