diff options
| author | Karan Jayachandra <mail@karanjayachandra.com> | 2025-11-09 11:53:05 +0100 |
|---|---|---|
| committer | Karan Jayachandra <mail@karanjayachandra.com> | 2025-11-09 11:53:05 +0100 |
| commit | 6456fae865aae8b2ba398b5f78f2589c93d0643d (patch) | |
| tree | 1ab854ae7d554b83321532363ef3480d0988b988 /player.mjs | |
| parent | 34d77cd777bd44d7bfe0e3ab3379f9be256ca88b (diff) | |
Working regulars and courts
Diffstat (limited to 'player.mjs')
| -rw-r--r-- | player.mjs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -7,7 +7,7 @@ export class Player { } toggle() { this.status = !this.status; - return this.render(); + this.print(); } print() { let status = this.status ? "active" : "inactive"; @@ -15,7 +15,7 @@ export class Player { } render() { let type = this.status ? "" : 'class="outline secondary"'; - return `<button id=${"player_" + this.id} ${type} onclick='togglePlayer(${this.id})'>${this.name}</button>`; + return `<button id=${"regular_" + this.id} ${type}>${this.name}</button>`; } } |
