Update client

pull/1/head
John Hays 11 months ago
parent bdaac4fa61
commit 81f0207568

@ -17,7 +17,7 @@ td , caption , th {
border: 1px solid black; border: 1px solid black;
background-color: Lime; background-color: Lime;
} }
#lhtable caption , #linktable caption , #repeaters caption { #lhtable caption , #linktable caption , #rptrtable caption {
font-weight : bold; font-weight : bold;
font-size : 2em; font-size : 2em;
color : white; color : white;
@ -25,6 +25,6 @@ td , caption , th {
width : 100%; width : 100%;
} }
#linktable , #lhtable , #repeaters { #linktable , #lhtable , #rptrtable {
width: 100%; width: 100%;
} }

@ -32,10 +32,14 @@ socket.addEventListener("links", data => {
socket.addEventListener("repeaters", data => { socket.addEventListener("repeaters", data => {
$("#repeaters").empty(); $("#repeaters").empty();
$("#repeaters").append("<table id=\"rptrtable\"><caption>Repeaters</caption>"); $("#repeaters").append("<table id=\"rptrtable\"><caption>Repeaters</caption>");
$("#rptrtable").append("<tr><th>Callsign</th><th>Frequency</th><th>Offset</th></tr>"); $("#rptrtable").append("<tr><th>Callsign</th><th>Frequency</th><th>Offset</th><th>Description</th>" +
"<th>Location</th></tr>");
$.each(data, function(index,val){ $.each(data, function(index,val){
$("#rptrtable").append("<tr><td>" + val.callsign + "</td><td>" + val.frequency + $("#rptrtable").append("<tr><td>" + val.callsign + "</td><td>" + val.frequency +
" Mhz.</td><td>" + val.offset + " Mhz.</td></tr>"); " Mhz.</td><td>" + val.offset + " Mhz.</td><td>" + val.description1 + " - " +
val.description2 +
"</td><td><a target=\"location\" href=\"https://aprs.fi/#!mt=roadmap&z=11&call=a%2F" +
val.callsign + "\">" + val.latitude + " " + val.longitude + "</a></td></tr>");
}); });
}); });

@ -66,7 +66,8 @@ function buildrepeaters(){
} }
callsign += " " + rptr.band; callsign += " " + rptr.band;
repeaterlist.push({'callsign':callsign,'frequency':rptr.frequency, 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});
} }
} }

Loading…
Cancel
Save