diff options
| author | Karan Jayachandra <mail@karanjayachandra.com> | 2025-11-09 15:57:07 +0100 |
|---|---|---|
| committer | Karan Jayachandra <mail@karanjayachandra.com> | 2025-11-09 15:57:07 +0100 |
| commit | 3dc01fbb930a4eacf416a9cc7911d90da75e6c33 (patch) | |
| tree | dd25d62d619d62ed7d2657e37352caaa749abfd7 /player.mjs | |
| parent | 6456fae865aae8b2ba398b5f78f2589c93d0643d (diff) | |
Moved a lot of the functionality
Diffstat (limited to 'player.mjs')
| -rw-r--r-- | player.mjs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -14,7 +14,7 @@ export class Player { console.log(this.name + " has a level of " + this.level + " and is currently " + status); } render() { - let type = this.status ? "" : 'class="outline secondary"'; + let type = this.status ? `class="button is-success"` : 'class="button is-danger"'; return `<button id=${"regular_" + this.id} ${type}>${this.name}</button>`; } } |
