diff options
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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 ] |