From 81f02075682ee3b865c33aff716791e4a3796858 Mon Sep 17 00:00:00 2001 From: John Hays Date: Sat, 6 Jan 2024 16:48:54 -0800 Subject: [PATCH] Update client --- client/dashboard.css | 4 ++-- client/script.js | 8 ++++++-- index.js | 3 ++- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/client/dashboard.css b/client/dashboard.css index 8d04e20..d190517 100644 --- a/client/dashboard.css +++ b/client/dashboard.css @@ -17,7 +17,7 @@ td , caption , th { border: 1px solid black; background-color: Lime; } -#lhtable caption , #linktable caption , #repeaters caption { +#lhtable caption , #linktable caption , #rptrtable caption { font-weight : bold; font-size : 2em; color : white; @@ -25,6 +25,6 @@ td , caption , th { width : 100%; } -#linktable , #lhtable , #repeaters { +#linktable , #lhtable , #rptrtable { width: 100%; } diff --git a/client/script.js b/client/script.js index 4f3c438..56d6a59 100644 --- a/client/script.js +++ b/client/script.js @@ -32,10 +32,14 @@ socket.addEventListener("links", data => { socket.addEventListener("repeaters", data => { $("#repeaters").empty(); $("#repeaters").append(""); - $("#rptrtable").append(""); + $("#rptrtable").append("" + + ""); $.each(data, function(index,val){ $("#rptrtable").append(""); + " Mhz."); }); }); diff --git a/index.js b/index.js index f467915..52f747d 100644 --- a/index.js +++ b/index.js @@ -66,7 +66,8 @@ function buildrepeaters(){ } callsign += " " + rptr.band; repeaterlist.push({'callsign':callsign,'frequency':rptr.frequency, - 'offset':rptr.offset,'type':rptr.type}); + 'offset':rptr.offset,'type':rptr.type,'description1' :rptr.description1, + 'description2':rptr.description2,'latitude':rptr.latitude, 'longitude': rptr.longitude}); } }
Repeaters
CallsignFrequencyOffset
CallsignFrequencyOffsetDescriptionLocation
" + val.callsign + "" + val.frequency + - " Mhz." + val.offset + " Mhz.
" + val.offset + " Mhz." + val.description1 + " - " + + val.description2 + + "" + val.latitude + " " + val.longitude + "