tabunder/tabu.js

18 lines
524 B
JavaScript
Raw Normal View History

2022-11-02 09:13:50 +00:00
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");
}
}