Linking to QRZ.com if wanted
use js/config.js to switch on (1) or off (0)
This commit is contained in:
parent
349dd0e7f1
commit
c6c48ef664
2 changed files with 9 additions and 2 deletions
1
html/js/config.js
Normal file
1
html/js/config.js
Normal file
|
@ -0,0 +1 @@
|
|||
var qrz = 1;
|
|
@ -11,7 +11,12 @@ function getMode(logline) {
|
|||
}
|
||||
|
||||
function getCallsign(logline) {
|
||||
return logline.substring(logline.indexOf("from") + 5, logline.indexOf("to"));
|
||||
callsign = logline.substring(logline.indexOf("from") + 5, logline.indexOf("to")).trim();
|
||||
if (qrz == 1) {
|
||||
return '<a target="_new" href="https://qrz.com/db/' + callsign + '">' + callsign + '</a>';
|
||||
} else {
|
||||
return callsign;
|
||||
}
|
||||
}
|
||||
|
||||
function getTarget(logline) {
|
||||
|
@ -63,7 +68,8 @@ function getBER(logline) {
|
|||
|
||||
|
||||
function getAddToQSO(logline) {
|
||||
retval = '<div class="bd-clipboard"><button type="button" class="btn-cpQSO" title="Copy to QSO" id="' + getCallsign(logline) + '" onclick="copyToQSO(\'' + getCallsign(logline) + '\')">Copy</button></div>';
|
||||
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>';
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue