Added links to QRZ and dstargateway.org

only_http
John Hays 8 months ago
parent 2fccf9c2c9
commit 6ed6445188

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

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

@ -8,7 +8,7 @@ socket.addEventListener("info", indata => {
// console.log(indata);
const data = JSON.parse(indata);
$("#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><td><a target=\"sponsor\" href=\"" + data.sponsor + "\">" +
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>");
$.each(data, function(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;
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 +
"</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>");
})
});

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

Loading…
Cancel
Save