summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-09-23 17:38:31 +0100
committeriainp5 <iain.pearce.ip@gmail.com>2024-09-23 17:38:31 +0100
commitebfa35806351a4ef202bb7b8f11bea44a2adf017 (patch)
tree560d8e2cfedafeaa3365c14a38fd9bfb7976dab0 /play.js
parent6435b401b8c666eab9bd41848ac074536a11d444 (diff)
download1989-dawn-of-freedom-ebfa35806351a4ef202bb7b8f11bea44a2adf017.tar.gz
Final updates
Diffstat (limited to 'play.js')
-rw-r--r--play.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/play.js b/play.js
index de1670c..48df886 100644
--- a/play.js
+++ b/play.js
@@ -505,14 +505,19 @@ if (view.ceausescu_cards.length > 0 && view.is_pwr_struggle === true) {
// UPDATE EVENT MARKERS
for (let id in view.persistent_events) {
- let marker = document.getElementById(id);
+ let marker = document.getElementById(id)
if (marker && view.persistent_events[id]) {
- marker.style.display = 'block';
+ marker.style.display = 'block'
} else if (marker && !view.persistent_events[id]) {
marker.style.display = 'none'
+ } else if (marker && view.persistent_events[id] !== "") {
+ marker.style.display = 'block'
+ } else if(marker && view.persistent_events[id] === '') {
+ marker.style.display = 'none'
}
}
+
// CHECK WHETHER ANY EVENT MARKERS ARE SHOWING IN THE ASIDE
aside_events_showing = false
for (let id of aside_events) {