1
0
Fork 0

Make Tab-showing configurable

take a look at /html/js/config,js
main
Kim - DG9VH 4 years ago
parent 45060d5b0c
commit c35bc26996

@ -7,3 +7,11 @@ var debug = 1;
// Set messagecounters for different badge-colors
var warnlevel = 200;
var emergencylevel = 500;
// 1 = show tab, 0 = suppress it
var showLastHeardTab = 1;
var showLocalHeadTab = 1;
var showInQSOTab = 1;
var showDAPNETMessagesTab = 1;
var showAboutTab = 1;

@ -332,3 +332,26 @@ function getDapnetMessages(document, event) {
});
});
}
$(document).ready(function() {
if(showLastHeardTab == 0){
document.getElementById("myTab").children[0].style.display="none";
document.getElementById("lastheard").style.display="none";
}
if(showLocalHeadTab == 0){
document.getElementById("myTab").children[1].style.display="none";
document.getElementById("localheard").style.display="none";
}
if(showInQSOTab == 0){
document.getElementById("myTab").children[2].style.display="none";
document.getElementById("qso").style.display="none";
}
if(showDAPNETMessagesTab == 0){
document.getElementById("myTab").children[3].style.display="none";
document.getElementById("dapnet").style.display="none";
}
if(showAboutTab == 0){
document.getElementById("myTab").children[4].style.display="none";
document.getElementById("about").style.display="none";
}
});

Loading…
Cancel
Save