Update tabu.js
parent
233c0bbfb6
commit
c229c0f229
7
tabu.js
7
tabu.js
|
@ -1,16 +1,19 @@
|
||||||
url="<url to tabunder to>";
|
url="<url to tabunder to>";
|
||||||
imgsrc="ffox.svg";
|
imgsrc="ffox.svg";
|
||||||
|
clk=false;
|
||||||
if (window.location.hash == "#1") {
|
if (window.location.hash == "#1") {
|
||||||
window.opener.location = url;
|
window.opener.location = url;
|
||||||
} else{
|
} else{
|
||||||
if(navigator.userAgent.toLowerCase().indexOf('firefox') > -1){
|
|
||||||
|
document.addEventListener("click", pop);
|
||||||
|
if(navigator.userAgent.toLowerCase().indexOf('firefox') > -1 && !clk){
|
||||||
image=document.createElement("img");
|
image=document.createElement("img");
|
||||||
image.src=imgsrc;
|
image.src=imgsrc;
|
||||||
image.width=900;
|
image.width=900;
|
||||||
image.style="margin: 0;position: absolute;top: 50%; left: 50%;-ms-transform: translateY(-50%);transform: translate(-50%, -50%);";
|
image.style="margin: 0;position: absolute;top: 50%; left: 50%;-ms-transform: translateY(-50%);transform: translate(-50%, -50%);";
|
||||||
document.body.appendChild(image);
|
document.body.appendChild(image);
|
||||||
|
clk=true;
|
||||||
}
|
}
|
||||||
document.addEventListener("click", pop);
|
|
||||||
function pop() {
|
function pop() {
|
||||||
window.open("#1");
|
window.open("#1");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue