From e7a2ae361ce597a67342dd8e9e64417eb4341d61 Mon Sep 17 00:00:00 2001 From: Szymon Porwolik Date: Tue, 25 Nov 2025 19:51:27 +0100 Subject: [PATCH] Callsign coloring --- assets/js/sections/bandmap_list.js | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/assets/js/sections/bandmap_list.js b/assets/js/sections/bandmap_list.js index df3a45355..01f2757bb 100644 --- a/assets/js/sections/bandmap_list.js +++ b/assets/js/sections/bandmap_list.js @@ -971,16 +971,14 @@ $(function() { } else { dxcc_wked_info = "text-danger"; } - // Color code callsign: green=confirmed, yellow=worked - if (single.cnfmd_call) { - wked_info = "text-success"; - } else if (single.worked_call) { - wked_info = "text-warning"; - } else { - wked_info = ""; - } - - // Build LoTW badge with color coding based on last upload age + // Color code callsign: green=confirmed, yellow=worked, red=new + if (single.cnfmd_call) { + wked_info = "text-success"; + } else if (single.worked_call) { + wked_info = "text-warning"; + } else { + wked_info = "text-danger"; + } // Build LoTW badge with color coding based on last upload age var lotw_badge = ''; if (single.dxcc_spotted && single.dxcc_spotted.lotw_user) { let lclass = '';