From 562e1822729e85834e54cc76d0bfbc8a584c572c Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 1 Jun 2024 15:04:23 +0200 Subject: setup --- play.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'play.js') diff --git a/play.js b/play.js index 4204a13..daf430c 100644 --- a/play.js +++ b/play.js @@ -645,7 +645,7 @@ function layout_general(id, s) { // e.style.top = (y + 7 - 15 * n) + "px" e.style.top = (y + 2 - 15 * n) + "px" e.style.zIndex = y + n + 1 - e.className = power_class[GENERAL_POWER[id]] + " piece number n" + view.troops[id] + e.className = power_class[piece_power[id]] + " piece number n" + view.troops[id] } function layout_train(id, s) { @@ -762,18 +762,16 @@ function on_update() { ui.header.classList.toggle("prussia", view.power === P_PRUSSIA) ui.header.classList.toggle("saxony", view.power === P_SAXONY) ui.header.classList.toggle("pragmatic", view.power === P_PRAGMATIC) - ui.header.classList.toggle("austira", view.power === P_AUSTRIA) + ui.header.classList.toggle("austria", view.power === P_AUSTRIA) sort_power_panel(true) -/* for (let p = 0; p < 20; ++p) layout_general(p, view.pos[p]) for (let p = 20; p < 30; ++p) layout_train(p, view.pos[p]) for (let p = 30; p < 32; ++p) layout_hussar(p, view.pos[p]) -*/ let back = [ 0, 0, 0, 0 ] -- cgit v1.2.3