1
0
Fork 0
main
Kim Huebel 4 years ago
parent 2d17a365a6
commit dc8c740cd4

@ -94,7 +94,7 @@
<div class="tab-pane fade" id="lastheard" role="tabpanel" aria-labelledby="lastheard-tab"> <div class="tab-pane fade" id="lastheard" role="tabpanel" aria-labelledby="lastheard-tab">
<div class="panel panel-default"> <div class="panel panel-default">
<!-- Standard-Panel-Inhalt --> <!-- Standard-Panel-Inhalt -->
<div class="panel-heading">Last Heard List of today's callsigns.<span class="pull-right clickable"><i class="glyphicon glyphicon-chevron-up"></i></span></div> <div class="panel-heading">Last Heard List<span class="pull-right clickable"><i class="glyphicon glyphicon-chevron-up"></i></span></div>
<div class="panel-body"> <div class="panel-body">
<!-- Tabelle --> <!-- Tabelle -->
<div class="table-responsive"> <div class="table-responsive">
@ -122,7 +122,7 @@
<div class="tab-pane fade" id="localheard" role="tabpanel" aria-labelledby="localheard-tab"> <div class="tab-pane fade" id="localheard" role="tabpanel" aria-labelledby="localheard-tab">
<div class="panel panel-default"> <div class="panel panel-default">
<!-- Standard-Panel-Inhalt --> <!-- Standard-Panel-Inhalt -->
<div class="panel-heading">Local Heard List of today<span class="pull-right clickable"><i class="glyphicon glyphicon-chevron-up"></i></span></div> <div class="panel-heading">Local Heard List<span class="pull-right clickable"><i class="glyphicon glyphicon-chevron-up"></i></span></div>
<div class="panel-body"> <div class="panel-body">
<!-- Tabelle --> <!-- Tabelle -->
<div class="table-responsive"> <div class="table-responsive">
@ -149,7 +149,7 @@
<div class="tab-pane fade" id="allheard" role="tabpanel" aria-labelledby="allheard-tab"> <div class="tab-pane fade" id="allheard" role="tabpanel" aria-labelledby="allheard-tab">
<div class="panel panel-default"> <div class="panel panel-default">
<!-- Standard-Panel-Inhalt --> <!-- Standard-Panel-Inhalt -->
<div class="panel-heading">ALl Heard List<span class="pull-right clickable"><i class="glyphicon glyphicon-chevron-up"></i></span></div> <div class="panel-heading">All Heard List<span class="pull-right clickable"><i class="glyphicon glyphicon-chevron-up"></i></span></div>
<div class="panel-body"> <div class="panel-body">
<!-- Tabelle --> <!-- Tabelle -->
<div class="table-responsive"> <div class="table-responsive">

@ -2,7 +2,7 @@
var qrz = 1; var qrz = 1;
// 1 = enable debug in javascript-console, 0 = 0ff // 1 = enable debug in javascript-console, 0 = 0ff
var debug = 1; var debug = 0;
// Set messagecounters for different badge-colors // Set messagecounters for different badge-colors
var warnlevel = 200; var warnlevel = 200;

@ -59,6 +59,8 @@ function inDashboardBlacklist(logline) {
name = ""; name = "";
if (callsign.indexOf("$") > 0) { if (callsign.indexOf("$") > 0) {
name = callsign.substring(callsign.indexOf("$") + 1, callsign.lastIndexOf("$")); name = callsign.substring(callsign.indexOf("$") + 1, callsign.lastIndexOf("$"));
if (name == "$")
name = "";
callsign = callsign.substring(0, callsign.indexOf("$")); callsign = callsign.substring(0, callsign.indexOf("$"));
} }
return dashboard_blacklist.includes(callsign); return dashboard_blacklist.includes(callsign);
@ -119,9 +121,9 @@ function getCallsign(logline) {
function getRawTarget(logline) { function getRawTarget(logline) {
if(logline.indexOf(" at ") > 0 && logline.indexOf("late entry") < 0 ) { if(logline.indexOf(" at ") > 0 && logline.indexOf("late entry") < 0 ) {
return logline.substring(logline.indexOf("to") + 3, logline.lastIndexOf(" at ") + 1); return logline.substring(logline.indexOf(" to ") + 4, logline.lastIndexOf(" at ") + 1);
} else { } else {
val = logline.substring(logline.indexOf("to") + 3); val = logline.substring(logline.indexOf(" to ") + 4);
if (val.indexOf(",") > 0) { if (val.indexOf(",") > 0) {
val = val.substring(0, val.indexOf(",")); val = val.substring(0, val.indexOf(","));
} }
@ -141,6 +143,8 @@ function getTarget(logline) {
name = ""; name = "";
if (target.indexOf("$") > 0) { if (target.indexOf("$") > 0) {
name = target.substring(target.indexOf("$") + 1, target.lastIndexOf("$")); name = target.substring(target.indexOf("$") + 1, target.lastIndexOf("$"));
if (name == "$")
name = "";
target = target.substring(0, target.indexOf("$")); target = target.substring(0, target.indexOf("$"));
} }
if (qrz == 1 && isNaN(target) && !qrz_blacklist.includes(target)) { if (qrz == 1 && isNaN(target) && !qrz_blacklist.includes(target)) {
@ -231,7 +235,18 @@ function getBER(logline) {
function getAddToQSO(logline) { function getAddToQSO(logline) {
callsign = logline.substring(logline.indexOf("from") + 5, logline.indexOf("to")).trim(); callsign = logline.substring(logline.indexOf("from") + 5, logline.indexOf("to")).trim();
name = "";
if (callsign.indexOf("$") > 0) {
name = callsign.substring(callsign.indexOf("$") + 1, callsign.lastIndexOf("$"));
if (name == "$")
name = "";
callsign = callsign.substring(0, callsign.indexOf("$"));
}
if (name == "" ) {
retval = '<div class="bd-clipboard"><button type="button" class="btn-cpQSO" title="Copy to QSO" id="' + callsign + '" onclick="copyToQSO(\'' + callsign + '\')">Copy</button></div>'; retval = '<div class="bd-clipboard"><button type="button" class="btn-cpQSO" title="Copy to QSO" id="' + callsign + '" onclick="copyToQSO(\'' + callsign + '\')">Copy</button></div>';
} else {
retval = '<div class="bd-clipboard"><button type="button" class="btn-cpQSO" title="Copy to QSO" id="' + callsign + ' - ' + name + '" onclick="copyToQSO(\'' + callsign + ' - ' + name + '\')">Copy</button></div>';
}
return retval; return retval;
} }
@ -318,6 +333,8 @@ function getCallsign(logline) {
name = ""; name = "";
if (callsign.indexOf("$") > 0) { if (callsign.indexOf("$") > 0) {
name = callsign.substring(callsign.indexOf("$") + 1, callsign.lastIndexOf("$")); name = callsign.substring(callsign.indexOf("$") + 1, callsign.lastIndexOf("$"));
if (name == "$")
name = "";
callsign = callsign.substring(0, callsign.indexOf("$")); callsign = callsign.substring(0, callsign.indexOf("$"));
} }
if (qrz == 1 && isNaN(callsign) && !qrz_blacklist.includes(callsign)) { if (qrz == 1 && isNaN(callsign) && !qrz_blacklist.includes(callsign)) {
@ -339,20 +356,48 @@ function getCurrentTXing() {
ts1 = null; ts1 = null;
ts2 = null; ts2 = null;
if (ts1TXing != null) { if (ts1TXing != null) {
matchstring = "";
ts1 = ts1TXing.split(";"); ts1 = ts1TXing.split(";");
ts1[4] = Math.round((Date.now() - Date.parse(ts1timestamp.replace(" ","T")+".000Z"))/1000); ts1[4] = Math.round((Date.now() - Date.parse(ts1timestamp.replace(" ","T")+".000Z"))/1000);
t_qso.rows( function ( idx, data, node ) { t_qso.rows( function ( idx, data, node ) {
if(data[0] == ts1[1]){ callsign = ts1[1];
name = "";
if (callsign.indexOf("$") > 0) {
name = callsign.substring(callsign.indexOf("$") + 1, callsign.lastIndexOf("$"));
if (name == "$")
name = "";
callsign = callsign.substring(0, callsign.indexOf("$"));
}
if (name == "" ) {
matchstring = callsign;
} else {
matchstring = callsign + ' - ' + name;
}
if(data[0] == matchstring){
data[2] = getLocaltimeFromTimestamp(ts1timestamp); data[2] = getLocaltimeFromTimestamp(ts1timestamp);
$('#inQSO').dataTable().fnUpdate(data,idx,undefined,false); $('#inQSO').dataTable().fnUpdate(data,idx,undefined,false);
} }
}).draw(false); }).draw(false);
} }
if (ts2TXing != null) { if (ts2TXing != null) {
matchstring = "";
ts2 = ts2TXing.split(";"); ts2 = ts2TXing.split(";");
ts2[4] = Math.round((Date.now() - Date.parse(ts2timestamp.replace(" ","T")+".000Z"))/1000); ts2[4] = Math.round((Date.now() - Date.parse(ts2timestamp.replace(" ","T")+".000Z"))/1000);
t_qso.rows( function ( idx, data, node ) { t_qso.rows( function ( idx, data, node ) {
if(data[0] == ts2[1]){ callsign = ts2[1];
name = "";
if (callsign.indexOf("$") > 0) {
name = callsign.substring(callsign.indexOf("$") + 1, callsign.lastIndexOf("$"));
if (name == "$")
name = "";
callsign = callsign.substring(0, callsign.indexOf("$"));
}
if (name == "" ) {
matchstring = callsign;
} else {
matchstring = callsign + ' - ' + name;
}
if(data[0] == matchstring){
data[2] = getLocaltimeFromTimestamp(ts2timestamp); data[2] = getLocaltimeFromTimestamp(ts2timestamp);
$('#inQSO').dataTable().fnUpdate(data,idx,undefined,false); $('#inQSO').dataTable().fnUpdate(data,idx,undefined,false);
} }
@ -364,6 +409,8 @@ function getCurrentTXing() {
name = ""; name = "";
if (callsign.indexOf("$") > 0) { if (callsign.indexOf("$") > 0) {
name = callsign.substring(callsign.indexOf("$") + 1, callsign.lastIndexOf("$")); name = callsign.substring(callsign.indexOf("$") + 1, callsign.lastIndexOf("$"));
if (name == "$")
name = "";
callsign = callsign.substring(0, callsign.indexOf("$")); callsign = callsign.substring(0, callsign.indexOf("$"));
} }
if (qrz == 1 && isNaN(callsign) && !qrz_blacklist.includes(callsign)) { if (qrz == 1 && isNaN(callsign) && !qrz_blacklist.includes(callsign)) {
@ -392,6 +439,8 @@ function getCurrentTXing() {
name = ""; name = "";
if (callsign.indexOf("$") > 0) { if (callsign.indexOf("$") > 0) {
name = callsign.substring(callsign.indexOf("$") + 1, callsign.lastIndexOf("$")); name = callsign.substring(callsign.indexOf("$") + 1, callsign.lastIndexOf("$"));
if (name == "$")
name = "";
callsign = callsign.substring(0, callsign.indexOf("$")); callsign = callsign.substring(0, callsign.indexOf("$"));
} }
if (qrz == 1 && isNaN(callsign) && !qrz_blacklist.includes(callsign)) { if (qrz == 1 && isNaN(callsign) && !qrz_blacklist.includes(callsign)) {
@ -569,13 +618,6 @@ function getLastHeard(document, event) {
} }
if (rowIndexes[0]) { if (rowIndexes[0]) {
var row = t_lh.row(rowIndexes[0]).node(); var row = t_lh.row(rowIndexes[0]).node();
/*
if (txing) {
$(row).addClass('red');
} else {
$(row).removeClass('red');
}
*/
var temp = t_lh.row(rowIndexes[0]).data(); var temp = t_lh.row(rowIndexes[0]).data();
logIt("Temp: "+ temp); logIt("Temp: "+ temp);
logIt("Duration: " + duration); logIt("Duration: " + duration);

@ -1 +1 @@
var dashboard_version = "2021-02-07 21:49:21"; var dashboard_version = "2021-02-08 20:53:38";

Loading…
Cancel
Save