diff options
Diffstat (limited to 'player.mjs')
| -rw-r--r-- | player.mjs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -15,7 +15,7 @@ export class Player { console.log(this.name + " has a level of " + this.level + " and is currently " + status); } render() { - let type = this.status ? `class="button is-success"` : 'class="button is-danger"'; + let type = this.status ? `class="button is-large is-success"` : 'class="button is-large is-danger"'; return `<button id=${"regular_" + this.id} ${type}>${this.name}</button>`; } } @@ -42,7 +42,7 @@ function parseLineToPlayer(data) { var id = Number(info[0].trim()); var name = info[1].trim() + " " + info[2].trim(); var level = Number(info[3].trim()); - return new Player(id, name, level, false, 0); + return new Player(id, name, level, true, 0); } export function csvToPlayers(csv) { |
