aboutsummaryrefslogtreecommitdiff
path: root/player.mjs
diff options
context:
space:
mode:
authorKaran Jayachandra <karan.jayachandra@nxp.com>2025-11-11 19:08:58 +0100
committerKaran Jayachandra <karan.jayachandra@nxp.com>2025-11-11 19:08:58 +0100
commitd23c38e6f2a972a49a5463cc866190e341e2685e (patch)
tree483301cbefa46c7a9e75d65d8ba634d8381a630a /player.mjs
parent0e9e28c2595c1ec46d8601efa6f4d377ee70cb27 (diff)
Lot of updates and progress
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 91d146a..ef10e03 100644
--- a/player.mjs
+++ b/player.mjs
@@ -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) {