Updated Links and Time/Date on Last Heard

only_http
John Hays 9 months ago
parent 05fc727fd1
commit f2cd18606c

@ -35,7 +35,7 @@ socket.addEventListener("links", data => {
"<th>Device</th><th>Direction</th><th>Timestamp</th></tr>");
$.each(data, function(index,val){
const utcDate = new Date(val.timestamp);
var reflector = val.reflector.substring(0,7).trim();
var reflector = val.reflector.substring(0,8).trim();
if (reflector.substring(0,3) == "REF") reflector = "<a href=\"http://" + reflector + ".dstargateway.org\" target=\"reflector\">" + val.reflector + "</a>";
$("#linktable").append("<tr><td>" + val.repeater + "</td><td>" + reflector +
"</td><td>" + val.protocol + "</td><td>" + val.device + "</td><td>" +
@ -74,7 +74,7 @@ socket.addEventListener("lastheard", data => {
// console.log("lastheard " + data);
$("#lastheard").empty();
$("#lastheard").append("<table id=\"lhtable\"><caption>Last Heard</caption>");
$("#lhtable").append("<tr><th>MYcall</th><th>URcall</th><th>Rpt1</th><th>Rpt2</th><th>Source</th><th>Date</th><th>Time</th><th>Local</th></tr>");
$("#lhtable").append("<tr><th>MYcall</th><th>URcall</th><th>Rpt1</th><th>Rpt2</th><th>Source</th><th>Date GMT</th><th>Time GMT</th><th>Local</th></tr>");
$.each(data, function(index,val){
// console.log(index, val);
const utcDate = val.date.trim() + 'T' + val.time.trim() + 'Z';

Loading…
Cancel
Save