summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-10-10 19:23:25 +0100
committeriainp5 <iain.pearce.ip@gmail.com>2024-10-10 19:23:25 +0100
commit066774320d4f15cc049d65c9bb82e8564777e20b (patch)
tree782cf59fa97e3350aae52b6ad4be56648c104642 /play.js
parent31714d22537211bdf4fe2c909c7bb574f557ac10 (diff)
download1989-dawn-of-freedom-066774320d4f15cc049d65c9bb82e8564777e20b.tar.gz
Tweak view when infl in double figures
Diffstat (limited to 'play.js')
-rw-r--r--play.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/play.js b/play.js
index 7ae8644..7b18e6e 100644
--- a/play.js
+++ b/play.js
@@ -430,6 +430,14 @@ function on_update() {
dem_marker.style.display = 'block';
dem_number.style.display = 'block';
+ if (demInfl > 9) {
+ dem_number.classList.remove('demInflValue')
+ dem_number.classList.add('demInflValue_10')
+ } else {
+ dem_number.classList.add('demInflValue')
+ dem_number.classList.remove('demInflValue_10')
+ }
+
if(check_dem_control(demInfl, comInfl, space)){
dem_marker.classList.add('controlled')
dem_number.classList.add('outlined_text')
@@ -448,6 +456,14 @@ function on_update() {
com_marker.style.display = 'block';
com_number.style.display = 'block';
+ if (comInfl > 9) {
+ com_number.classList.remove('comInflValue')
+ com_number.classList.add('comInflValue_10')
+ } else {
+ com_number.classList.add('comInflValue')
+ com_number.classList.remove('comInflValue_10')
+ }
+
if(check_com_control(demInfl, comInfl, space)){
com_marker.classList.add('controlled')
com_number.classList.add('controlled')