From c09387e3c9546855761370220050d8f7033cb20d Mon Sep 17 00:00:00 2001 From: Marat Fayzullin Date: Mon, 16 Oct 2023 22:02:05 -0400 Subject: [PATCH] Added colored band/mode designators to locator info windows. --- htdocs/lib/MapLocators.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/htdocs/lib/MapLocators.js b/htdocs/lib/MapLocators.js index 5c586f08..dfba0be8 100644 --- a/htdocs/lib/MapLocators.js +++ b/htdocs/lib/MapLocators.js @@ -286,11 +286,14 @@ Locator.prototype.getInfoHTML = function(locator, pos, receiverMarker = null) { var odd = false; var list = inLocator.map(function(x) { + var mc = self.colorMode === 'mode'? chroma(self.colorKeys[x.mode]).alpha(0.5) : 'inherit'; + var bc = self.colorMode === 'band'? chroma(self.colorKeys[x.band]).alpha(0.5) : 'inherit'; + var row = '' + Utils.linkifyCallsign(x.callsign) + '' + '' + moment(x.lastseen).fromNow() + '' - + '' + x.mode + '' - + '' + x.band + '' + + '' + x.mode + '' + + '' + x.band + '' + ''; odd = !odd;