Various tweaks including getting GMA SIGs working properly

This commit is contained in:
Ian Renton
2025-10-04 08:52:11 +01:00
parent df5c01bb62
commit bfcaf6e261
10 changed files with 69 additions and 28 deletions

View File

@@ -96,7 +96,7 @@ function updateTable() {
var mhz = Math.floor(s["freq"] / 1000000.0);
var khz = Math.floor((s["freq"] - (mhz * 1000000.0)) / 1000.0);
var hz = Math.floor(s["freq"] - (mhz * 1000000.0) - (khz * 1000.0));
var hz_string = (hz > 0) ? hz.toFixed(0) : "";
var hz_string = (hz > 0) ? hz.toFixed(0)[0] : "";
var freq_string = `<span class='freq-mhz'>${mhz.toFixed(0)}</span><span class='freq-khz'>${khz.toFixed(0).padStart(3, '0')}</span><span class='freq-hz hideonmobile'>${hz_string}</span>`
// Format the mode
@@ -114,6 +114,12 @@ function updateTable() {
commentText = escapeHtml(s["comment"]);
}
// Sig or fallback to source
var sigSourceText = s["source"];
if (s["sig"]) {
sigSourceText = s["sig"];
}
// Format sig_refs
var sig_refs = ""
if (s["sig_refs"]) {