diff options
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>`; } } |
