diff options
-rw-r--r-- | cards.css | 2 | ||||
-rw-r--r-- | play.js | 4 | ||||
-rw-r--r-- | tools/gendata.js | 1 |
3 files changed, 6 insertions, 1 deletions
@@ -43,7 +43,7 @@ .name.red { background-color: #e32223; color: white; } .name.pink { background-color: #f49899; color: black; } .name.blue { background-color: #2482e4; color: white; } -.name.dkblue { background-color: #44d; color: white; } +.name.dkblue { background-color: #1239c3; color: white; } .name.sym { padding-left: 30px; @@ -315,6 +315,10 @@ function on_update() { ui.name[p1].textContent = data.scenarios[view.scenario].players[0].name ui.name[p2].textContent = data.scenarios[view.scenario].players[1].name + let w1 = data.cards[view.front[0][0]].wing + let w2 = data.cards[view.front[1][0]].wing + + console.log("W", w1, w2) ui.role_name[p1].textContent = data.scenarios[view.scenario].players[0].name ui.role_name[p2].textContent = data.scenarios[view.scenario].players[1].name diff --git a/tools/gendata.js b/tools/gendata.js index bd1e799..e593eac 100644 --- a/tools/gendata.js +++ b/tools/gendata.js @@ -8,6 +8,7 @@ var result = [ `<!doctype html> <html lang="en"> <head> +<meta charset="utf-8"> <title>Table Battle Cards</title> <link rel="stylesheet" href="/fonts/fonts.css"> <link rel="stylesheet" href="/table-battles/cards.css"> |