John Hays 10 months ago
commit ffcb823a14

@ -5,6 +5,13 @@ body {
td , caption , th { td , caption , th {
text-align: center; text-align: center;
} }
#info {
float: left;
}
#source {
float: right;
text-align: right;
}
#lhtable { #lhtable {
border: 1px solid black; border: 1px solid black;
background-color: PowderBlue; background-color: PowderBlue;

@ -1,34 +1,39 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<script src="/socket.io/socket.io.js"></script> <head>
<script src="/script.js"></script> <meta name="generator" content=
<script src="https://code.jquery.com/jquery-3.7.1.min.js" "HTML Tidy for HTML5 for Linux version 5.6.0">
integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" <meta charset="UTF-8">
crossorigin="anonymous"></script> <script src="/socket.io/socket.io.js"></script>
<script src="https://code.jquery.com/ui/1.13.2/jquery-ui.min.js" <script src="/script.js"></script>
integrity="sha256-lSjKY0/srUM9BE3dPm+c4fBo1dky2v27Gdjm2uoZaL0=" <script src="https://code.jquery.com/jquery-3.7.1.min.js"
crossorigin="anonymous"></script> integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo="
<head> crossorigin="anonymous"></script>
<meta charset="UTF-8"> <script src="https://code.jquery.com/ui/1.13.2/jquery-ui.min.js"
<meta http-equiv="X-UA-Compatible" content="IE=edge"> integrity="sha256-lSjKY0/srUM9BE3dPm+c4fBo1dky2v27Gdjm2uoZaL0="
<meta name="viewport" content="width=device-width, initial-scale=1.0"> crossorigin="anonymous"></script>
<link rel="stylesheet" href="dashboard.css"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Dashboard</title> <meta name="viewport" content=
</head> "width=device-width, initial-scale=1.0">
<body> <link rel="stylesheet" href="dashboard.css">
<title></title>
<h1 id="intro">Dashboard</h1> </head>
<div> <body>
<div id="instruct"></div> <title>Dashboard</title>
<div id="repeaters"></div> <div>
<div id="links"></div> <div id="source">
<div id="lastheard"></div> <b><a href="https://github.com/johnhays/dsgwdashboard"
<div id="source"> target="source">dsgwdashboard Source</a><br>
<b> <a href="https://github.com/F4FXL/DStarGateway" target=
<a href="https://github.com/johnhays/dsgwdashboard" target="source">Dashboard Source</a> "source">DStarGateway Source</a></b>
<a href="https://github.com/F4FXL/DStarGateway" target="source">DStarGateway Source</a> </div>
</b> <h1 id="intro">Dashboard</h1>
</div> </div>
</div> <div>
</body> <div id="instruct"></div>
<div id="repeaters"></div>
<div id="links"></div>
<div id="lastheard"></div>
</div>
</body>
</html> </html>

@ -8,7 +8,7 @@ socket.addEventListener("info", indata => {
// console.log(indata); // console.log(indata);
const data = JSON.parse(indata); const data = JSON.parse(indata);
$("#instruct").empty(); $("#instruct").empty();
$("#instruct").append("<table id=\"urltable\"><caption>Helpful URLs</caption>"); $("#instruct").append("<table id=\"urltable\"><caption>Helpful Sites</caption>");
$("#urltable").append("<tr><th>Sponsor</th><th>Live</th><th>Utilities</th></tr>"); $("#urltable").append("<tr><th>Sponsor</th><th>Live</th><th>Utilities</th></tr>");
$("#urltable").append("<tr><td><a target=\"sponsor\" href=\"" + data.sponsor + "\">" + $("#urltable").append("<tr><td><a target=\"sponsor\" href=\"" + data.sponsor + "\">" +
data.sponsorname + "</a></td><td><a target=\"live\" href=\"" + data.live_1 + "\">" + data.sponsorname + "</a></td><td><a target=\"live\" href=\"" + data.live_1 + "\">" +
@ -61,10 +61,14 @@ socket.addEventListener("lastheard", data => {
$("#lhtable").append("<tr><th>MYcall</th><th>URcall</th><th>Rpt1</th><th>Rpt2</th><th>Source</th><th>Date</th><th>Time</th></tr>"); $("#lhtable").append("<tr><th>MYcall</th><th>URcall</th><th>Rpt1</th><th>Rpt2</th><th>Source</th><th>Date</th><th>Time</th></tr>");
$.each(data, function(index,val){ $.each(data, function(index,val){
// console.log(index, val); // console.log(index, val);
var mcall = val.mycall; var mcall = "<a href=\"https://qrz.com/db/" + val.mycall + "\" target=\"qrz\">" + val.mycall + "</a>";
if (val.msg1 != "") mcall += " / " + val.msg1; if (val.msg1 != "") mcall += " / " + val.msg1;
var rpt1 = val.rpt1.substring(0,7).trim();
if (rpt1.substring(0,3) == "REF") rpt1 = "<a href=\"http://" + rpt1 + ".dstargateway.org\" target=\"reflector\">" + val.rpt1 + "</a>";
var rpt2 = val.rpt2.substring(0,7).trim();
if (rpt2.substring(0,3) == "REF") rpt2 = "<a href=\"http://" + rpt2 + ".dstargateway.org\" target=\"reflector\">" + val.rpt2 + "</a>";
$("#lhtable").append("<tr><td>" + mcall + "</td><td>"+ val.urcall + $("#lhtable").append("<tr><td>" + mcall + "</td><td>"+ val.urcall +
"</td><td>" + val.rpt1 + "</td><td>" + val.rpt2 + "</td><td>" + rpt1 + "</td><td>" + rpt2 +
"</td><td>" + val.source + "</td><td>" + val.date + "</td><td>" + val.time + "</td></tr>"); "</td><td>" + val.source + "</td><td>" + val.date + "</td><td>" + val.time + "</td></tr>");
}) })
}); });

@ -9,7 +9,7 @@ port=443
sponsorname=Greater Kingston Radio Club sponsorname=Greater Kingston Radio Club
cosponsorname=Northwest Digital Radio Club cosponsorname=Northwest Digital Radio Club
sponsor=https://groups.io/g/gkrc sponsor=https://groups.io/g/gkrc
cosponsor= cosponsor=https://www.qrz.com/db/NW7DR
registersite=D-STAR Registration registersite=D-STAR Registration
registration=https://regist.dstargateway.org registration=https://regist.dstargateway.org
livename_1=IRCDDB Live livename_1=IRCDDB Live

Loading…
Cancel
Save