diff options
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')
|