From 066774320d4f15cc049d65c9bb82e8564777e20b Mon Sep 17 00:00:00 2001 From: iainp5 Date: Thu, 10 Oct 2024 19:23:25 +0100 Subject: Tweak view when infl in double figures --- play.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'play.js') 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') -- cgit v1.2.3