From 9a832c4fa250399bc8b31531b60ffbcf147933ab Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Thu, 2 Nov 2023 15:07:57 +0100 Subject: [PATCH] added Initials of SOTA, POTA... aso --- assets/js/sections/simplefle.js | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/assets/js/sections/simplefle.js b/assets/js/sections/simplefle.js index dc1f2ce8..565b9c09 100644 --- a/assets/js/sections/simplefle.js +++ b/assets/js/sections/simplefle.js @@ -216,17 +216,29 @@ function handleInput() { sotaWwff, ]); + let sotaWwffText = ""; + + if (isSOTA(sotaWwff)) { + sotaWwffText = `S: ${sotaWwff}`; + } else if (isPOTA(sotaWwff)) { + sotaWwffText = `P: ${sotaWwff}`; + } else if (isIOTA(sotaWwff)) { + sotaWwffText = `I: ${sotaWwff}`; + } else if (isWWFF(sotaWwff)) { + sotaWwffText = `W: ${sotaWwff}`; + } + const tableRow = $(` - ${extraQsoDate} - ${qsotime} - ${callsign} - ${band} - ${mode} - ${rst_s} - ${rst_r} - ${operator} - ${sotaWwff} - `); + ${extraQsoDate} + ${qsotime} + ${callsign} + ${band} + ${mode} + ${rst_s} + ${rst_r} + ${operator} + ${sotaWwffText} + `); $("#qsoTable > tbody:last-child").append(tableRow);