Update client
This commit is contained in:
parent
bdaac4fa61
commit
81f0207568
3 changed files with 10 additions and 5 deletions
|
@ -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%;
|
||||
}
|
||||
|
|
|
@ -32,10 +32,14 @@ socket.addEventListener("links", data => {
|
|||
socket.addEventListener("repeaters", data => {
|
||||
$("#repeaters").empty();
|
||||
$("#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){
|
||||
$("#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>");
|
||||
});
|
||||
});
|
||||
|
||||
|
|
3
index.js
3
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});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue