new URL parameter n=0 to hide the panel

pull/16/head
cunimb 2015-04-06 20:34:24 +02:00
rodzic 7dc4068d49
commit 2d1a0a8f51
1 zmienionych plików z 12 dodań i 2 usunięć

Wyświetl plik

@ -59,7 +59,7 @@ var m2kt={"m":1, "i":1.94384};
var am2kt={"m":"m/s", "i":"kt"};
var hashc="",hashz="",hashm="",hasho="",hashb="",hashs="",hashl="",hasht="",hl=" ",hashw="",hashu="",hashp="";
var hashc="",hashz="",hashm="",hasho="",hashb="",hashs="",hashl="",hasht="",hl=" ",hashw="",hashu="",hashp="",hashn="";
// center zoom maptype offline bound autoset2ma layers tasks warning units pathlength
@ -490,6 +490,7 @@ function alist() {
else document.getElementById('ac').style.right = "0px";
centeroff();
aflist = false;
hashn = "&n=0";
} else {
document.getElementById("ett1").innerHTML = ett1;
document.getElementById('dlist').style.width = "180px";
@ -498,7 +499,9 @@ function alist() {
else document.getElementById('ac').style.right = "180px";
aflist = true;
afftab();
hashn = "";
}
rehash();
}
function sideclick() {
@ -1063,7 +1066,7 @@ function wd() {
}
function rehash() {
window.location.hash = hashc + hashz + hashm + hasho + hashb + hashs + hashl + hashw + hashp + hashu;
window.location.hash = hashc + hashz + hashm + hasho + hashb + hashs + hashl + hashw + hashp + hashu + hashn;
}
function rempl(po, c) {
@ -1515,6 +1518,13 @@ function initialize() {
}
}
// parameter n=0 (Hide the panel)
if (typeof(parh.n) != 'undefined') {
if (parh.n == "0") {
alist();
}
}
if (warn == 1) {
document.getElementById("popup").innerHTML = "<img class=\"pr\" alt=\"close\" src=\"" + tld + "/pict/close.png\"><H1>Warning!</H1><BR><P style=\"text-align:justify;\"><B>The data on this site can be ambiguous in certain situations and the displayed position of an aircraft or glider can be displaced relative to the actual position.<BR>Before raising an alert please contact us so we can interpret the data correctly.</B></P>";
op(300);