From fe8872d65b3b31c061fb969302d50bb42b4f179e Mon Sep 17 00:00:00 2001 From: phl0 Date: Mon, 8 May 2023 12:44:36 +0200 Subject: [PATCH 1/2] Alignment on radio CAT state banner for screenreaders --- application/views/interface_assets/footer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/views/interface_assets/footer.php b/application/views/interface_assets/footer.php index 4a534990..b04b3ecf 100644 --- a/application/views/interface_assets/footer.php +++ b/application/views/interface_assets/footer.php @@ -1269,7 +1269,7 @@ $(document).on('keypress',function(e) { text = text+'RX: '+parseInt(data.frequency_rx)/1000/1000+' MHz)'; } if (! $('#radio_cat_state').length) { - $('.qso_panel').prepend(''); + $('.qso_panel').prepend(''); } else { $('#radio_cat_state').html(text); } From 45d94a781d3a59e4241ff2735bd7794602a3b332 Mon Sep 17 00:00:00 2001 From: phl0 Date: Mon, 8 May 2023 13:15:40 +0200 Subject: [PATCH 2/2] Make sure frequencies have 3 decimal digits --- application/views/interface_assets/footer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/views/interface_assets/footer.php b/application/views/interface_assets/footer.php index b04b3ecf..ffb92314 100644 --- a/application/views/interface_assets/footer.php +++ b/application/views/interface_assets/footer.php @@ -1255,7 +1255,7 @@ $(document).on('keypress',function(e) { } } else { $(".radio_timeout_error" ).remove(); - text = 'TX: '+parseInt(data.frequency)/1000/1000+' MHz'; + text = 'TX: '+(Math.round(parseInt(data.frequency)/1000)/1000).toFixed(3)+' MHz'; if(data.power != null && data.power != 0) { text = text+''+data.power+'W'; } @@ -1266,7 +1266,7 @@ $(document).on('keypress',function(e) { } } if(data.frequency_rx != null && data.frequency_rx != 0) { - text = text+'RX: '+parseInt(data.frequency_rx)/1000/1000+' MHz)'; + text = text+'RX: '+(Math.round(parseInt(data.frequency_rx)/1000)/1000).toFixed(3)+' MHz)'; } if (! $('#radio_cat_state').length) { $('.qso_panel').prepend('');