diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-10-10 19:23:25 +0100 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-10-10 19:23:25 +0100 |
commit | 066774320d4f15cc049d65c9bb82e8564777e20b (patch) | |
tree | 782cf59fa97e3350aae52b6ad4be56648c104642 /play.js | |
parent | 31714d22537211bdf4fe2c909c7bb574f557ac10 (diff) | |
download | 1989-dawn-of-freedom-066774320d4f15cc049d65c9bb82e8564777e20b.tar.gz |
Tweak view when infl in double figures
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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')
|