aboutsummaryrefslogtreecommitdiff
path: root/player.mjs
diff options
context:
space:
mode:
authorKaran Jayachandra <mail@karanjayachandra.com>2025-11-09 11:53:05 +0100
committerKaran Jayachandra <mail@karanjayachandra.com>2025-11-09 11:53:05 +0100
commit6456fae865aae8b2ba398b5f78f2589c93d0643d (patch)
tree1ab854ae7d554b83321532363ef3480d0988b988 /player.mjs
parent34d77cd777bd44d7bfe0e3ab3379f9be256ca88b (diff)
Working regulars and courts
Diffstat (limited to 'player.mjs')
-rw-r--r--player.mjs4
1 files changed, 2 insertions, 2 deletions
diff --git a/player.mjs b/player.mjs
index a0e2535..d75e659 100644
--- a/player.mjs
+++ b/player.mjs
@@ -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>`;
}
}