diff options
| author | Karan Jayachandra <karan.jayachandra@nxp.com> | 2025-11-11 19:08:58 +0100 |
|---|---|---|
| committer | Karan Jayachandra <karan.jayachandra@nxp.com> | 2025-11-11 19:08:58 +0100 |
| commit | d23c38e6f2a972a49a5463cc866190e341e2685e (patch) | |
| tree | 483301cbefa46c7a9e75d65d8ba634d8381a630a /player.mjs | |
| parent | 0e9e28c2595c1ec46d8601efa6f4d377ee70cb27 (diff) | |
Lot of updates and progress
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) { |
