diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-12-14 19:16:50 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-01-08 16:36:48 +0100 |
commit | b92d2be9b166530b015a9ac0e610d20b25f23232 (patch) | |
tree | 31be78389fe87b96b64abdbfb4029ec060108bac | |
parent | 9a30ef0fc5a5a6fb45e1dc9d72cfa762fe8285b5 (diff) | |
download | table-battles-b92d2be9b166530b015a9ac0e610d20b25f23232.tar.gz |
dkblue
-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"> |