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