Some code cleanup
This commit is contained in:
parent
5917968731
commit
261f7607b5
1 changed files with 8 additions and 8 deletions
|
@ -89,7 +89,6 @@ 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();
|
||||||
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>';
|
||||||
|
@ -173,21 +172,21 @@ function clocktime() {
|
||||||
s = now.getSeconds();
|
s = now.getSeconds();
|
||||||
m = leadingZero(m);
|
m = leadingZero(m);
|
||||||
s = leadingZero(s);
|
s = leadingZero(s);
|
||||||
return h + ':' + m + ':' + s;
|
return h + ':' + m + ':' + s;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function leadingZero(zahl) {
|
function leadingZero(zahl) {
|
||||||
zahl = (zahl < 10 ? '0' : '' )+ zahl;
|
zahl = (zahl < 10 ? '0' : '' )+ zahl;
|
||||||
return zahl;
|
return zahl;
|
||||||
}
|
}
|
||||||
|
|
||||||
function copyToQSO(callsign) {
|
function copyToQSO(callsign) {
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
t_qso.row.add( [
|
t_qso.row.add( [
|
||||||
callsign,
|
callsign,
|
||||||
new Date().toUTCString()
|
new Date().toUTCString()
|
||||||
] ).draw();
|
] ).draw();
|
||||||
});
|
});
|
||||||
alert("" + callsign + " added to in QSO-Tab");
|
alert("" + callsign + " added to in QSO-Tab");
|
||||||
|
|
||||||
|
@ -582,6 +581,7 @@ $(document).ready(function() {
|
||||||
default:
|
default:
|
||||||
var element = document.getElementById("currtx-tab");
|
var element = document.getElementById("currtx-tab");
|
||||||
element.classList.add("active");
|
element.classList.add("active");
|
||||||
|
|
||||||
element = document.getElementById("currtx");
|
element = document.getElementById("currtx");
|
||||||
element.classList.add("show");
|
element.classList.add("show");
|
||||||
element.classList.add("active");
|
element.classList.add("active");
|
||||||
|
|
Loading…
Reference in a new issue