diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-05-18 11:30:54 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-05-18 11:30:54 +0200 |
commit | 6cc0e4ad54fc60acca67f00c7cd92f8649611755 (patch) | |
tree | 0118a8de273708b2b5f7053e1b518cc8ddbba352 | |
parent | c9ea8addaa7e5d8a00aadbdef38d9260c2c3a1c8 (diff) | |
download | andean-abyss-6cc0e4ad54fc60acca67f00c7cd92f8649611755.tar.gz |
Fix loading jank.
-rw-r--r-- | play.html | 22 | ||||
-rw-r--r-- | play.js | 7 |
2 files changed, 17 insertions, 12 deletions
@@ -171,9 +171,9 @@ </div> <div id="tokens"> -<div class="token" id="token_aid"></div> -<div class="token" id="token_oppose_plus_bases"></div> -<div class="token" id="token_total_support"></div> +<div class="token" id="token_aid" style="left:497px;top:16px"></div> +<div class="token" id="token_oppose_plus_bases" style="left:1069px;top:16px"></div> +<div class="token" id="token_total_support" style="left:1590px;top:1067px"></div> <div class="token" id="token_el_presidente" style="left:254px;top:245px"></div> <div class="token" id="token_prop_card" style="left:1029px;top:666px"></div> <div id="rem_darien" class="token reminder darien hide" style="left:140px;top:822px"></div> @@ -181,14 +181,14 @@ </div> <div id="pieces"> -<div id="govt_cylinder" class="piece govt cylinder"></div> -<div id="farc_cylinder" class="piece farc cylinder"></div> -<div id="auc_cylinder" class="piece auc cylinder"></div> -<div id="cartels_cylinder" class="piece cartels cylinder"></div> -<div id="govt_resources" class="piece govt cylinder"></div> -<div id="farc_resources" class="piece farc cylinder"></div> -<div id="auc_resources" class="piece auc cylinder"></div> -<div id="cartels_resources" class="piece cartels cylinder"></div> +<div id="govt_cylinder" class="piece govt cylinder" style="left:1142px;top:600px;z-index:4"></div> +<div id="farc_cylinder" class="piece farc cylinder" style="left:1142px;top:560px;z-index:3"></div> +<div id="auc_cylinder" class="piece auc cylinder" style="left:1142px;top:520px;z-index:2"></div> +<div id="cartels_cylinder" class="piece cartels cylinder" style="left:1142px;top:480px;z-index:1"></div> +<div id="govt_resources" class="piece govt cylinder" style="left:1592px;top:542px;z-index:1"></div> +<div id="farc_resources" class="piece farc cylinder" style="left:551px;top:4px;z-index:1"></div> +<div id="auc_resources" class="piece auc cylinder" style="left:551px;top:32px;z-index:2"></div> +<div id="cartels_resources" class="piece cartels cylinder" style="left:551px;top:60px;z-index:3"></div> </div> </div> @@ -1063,7 +1063,13 @@ function make_card_class_name(c) { return "card card_" + c + " u" + data.card_unshaded_lines[c] + " s" + data.card_shaded_lines[c] } +let once = true function on_update() { + if (once) { + init_ui() + once = false + } + switch (player) { case "Government": ui.favicon.href = "images/icon_govt.png"; break case "AUC": ui.favicon.href = "images/icon_auc.png"; break @@ -1516,5 +1522,4 @@ function map_get(map, key, missing) { return missing } -init_ui() scroll_with_middle_mouse("main") |