mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2025-10-27 08:49:27 +00:00
SOTA & WWFF alert providers #17
This commit is contained in:
@@ -59,6 +59,12 @@ function updateTable() {
|
||||
var time = moment.unix(s["time"]).utc();
|
||||
var time_formatted = time.format("HH:mm");
|
||||
|
||||
// Format DX flag
|
||||
var dx_flag = "<i class='fa-solid fa-circle-question'></i>";
|
||||
if (s["dx_flag"] && s["dx_flag"] != null && s["dx_flag"] != "") {
|
||||
dx_flag = s["dx_flag"];
|
||||
}
|
||||
|
||||
// Format dx country
|
||||
var dx_country = s["dx_country"];
|
||||
if (dx_country == null) {
|
||||
@@ -96,12 +102,12 @@ function updateTable() {
|
||||
// Format sig_refs
|
||||
var sig_refs = "";
|
||||
if (s["sig_refs"]) {
|
||||
sig_refs = s["sig_refs"].join(", ");
|
||||
sig_refs = a["sig_refs"].map(a => `<span class='nowrap'>${a}</span>`).join(", ");
|
||||
}
|
||||
|
||||
// Format DE flag
|
||||
var de_flag = "<i class='fa-solid fa-circle-question'></i>";
|
||||
if (s["de_flag"] && s["de_flag"] != "") {
|
||||
if (s["de_flag"] && s["de_flag"] != null && s["de_flag"] != "") {
|
||||
de_flag = s["de_flag"];
|
||||
}
|
||||
|
||||
@@ -118,7 +124,7 @@ function updateTable() {
|
||||
|
||||
// Populate the row
|
||||
$tr.append(`<td class='nowrap'>${time_formatted}</td>`);
|
||||
$tr.append(`<td class='nowrap'><span class='flag-wrapper hideonmobile' title='${dx_country}'>${s["dx_flag"]}</span><a class='dx-link' href='https://qrz.com/db/${s["dx_call"]}' target='_new'>${s["dx_call"]}</a></td>`);
|
||||
$tr.append(`<td class='nowrap'><span class='flag-wrapper hideonmobile' title='${dx_country}'>${dx_flag}</span><a class='dx-link' href='https://qrz.com/db/${s["dx_call"]}' target='_new'>${s["dx_call"]}</a></td>`);
|
||||
$tr.append(`<td class='nowrap'><span class='band-bullet band-bullet-${cssFormattedBandName}' title='${bandFullName}'>■</span>${freq_string}</td>`);
|
||||
$tr.append(`<td class='nowrap'>${mode_string}</td>`);
|
||||
$tr.append(`<td class='hideonmobile'>${commentText}</td>`);
|
||||
|
||||
Reference in New Issue
Block a user