diff options
| author | Karan Jayachandra <karan.jayachandra@nxp.com> | 2025-11-12 22:18:19 +0100 |
|---|---|---|
| committer | Karan Jayachandra <karan.jayachandra@nxp.com> | 2025-11-12 22:18:19 +0100 |
| commit | 367dacb5057c945027775f992edf69884c8fb650 (patch) | |
| tree | 8e2fd4678afc6ea57d9a9e2e7d9051f9e4c8940a /game.mjs | |
| parent | 33b4f230abe5456f305b4da6adf2b73936f11784 (diff) | |
Changed the layout a bit
Diffstat (limited to 'game.mjs')
| -rw-r--r-- | game.mjs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -10,7 +10,7 @@ class Team { console.log(this.playerOne + " and " + this.playerTwo); } render() { - return `<td style="width: 23%;">${this.playerOne}</td><td style="width: 23%;">${this.playerTwo}</td>`; + return `<td style="width: 23%; text-align: right;">${this.playerOne}</td><td style="width: 23%; text-align: left;">${this.playerTwo}</td>`; } } @@ -28,7 +28,7 @@ class Game { render() { let type = this.team_1.playerOne === "RESERVED" ? `class="is-danger is-dark"` : ``; - return `<tr ${type}><td align="center" style="width: 8%;">${ + return `<tr ${type}><td style="width: 8%; text-align: center;">${ this.courtId + 1 }</td>${this.team_1.render()}${this.team_2.render()}</tr>`; } |
