From a3b0f9f7273b5e50e8e1dac843fbef922a6390de Mon Sep 17 00:00:00 2001 From: phl0 Date: Wed, 10 Dec 2025 12:09:23 +0100 Subject: [PATCH 1/9] Handle undefined qsoconfirm settings --- application/views/user/edit.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/views/user/edit.php b/application/views/user/edit.php index c42da5711..04e16b1f6 100644 --- a/application/views/user/edit.php +++ b/application/views/user/edit.php @@ -568,8 +568,8 @@
- -
")); ?>
+ "> +
")); ?>
- " data-icon="qsoconfirm" /> + " style="padding:initial;" data-icon="qsoconfirm" />
From 6d4bc1074745dcb349519512f4510370743d27bc Mon Sep 17 00:00:00 2001 From: phl0 Date: Wed, 10 Dec 2025 12:22:30 +0100 Subject: [PATCH 2/9] Default fallback colors for gridmap --- assets/js/sections/gridmap.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/assets/js/sections/gridmap.js b/assets/js/sections/gridmap.js index 45c8b5ff9..9a5fca388 100644 --- a/assets/js/sections/gridmap.js +++ b/assets/js/sections/gridmap.js @@ -1,7 +1,13 @@ var modalloading=false; -let confirmedColor = user_map_custom.qsoconfirm.color; -let workedColor = user_map_custom.qso.color; +let confirmedColor = 'rgba(144,238,144)'; +if (typeof user_map_custom.qsoconfirm !== 'undefined') { + confirmedColor = user_map_custom.qsoconfirm.color; +} +let workedColor = 'rgba(255, 0, 0)'; +if (typeof user_map_custom.qso !== 'undefined') { + workedColor = user_map_custom.qso.color; +} document.addEventListener("DOMContentLoaded", function() { document.querySelectorAll('.dropdown').forEach(dd => { From 01bd8c6373671c6ea8ccc177ebaeb84b2fb8a4aa Mon Sep 17 00:00:00 2001 From: phl0 Date: Wed, 10 Dec 2025 12:26:38 +0100 Subject: [PATCH 3/9] Catch undefined color --- application/controllers/Awards.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/Awards.php b/application/controllers/Awards.php index 976c51f1e..426a62551 100644 --- a/application/controllers/Awards.php +++ b/application/controllers/Awards.php @@ -21,7 +21,7 @@ class Awards extends CI_Controller { $map_custom = json_decode($this->optionslib->get_map_custom()); $this->user_map_color_qso = $map_custom->qso->color; - $this->user_map_color_qsoconfirm = $map_custom->qsoconfirm->color; + $this->user_map_color_qsoconfirm = $map_custom->qsoconfirm->color ?? ''; $this->user_map_color_unworked = $map_custom->unworked->color ?? ''; } From 76492ad0003b805b0597ac2177c425e3c36d0cf1 Mon Sep 17 00:00:00 2001 From: phl0 Date: Wed, 10 Dec 2025 12:27:32 +0100 Subject: [PATCH 4/9] Simplify code --- assets/js/sections/dxccmap.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/assets/js/sections/dxccmap.js b/assets/js/sections/dxccmap.js index 0e07615b3..c98ad0c17 100644 --- a/assets/js/sections/dxccmap.js +++ b/assets/js/sections/dxccmap.js @@ -1,10 +1,8 @@ let confirmedColor = user_map_custom.qsoconfirm.color; let workedColor = user_map_custom.qso.color; -let unworkedColor = ''; +let unworkedColor = 'red'; if (typeof(user_map_custom.unworked) !== 'undefined') { unworkedColor = user_map_custom.unworked.color; -} else { - unworkedColor = 'red'; } document.addEventListener("DOMContentLoaded", function() { From 6de5cff09777338b60b578a0c96069ea2de168fc Mon Sep 17 00:00:00 2001 From: phl0 Date: Wed, 10 Dec 2025 12:40:59 +0100 Subject: [PATCH 5/9] Handle absent colors in award maps --- application/controllers/Awards.php | 2 +- assets/js/sections/cqmap.js | 14 +++++++++----- assets/js/sections/iotamap.js | 14 +++++++++----- assets/js/sections/itumap.js | 14 +++++++++----- assets/js/sections/jccmap.js | 14 +++++++++----- assets/js/sections/racmap.js | 14 +++++++++----- assets/js/sections/wajamap.js | 14 +++++++++----- assets/js/sections/wapmap.js | 14 +++++++++----- assets/js/sections/wasmap.js | 14 +++++++++----- 9 files changed, 73 insertions(+), 41 deletions(-) diff --git a/application/controllers/Awards.php b/application/controllers/Awards.php index 426a62551..bdd98ac16 100644 --- a/application/controllers/Awards.php +++ b/application/controllers/Awards.php @@ -20,7 +20,7 @@ class Awards extends CI_Controller { if(!$this->user_model->authorize(2)) { $this->session->set_flashdata('error', __("You're not allowed to do that!")); redirect('dashboard'); } $map_custom = json_decode($this->optionslib->get_map_custom()); - $this->user_map_color_qso = $map_custom->qso->color; + $this->user_map_color_qso = $map_custom->qso->color ?? ''; $this->user_map_color_qsoconfirm = $map_custom->qsoconfirm->color ?? ''; $this->user_map_color_unworked = $map_custom->unworked->color ?? ''; } diff --git a/assets/js/sections/cqmap.js b/assets/js/sections/cqmap.js index dcff0fad4..795a7c461 100644 --- a/assets/js/sections/cqmap.js +++ b/assets/js/sections/cqmap.js @@ -4,13 +4,17 @@ var geojson; var map; var info; -let confirmedColor = user_map_custom.qsoconfirm.color; -let workedColor = user_map_custom.qso.color; -let unworkedColor = ''; +let unworkedColor = 'red'; if (typeof(user_map_custom.unworked) !== 'undefined') { unworkedColor = user_map_custom.unworked.color; -} else { - unworkedColor = 'red'; +} +let workedColor = 'rgba(255, 0, 0)'; +if (typeof(user_map_custom.qso) !== 'undefined') { + workedColor = user_map_custom.qso.color; +} +let confirmedColor = 'rgba(144,238,144)'; +if (typeof(user_map_custom.qsoconfirm) !== 'undefined') { + confirmedColor = user_map_custom.qsoconfirm.color; } document.addEventListener("DOMContentLoaded", function() { diff --git a/assets/js/sections/iotamap.js b/assets/js/sections/iotamap.js index d422e6294..6848c5175 100644 --- a/assets/js/sections/iotamap.js +++ b/assets/js/sections/iotamap.js @@ -1,10 +1,14 @@ -let confirmedColor = user_map_custom.qsoconfirm.color; -let workedColor = user_map_custom.qso.color; -let unworkedColor = ''; +let unworkedColor = 'red'; if (typeof(user_map_custom.unworked) !== 'undefined') { unworkedColor = user_map_custom.unworked.color; -} else { - unworkedColor = 'red'; +} +let workedColor = 'rgba(255, 0, 0)'; +if (typeof(user_map_custom.qso) !== 'undefined') { + workedColor = user_map_custom.qso.color; +} +let confirmedColor = 'rgba(144,238,144)'; +if (typeof(user_map_custom.qsoconfirm) !== 'undefined') { + confirmedColor = user_map_custom.qsoconfirm.color; } var osmUrl = $('#iotamapjs').attr("tileUrl"); diff --git a/assets/js/sections/itumap.js b/assets/js/sections/itumap.js index fa9ff07b4..ce6f191ff 100644 --- a/assets/js/sections/itumap.js +++ b/assets/js/sections/itumap.js @@ -4,13 +4,17 @@ let geojson; let map; let info; -let confirmedColor = user_map_custom.qsoconfirm.color; -let workedColor = user_map_custom.qso.color; -let unworkedColor = ''; +let unworkedColor = 'red'; if (typeof(user_map_custom.unworked) !== 'undefined') { unworkedColor = user_map_custom.unworked.color; -} else { - unworkedColor = 'red'; +} +let workedColor = 'rgba(255, 0, 0)'; +if (typeof(user_map_custom.qso) !== 'undefined') { + workedColor = user_map_custom.qso.color; +} +let confirmedColor = 'rgba(144,238,144)'; +if (typeof(user_map_custom.qsoconfirm) !== 'undefined') { + confirmedColor = user_map_custom.qsoconfirm.color; } function load_itu_map() { diff --git a/assets/js/sections/jccmap.js b/assets/js/sections/jccmap.js index 9c282a3c6..8759f2412 100644 --- a/assets/js/sections/jccmap.js +++ b/assets/js/sections/jccmap.js @@ -1,11 +1,15 @@ let osmUrl = tileUrl; -let confirmedColor = user_map_custom.qsoconfirm.color; -let workedColor = user_map_custom.qso.color; -let unworkedColor = ''; +let unworkedColor = 'red'; if (typeof(user_map_custom.unworked) !== 'undefined') { unworkedColor = user_map_custom.unworked.color; -} else { - unworkedColor = 'red'; +} +let workedColor = 'rgba(255, 0, 0)'; +if (typeof(user_map_custom.qso) !== 'undefined') { + workedColor = user_map_custom.qso.color; +} +let confirmedColor = 'rgba(144,238,144)'; +if (typeof(user_map_custom.qsoconfirm) !== 'undefined') { + confirmedColor = user_map_custom.qsoconfirm.color; } function load_jcc_map() { diff --git a/assets/js/sections/racmap.js b/assets/js/sections/racmap.js index 8aa14d286..66e9f31ed 100644 --- a/assets/js/sections/racmap.js +++ b/assets/js/sections/racmap.js @@ -5,13 +5,17 @@ let map; let info; let clickmarkers = []; -let confirmedColor = user_map_custom.qsoconfirm.color; -let workedColor = user_map_custom.qso.color; -let unworkedColor = ''; +let unworkedColor = 'red'; if (typeof(user_map_custom.unworked) !== 'undefined') { unworkedColor = user_map_custom.unworked.color; -} else { - unworkedColor = 'red'; +} +let workedColor = 'rgba(255, 0, 0)'; +if (typeof(user_map_custom.qso) !== 'undefined') { + workedColor = user_map_custom.qso.color; +} +let confirmedColor = 'rgba(144,238,144)'; +if (typeof(user_map_custom.qsoconfirm) !== 'undefined') { + confirmedColor = user_map_custom.qsoconfirm.color; } const states = 'AB,BC,MB,NB,NL,NT,NS,NU,ON,PE,QC,SK,YT'; diff --git a/assets/js/sections/wajamap.js b/assets/js/sections/wajamap.js index 5726507f0..f13332ef2 100644 --- a/assets/js/sections/wajamap.js +++ b/assets/js/sections/wajamap.js @@ -5,13 +5,17 @@ let map; let info; let clickmarkers = []; -let confirmedColor = user_map_custom.qsoconfirm.color; -let workedColor = user_map_custom.qso.color; -let unworkedColor = ''; +let unworkedColor = 'red'; if (typeof(user_map_custom.unworked) !== 'undefined') { unworkedColor = user_map_custom.unworked.color; -} else { - unworkedColor = 'red'; +} +let workedColor = 'rgba(255, 0, 0)'; +if (typeof(user_map_custom.qso) !== 'undefined') { + workedColor = user_map_custom.qso.color; +} +let confirmedColor = 'rgba(144,238,144)'; +if (typeof(user_map_custom.qsoconfirm) !== 'undefined') { + confirmedColor = user_map_custom.qsoconfirm.color; } const states = '01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47'; diff --git a/assets/js/sections/wapmap.js b/assets/js/sections/wapmap.js index c0efbd40f..33055d2af 100644 --- a/assets/js/sections/wapmap.js +++ b/assets/js/sections/wapmap.js @@ -5,13 +5,17 @@ var map; var info; var clickmarkers = []; -let confirmedColor = user_map_custom.qsoconfirm.color; -let workedColor = user_map_custom.qso.color; -let unworkedColor = ''; +let unworkedColor = 'red'; if (typeof(user_map_custom.unworked) !== 'undefined') { unworkedColor = user_map_custom.unworked.color; -} else { - unworkedColor = 'red'; +} +let workedColor = 'rgba(255, 0, 0)'; +if (typeof(user_map_custom.qso) !== 'undefined') { + workedColor = user_map_custom.qso.color; +} +let confirmedColor = 'rgba(144,238,144)'; +if (typeof(user_map_custom.qsoconfirm) !== 'undefined') { + confirmedColor = user_map_custom.qsoconfirm.color; } const states = 'DR,FL,FR,GD,GR,LB,NB,NH,OV,UT,ZH,ZL'; diff --git a/assets/js/sections/wasmap.js b/assets/js/sections/wasmap.js index 282eea7cd..28ec490b2 100644 --- a/assets/js/sections/wasmap.js +++ b/assets/js/sections/wasmap.js @@ -5,13 +5,17 @@ let map; let info; let clickmarkers = []; -let confirmedColor = user_map_custom.qsoconfirm.color; -let workedColor = user_map_custom.qso.color; -let unworkedColor = ''; +let unworkedColor = 'red'; if (typeof(user_map_custom.unworked) !== 'undefined') { unworkedColor = user_map_custom.unworked.color; -} else { - unworkedColor = 'red'; +} +let workedColor = 'rgba(255, 0, 0)'; +if (typeof(user_map_custom.qso) !== 'undefined') { + workedColor = user_map_custom.qso.color; +} +let confirmedColor = 'rgba(144,238,144)'; +if (typeof(user_map_custom.qsoconfirm) !== 'undefined') { + confirmedColor = user_map_custom.qsoconfirm.color; } const states = 'AK,AL,AR,AZ,CA,CO,CT,DE,FL,GA,HI,IA,ID,IL,IN,KS,KY,LA,MA,MD,ME,MI,MN,MO,MS,MT,NC,ND,NE,NH,NJ,NM,NV,NY,OH,OK,OR,PA,RI,SC,SD,TN,TX,UT,VA,VT,WA,WI,WV,WY'; From 1004d4295c72091c4fe45eeca7026a07d18986d5 Mon Sep 17 00:00:00 2001 From: phl0 Date: Fri, 12 Dec 2025 09:18:59 +0100 Subject: [PATCH 6/9] Apply same fallback colors to all maps --- assets/js/sections/award_pl_polska.js | 15 ++++++++++++--- assets/js/sections/cqmap.js | 18 +++++++++--------- assets/js/sections/dxccmap.js | 12 +++++++++--- assets/js/sections/ffma.js | 15 ++++++++++++--- assets/js/sections/gridmap.js | 10 +++++----- assets/js/sections/gridmaster.js | 15 ++++++++++++--- assets/js/sections/helvetiamap.js | 16 ++++++++++------ assets/js/sections/iotamap.js | 18 +++++++++--------- assets/js/sections/itumap.js | 18 +++++++++--------- assets/js/sections/jccmap.js | 18 +++++++++--------- assets/js/sections/racmap.js | 18 +++++++++--------- assets/js/sections/wajamap.js | 18 +++++++++--------- assets/js/sections/wapmap.js | 18 +++++++++--------- assets/js/sections/wasmap.js | 18 +++++++++--------- 14 files changed, 132 insertions(+), 95 deletions(-) diff --git a/assets/js/sections/award_pl_polska.js b/assets/js/sections/award_pl_polska.js index c8162cb35..8b84ada19 100644 --- a/assets/js/sections/award_pl_polska.js +++ b/assets/js/sections/award_pl_polska.js @@ -34,9 +34,18 @@ var isLoading = false; // Prevent duplicate API calls var isModalLoading = false; // Prevent duplicate modal opens // Use user-customizable map colors (same as RAC and other awards) -var confirmedColor = user_map_custom.qsoconfirm.color; -var workedColor = user_map_custom.qso.color; -var unworkedColor = (typeof(user_map_custom.unworked) !== 'undefined') ? user_map_custom.unworked.color : 'red'; +let confirmedColor = 'rgba(144,238,144)'; +if (typeof(user_map_custom.qsoconfirm) !== 'undefined') { + confirmedColor = user_map_custom.qsoconfirm.color; +} +let workedColor = 'rgba(229, 165, 10)'; +if (typeof(user_map_custom.qso) !== 'undefined') { + workedColor = user_map_custom.qso.color; +} +let unworkedColor = 'rgba(204, 55, 45)'; +if (typeof(user_map_custom.unworked) !== 'undefined') { + unworkedColor = user_map_custom.unworked.color; +} function showMapSpinner() { var mapContainer = $('#polska-map'); diff --git a/assets/js/sections/cqmap.js b/assets/js/sections/cqmap.js index 795a7c461..d02d4a0d8 100644 --- a/assets/js/sections/cqmap.js +++ b/assets/js/sections/cqmap.js @@ -4,17 +4,17 @@ var geojson; var map; var info; -let unworkedColor = 'red'; -if (typeof(user_map_custom.unworked) !== 'undefined') { - unworkedColor = user_map_custom.unworked.color; -} -let workedColor = 'rgba(255, 0, 0)'; -if (typeof(user_map_custom.qso) !== 'undefined') { - workedColor = user_map_custom.qso.color; -} let confirmedColor = 'rgba(144,238,144)'; if (typeof(user_map_custom.qsoconfirm) !== 'undefined') { - confirmedColor = user_map_custom.qsoconfirm.color; + confirmedColor = user_map_custom.qsoconfirm.color; +} +let workedColor = 'rgba(229, 165, 10)'; +if (typeof(user_map_custom.qso) !== 'undefined') { + workedColor = user_map_custom.qso.color; +} +let unworkedColor = 'rgba(204, 55, 45)'; +if (typeof(user_map_custom.unworked) !== 'undefined') { + unworkedColor = user_map_custom.unworked.color; } document.addEventListener("DOMContentLoaded", function() { diff --git a/assets/js/sections/dxccmap.js b/assets/js/sections/dxccmap.js index c98ad0c17..9c474d76c 100644 --- a/assets/js/sections/dxccmap.js +++ b/assets/js/sections/dxccmap.js @@ -1,6 +1,12 @@ -let confirmedColor = user_map_custom.qsoconfirm.color; -let workedColor = user_map_custom.qso.color; -let unworkedColor = 'red'; +let confirmedColor = 'rgba(144,238,144)'; +if (typeof(user_map_custom.qsoconfirm) !== 'undefined') { + confirmedColor = user_map_custom.qsoconfirm.color; +} +let workedColor = 'rgba(229, 165, 10)'; +if (typeof(user_map_custom.qso) !== 'undefined') { + workedColor = user_map_custom.qso.color; +} +let unworkedColor = 'rgba(204, 55, 45)'; if (typeof(user_map_custom.unworked) !== 'undefined') { unworkedColor = user_map_custom.unworked.color; } diff --git a/assets/js/sections/ffma.js b/assets/js/sections/ffma.js index 4c4c82b40..34c607b6f 100644 --- a/assets/js/sections/ffma.js +++ b/assets/js/sections/ffma.js @@ -3,10 +3,19 @@ let grid_four = ''; let grid_four_lotw = ''; let grid_four_paper = ''; -let confirmedColor = user_map_custom.qsoconfirm.color; +let confirmedColor = 'rgba(144,238,144)'; +if (typeof(user_map_custom.qsoconfirm) !== 'undefined') { + confirmedColor = user_map_custom.qsoconfirm.color; +} +let workedColor = 'rgba(229, 165, 10)'; +if (typeof(user_map_custom.qso) !== 'undefined') { + workedColor = user_map_custom.qso.color; +} // Take station color for paper QSLs here -let paperColor = user_map_custom.station.color -let workedColor = user_map_custom.qso.color; +let paperColor = 'rgba(204, 55, 45)'; +if (typeof(user_map_custom.station) !== 'undefined') { + paperColor = user_map_custom.station.color; +} function gridPlot(form) { $(".ld-ext-right-plot").addClass('running'); diff --git a/assets/js/sections/gridmap.js b/assets/js/sections/gridmap.js index 9a5fca388..a8734b44c 100644 --- a/assets/js/sections/gridmap.js +++ b/assets/js/sections/gridmap.js @@ -1,12 +1,12 @@ var modalloading=false; let confirmedColor = 'rgba(144,238,144)'; -if (typeof user_map_custom.qsoconfirm !== 'undefined') { - confirmedColor = user_map_custom.qsoconfirm.color; +if (typeof(user_map_custom.qsoconfirm) !== 'undefined') { + confirmedColor = user_map_custom.qsoconfirm.color; } -let workedColor = 'rgba(255, 0, 0)'; -if (typeof user_map_custom.qso !== 'undefined') { - workedColor = user_map_custom.qso.color; +let workedColor = 'rgba(229, 165, 10)'; +if (typeof(user_map_custom.qso) !== 'undefined') { + workedColor = user_map_custom.qso.color; } document.addEventListener("DOMContentLoaded", function() { diff --git a/assets/js/sections/gridmaster.js b/assets/js/sections/gridmaster.js index a48a9bfce..8f60c94b8 100644 --- a/assets/js/sections/gridmaster.js +++ b/assets/js/sections/gridmaster.js @@ -3,10 +3,19 @@ let grid_four = ''; let grid_four_lotw = ''; let grid_four_paper = ''; -let confirmedColor = user_map_custom.qsoconfirm.color; +let confirmedColor = 'rgba(144,238,144)'; +if (typeof(user_map_custom.qsoconfirm) !== 'undefined') { + confirmedColor = user_map_custom.qsoconfirm.color; +} +let workedColor = 'rgba(229, 165, 10)'; +if (typeof(user_map_custom.qso) !== 'undefined') { + workedColor = user_map_custom.qso.color; +} // Take station color for paper QSLs here -let paperColor = user_map_custom.station.color -let workedColor = user_map_custom.qso.color; +let paperColor = 'rgba(204, 55, 45)'; +if (typeof(user_map_custom.station) !== 'undefined') { + paperColor = user_map_custom.station.color; +} function gridPlot(form, dxcc) { $(".ld-ext-right-plot").addClass('running'); diff --git a/assets/js/sections/helvetiamap.js b/assets/js/sections/helvetiamap.js index 7266f9475..ea432d506 100644 --- a/assets/js/sections/helvetiamap.js +++ b/assets/js/sections/helvetiamap.js @@ -5,13 +5,17 @@ let map; let info; let clickmarkers = []; -let confirmedColor = user_map_custom.qsoconfirm.color; -let workedColor = user_map_custom.qso.color; -let unworkedColor = ''; +let confirmedColor = 'rgba(144,238,144)'; +if (typeof(user_map_custom.qsoconfirm) !== 'undefined') { + confirmedColor = user_map_custom.qsoconfirm.color; +} +let workedColor = 'rgba(229, 165, 10)'; +if (typeof(user_map_custom.qso) !== 'undefined') { + workedColor = user_map_custom.qso.color; +} +let unworkedColor = 'rgba(204, 55, 45)'; if (typeof(user_map_custom.unworked) !== 'undefined') { - unworkedColor = user_map_custom.unworked.color; -} else { - unworkedColor = 'red'; + unworkedColor = user_map_custom.unworked.color; } const states = 'AG,AI,AR,BE,BL,BS,FR,GE,GL,GR,JU,LU,NE,NW,OW,SG,SH,SO,SZ,TG,TI,UR,VD,VS,ZG,ZH'; diff --git a/assets/js/sections/iotamap.js b/assets/js/sections/iotamap.js index 6848c5175..215ffd6f4 100644 --- a/assets/js/sections/iotamap.js +++ b/assets/js/sections/iotamap.js @@ -1,14 +1,14 @@ -let unworkedColor = 'red'; -if (typeof(user_map_custom.unworked) !== 'undefined') { - unworkedColor = user_map_custom.unworked.color; -} -let workedColor = 'rgba(255, 0, 0)'; -if (typeof(user_map_custom.qso) !== 'undefined') { - workedColor = user_map_custom.qso.color; -} let confirmedColor = 'rgba(144,238,144)'; if (typeof(user_map_custom.qsoconfirm) !== 'undefined') { - confirmedColor = user_map_custom.qsoconfirm.color; + confirmedColor = user_map_custom.qsoconfirm.color; +} +let workedColor = 'rgba(229, 165, 10)'; +if (typeof(user_map_custom.qso) !== 'undefined') { + workedColor = user_map_custom.qso.color; +} +let unworkedColor = 'rgba(204, 55, 45)'; +if (typeof(user_map_custom.unworked) !== 'undefined') { + unworkedColor = user_map_custom.unworked.color; } var osmUrl = $('#iotamapjs').attr("tileUrl"); diff --git a/assets/js/sections/itumap.js b/assets/js/sections/itumap.js index ce6f191ff..ba2bd1904 100644 --- a/assets/js/sections/itumap.js +++ b/assets/js/sections/itumap.js @@ -4,17 +4,17 @@ let geojson; let map; let info; -let unworkedColor = 'red'; -if (typeof(user_map_custom.unworked) !== 'undefined') { - unworkedColor = user_map_custom.unworked.color; -} -let workedColor = 'rgba(255, 0, 0)'; -if (typeof(user_map_custom.qso) !== 'undefined') { - workedColor = user_map_custom.qso.color; -} let confirmedColor = 'rgba(144,238,144)'; if (typeof(user_map_custom.qsoconfirm) !== 'undefined') { - confirmedColor = user_map_custom.qsoconfirm.color; + confirmedColor = user_map_custom.qsoconfirm.color; +} +let workedColor = 'rgba(229, 165, 10)'; +if (typeof(user_map_custom.qso) !== 'undefined') { + workedColor = user_map_custom.qso.color; +} +let unworkedColor = 'rgba(204, 55, 45)'; +if (typeof(user_map_custom.unworked) !== 'undefined') { + unworkedColor = user_map_custom.unworked.color; } function load_itu_map() { diff --git a/assets/js/sections/jccmap.js b/assets/js/sections/jccmap.js index 8759f2412..d5f629133 100644 --- a/assets/js/sections/jccmap.js +++ b/assets/js/sections/jccmap.js @@ -1,15 +1,15 @@ let osmUrl = tileUrl; -let unworkedColor = 'red'; -if (typeof(user_map_custom.unworked) !== 'undefined') { - unworkedColor = user_map_custom.unworked.color; -} -let workedColor = 'rgba(255, 0, 0)'; -if (typeof(user_map_custom.qso) !== 'undefined') { - workedColor = user_map_custom.qso.color; -} let confirmedColor = 'rgba(144,238,144)'; if (typeof(user_map_custom.qsoconfirm) !== 'undefined') { - confirmedColor = user_map_custom.qsoconfirm.color; + confirmedColor = user_map_custom.qsoconfirm.color; +} +let workedColor = 'rgba(229, 165, 10)'; +if (typeof(user_map_custom.qso) !== 'undefined') { + workedColor = user_map_custom.qso.color; +} +let unworkedColor = 'rgba(204, 55, 45)'; +if (typeof(user_map_custom.unworked) !== 'undefined') { + unworkedColor = user_map_custom.unworked.color; } function load_jcc_map() { diff --git a/assets/js/sections/racmap.js b/assets/js/sections/racmap.js index 66e9f31ed..6244809ee 100644 --- a/assets/js/sections/racmap.js +++ b/assets/js/sections/racmap.js @@ -5,17 +5,17 @@ let map; let info; let clickmarkers = []; -let unworkedColor = 'red'; -if (typeof(user_map_custom.unworked) !== 'undefined') { - unworkedColor = user_map_custom.unworked.color; -} -let workedColor = 'rgba(255, 0, 0)'; -if (typeof(user_map_custom.qso) !== 'undefined') { - workedColor = user_map_custom.qso.color; -} let confirmedColor = 'rgba(144,238,144)'; if (typeof(user_map_custom.qsoconfirm) !== 'undefined') { - confirmedColor = user_map_custom.qsoconfirm.color; + confirmedColor = user_map_custom.qsoconfirm.color; +} +let workedColor = 'rgba(229, 165, 10)'; +if (typeof(user_map_custom.qso) !== 'undefined') { + workedColor = user_map_custom.qso.color; +} +let unworkedColor = 'rgba(204, 55, 45)'; +if (typeof(user_map_custom.unworked) !== 'undefined') { + unworkedColor = user_map_custom.unworked.color; } const states = 'AB,BC,MB,NB,NL,NT,NS,NU,ON,PE,QC,SK,YT'; diff --git a/assets/js/sections/wajamap.js b/assets/js/sections/wajamap.js index f13332ef2..2b415b98e 100644 --- a/assets/js/sections/wajamap.js +++ b/assets/js/sections/wajamap.js @@ -5,17 +5,17 @@ let map; let info; let clickmarkers = []; -let unworkedColor = 'red'; -if (typeof(user_map_custom.unworked) !== 'undefined') { - unworkedColor = user_map_custom.unworked.color; -} -let workedColor = 'rgba(255, 0, 0)'; -if (typeof(user_map_custom.qso) !== 'undefined') { - workedColor = user_map_custom.qso.color; -} let confirmedColor = 'rgba(144,238,144)'; if (typeof(user_map_custom.qsoconfirm) !== 'undefined') { - confirmedColor = user_map_custom.qsoconfirm.color; + confirmedColor = user_map_custom.qsoconfirm.color; +} +let workedColor = 'rgba(229, 165, 10)'; +if (typeof(user_map_custom.qso) !== 'undefined') { + workedColor = user_map_custom.qso.color; +} +let unworkedColor = 'rgba(204, 55, 45)'; +if (typeof(user_map_custom.unworked) !== 'undefined') { + unworkedColor = user_map_custom.unworked.color; } const states = '01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47'; diff --git a/assets/js/sections/wapmap.js b/assets/js/sections/wapmap.js index 33055d2af..f0baf377a 100644 --- a/assets/js/sections/wapmap.js +++ b/assets/js/sections/wapmap.js @@ -5,17 +5,17 @@ var map; var info; var clickmarkers = []; -let unworkedColor = 'red'; -if (typeof(user_map_custom.unworked) !== 'undefined') { - unworkedColor = user_map_custom.unworked.color; -} -let workedColor = 'rgba(255, 0, 0)'; -if (typeof(user_map_custom.qso) !== 'undefined') { - workedColor = user_map_custom.qso.color; -} let confirmedColor = 'rgba(144,238,144)'; if (typeof(user_map_custom.qsoconfirm) !== 'undefined') { - confirmedColor = user_map_custom.qsoconfirm.color; + confirmedColor = user_map_custom.qsoconfirm.color; +} +let workedColor = 'rgba(229, 165, 10)'; +if (typeof(user_map_custom.qso) !== 'undefined') { + workedColor = user_map_custom.qso.color; +} +let unworkedColor = 'rgba(204, 55, 45)'; +if (typeof(user_map_custom.unworked) !== 'undefined') { + unworkedColor = user_map_custom.unworked.color; } const states = 'DR,FL,FR,GD,GR,LB,NB,NH,OV,UT,ZH,ZL'; diff --git a/assets/js/sections/wasmap.js b/assets/js/sections/wasmap.js index 28ec490b2..a5316a096 100644 --- a/assets/js/sections/wasmap.js +++ b/assets/js/sections/wasmap.js @@ -5,17 +5,17 @@ let map; let info; let clickmarkers = []; -let unworkedColor = 'red'; -if (typeof(user_map_custom.unworked) !== 'undefined') { - unworkedColor = user_map_custom.unworked.color; -} -let workedColor = 'rgba(255, 0, 0)'; -if (typeof(user_map_custom.qso) !== 'undefined') { - workedColor = user_map_custom.qso.color; -} let confirmedColor = 'rgba(144,238,144)'; if (typeof(user_map_custom.qsoconfirm) !== 'undefined') { - confirmedColor = user_map_custom.qsoconfirm.color; + confirmedColor = user_map_custom.qsoconfirm.color; +} +let workedColor = 'rgba(229, 165, 10)'; +if (typeof(user_map_custom.qso) !== 'undefined') { + workedColor = user_map_custom.qso.color; +} +let unworkedColor = 'rgba(204, 55, 45)'; +if (typeof(user_map_custom.unworked) !== 'undefined') { + unworkedColor = user_map_custom.unworked.color; } const states = 'AK,AL,AR,AZ,CA,CO,CT,DE,FL,GA,HI,IA,ID,IL,IN,KS,KY,LA,MA,MD,ME,MI,MN,MO,MS,MT,NC,ND,NE,NH,NJ,NM,NV,NY,OH,OK,OR,PA,RI,SC,SD,TN,TX,UT,VA,VT,WA,WI,WV,WY'; From 959acf125708d52f7cfd53f1945f261274bcde1b Mon Sep 17 00:00:00 2001 From: phl0 Date: Fri, 12 Dec 2025 09:35:17 +0100 Subject: [PATCH 7/9] Default values for icons and color in user edit --- application/views/user/edit.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/application/views/user/edit.php b/application/views/user/edit.php index 04e16b1f6..88fbe2489 100644 --- a/application/views/user/edit.php +++ b/application/views/user/edit.php @@ -548,8 +548,8 @@
- -
"; ?>
+ "> +
"; ?>
- + " style="padding:initial;" data-icon="qso" />
@@ -578,7 +578,7 @@
- " style="padding:initial;" data-icon="qsoconfirm" /> + " style="padding:initial;" data-icon="qsoconfirm" />
@@ -589,7 +589,7 @@
- + " style="padding:initial;" data-icon="unworked" />
From f56e9b3d1d1d2b48ccd11dc2d3b1ac9d2792cbe6 Mon Sep 17 00:00:00 2001 From: phl0 Date: Fri, 12 Dec 2025 10:03:00 +0100 Subject: [PATCH 8/9] More fallback colors --- assets/js/leaflet/L.MaidenheadColoured.js | 6 +++--- assets/js/leaflet/L.MaidenheadColouredGridMap.js | 2 +- assets/js/leaflet/L.MaidenheadColouredGridmasterMap.js | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/assets/js/leaflet/L.MaidenheadColoured.js b/assets/js/leaflet/L.MaidenheadColoured.js index 23e73779a..6196cdaa7 100644 --- a/assets/js/leaflet/L.MaidenheadColoured.js +++ b/assets/js/leaflet/L.MaidenheadColoured.js @@ -8,13 +8,13 @@ L.Maidenhead = L.LayerGroup.extend({ // Line and label color workedColor: user_map_custom?.qso?.color ? hexToRgba(user_map_custom.qso.color, 0.5) - : 'rgba(255, 0, 0, 0.4)', + : 'rgba(229, 165, 10, 0.5)', confirmedColor: user_map_custom?.qsoconfirm?.color ? hexToRgba(user_map_custom.qsoconfirm.color, 0.5) - : 'rgba(144,238,144, 0.5)', + : 'rgba(144, 238, 144, 0.5)', - color: 'rgba(255, 0, 0, 0.4)', + color: 'rgba(204, 55, 45, 0.5)', // Redraw on move or moveend redraw: 'move' diff --git a/assets/js/leaflet/L.MaidenheadColouredGridMap.js b/assets/js/leaflet/L.MaidenheadColouredGridMap.js index 0d027e541..7430a6bf1 100644 --- a/assets/js/leaflet/L.MaidenheadColouredGridMap.js +++ b/assets/js/leaflet/L.MaidenheadColouredGridMap.js @@ -10,7 +10,7 @@ L.Maidenhead = L.LayerGroup.extend({ workedColor: user_map_custom?.qso?.color ? hexToRgba(user_map_custom.qso.color, 0.5) - : 'rgba(255, 0, 0, 0.5)', + : 'rgba(229, 165, 10, 0.5)', confirmedColor: user_map_custom?.qsoconfirm?.color ? hexToRgba(user_map_custom.qsoconfirm.color, 0.5) diff --git a/assets/js/leaflet/L.MaidenheadColouredGridmasterMap.js b/assets/js/leaflet/L.MaidenheadColouredGridmasterMap.js index 4c36fef59..896cca353 100644 --- a/assets/js/leaflet/L.MaidenheadColouredGridmasterMap.js +++ b/assets/js/leaflet/L.MaidenheadColouredGridmasterMap.js @@ -11,14 +11,14 @@ L.Maidenhead = L.LayerGroup.extend({ workedColor: user_map_custom?.qso?.color ? hexToRgba(user_map_custom.qso.color, 0.5) - : 'rgba(255, 251, 0, 0.5)', + : 'rgba(229, 165, 10, 0.5)', confirmedColor: user_map_custom?.qsoconfirm?.color ? hexToRgba(user_map_custom.qsoconfirm.color, 0.5) - : 'rgba(144,238,144, 0.5)', + : 'rgba(144, 238, 144, 0.5)', unworkedColor : user_map_custom?.unworked?.color ? hexToRgba(user_map_custom.unworked.color, 0.5) - : 'rgba(255, 0, 0, 0.5)', + : 'rgba(204, 55, 45, 0.5)', // Redraw on move or moveend redraw: 'move' From 471f7f1576c59ca2a8a784e0a8fe05b02ac3caf2 Mon Sep 17 00:00:00 2001 From: phl0 Date: Fri, 12 Dec 2025 10:25:57 +0100 Subject: [PATCH 9/9] Default colo adjusted --- assets/js/leaflet/leafembed.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/leaflet/leafembed.js b/assets/js/leaflet/leafembed.js index 73a138008..a47e64562 100644 --- a/assets/js/leaflet/leafembed.js +++ b/assets/js/leaflet/leafembed.js @@ -1,6 +1,6 @@ var map; var plotlayers=[]; -var iconsList={'qso':{'color':'#FF0000','icon':'fas fa-dot-circle'}}; +var iconsList={'qso':{'color':'#E5A50A','icon':'fas fa-dot-circle'}}; var stationIcon = L.divIcon({className:'cspot_station'}); var qsoIcon = L.divIcon({className:'cspot_qso'}); //default (fas fa-dot-circle red)