diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-01-06 22:26:03 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-01-08 10:46:28 +0100 |
commit | a004f3d20cca66ede253034b56246f37e8fa1011 (patch) | |
tree | 1a8250985ff1aa3b8e06e2734fad4ab741b961c2 | |
parent | aad5c0dfcec0e4eeefacb4bccce30e514d98b98c (diff) | |
download | 1989-dawn-of-freedom-a004f3d20cca66ede253034b56246f37e8fa1011.tar.gz |
use overlay for systematization instead of double sized counter
-rw-r--r-- | play.css | 8 | ||||
-rw-r--r-- | play.js | 5 |
2 files changed, 9 insertions, 4 deletions
@@ -173,6 +173,11 @@ X#log .dem_nc { background-image: url(images/icon_dem.png) } box-shadow: 0 0 0 1px black, inset 0 0 0 1px black; } +.space.systematization { + background-color: #faebd7cc; + border-color: antiquewhite; +} + /* MARKERS */ /* node tools/gencolors.js */ @@ -316,9 +321,6 @@ X#log .dem_nc { background-image: url(images/icon_dem.png) } /* The Wall */ #event_9 { top: 175px; left: 216px; } -/* Systematisation */ -#event_69 {height: 65px; width: 65px; background-size: cover;} - /* CARD PANELS */ .panel { @@ -835,6 +835,7 @@ function on_update() { layout_country(i) /*layout_score_box(i)*/ } + // UPDATE CARD DISPLAYS ui.samizdat_card.replaceChildren() @@ -903,8 +904,10 @@ function on_update() { for (let e of action_register) e.classList.toggle("action", is_action(e.my_action, e.my_id)) - for (let s = 0; s <= last_space; ++s) + for (let s = 0; s <= last_space; ++s) { ui.spaces[s].classList.toggle("selected", view.selected_space === s) + ui.spaces[s].classList.toggle("systematization", view.systematization === s) + } action_button("east_germany", "East Germany") action_button("poland", "Poland") |