aboutsummaryrefslogtreecommitdiff
path: root/src/data.js
diff options
context:
space:
mode:
authorKaran Jayachandra <mail@karanjayachandra.com>2025-11-15 14:30:38 +0100
committerKaran Jayachandra <mail@karanjayachandra.com>2025-11-15 14:30:38 +0100
commitcabac66d56e8912941cef976d69a4fd3ec9ad928 (patch)
treecacc0cb661494525f626521c60cff166eb7c22b6 /src/data.js
parent56eb065a8165b3f508a35734adbb00c76bee012a (diff)
Working on improving tables
Diffstat (limited to 'src/data.js')
-rw-r--r--src/data.js9
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>`;