From bd92263d78fdd75b69ce9237067da93f3288f5ea Mon Sep 17 00:00:00 2001 From: Steven Hiscocks Date: Sat, 26 Apr 2025 17:42:14 +0100 Subject: [PATCH] Add WWBOTA spots --- HamAlert/www/css/index.css | 3 +++ HamAlert/www/js/app.js | 10 ++++++++++ 2 files changed, 13 insertions(+) diff --git a/HamAlert/www/css/index.css b/HamAlert/www/css/index.css index 9931da8..58e834d 100644 --- a/HamAlert/www/css/index.css +++ b/HamAlert/www/css/index.css @@ -107,6 +107,9 @@ ons-list-item.spot.daychange { .spotTag.wwff, .spotTag.pota { background: #724b25 !important; } +.spotTag.wwbota { + background: #2c39aa !important; +} .spotTag.pskr { background: #fffd38 !important; color: #000 !important; diff --git a/HamAlert/www/js/app.js b/HamAlert/www/js/app.js index cdf1572..4406651 100644 --- a/HamAlert/www/js/app.js +++ b/HamAlert/www/js/app.js @@ -42,6 +42,13 @@ var spotDetailsMap = { else return [spot.wwffProgram.toUpperCase(), htmlEscape(text)]; }, + wwbotaRef: function(spot) { + var text = spot.wwbotaRef; + if (spot.wwbotaName) { + text += " (" + spot.wwbotaName + ")"; + } + return ['Bunker', htmlEscape(text)]; + }, iotaGroupRef: function(spot) { var text = spot.iotaGroupRef; if (spot.iotaGroupName) { @@ -230,6 +237,9 @@ function formatSpots() { else spotTag = 'wwff'; title += " in " + spot.wwffRef; + } else if (spot.wwbotaRef) { + spotTag = 'wwbota'; + title += " in " + spot.wwbotaRef; } else if (spot.iotaGroupRef) { spotTag = 'iota'; title += " on " + spot.iotaGroupRef;