Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- let timer = new Timer(15, () => document.location.href = "bosprojekte.php");
- timer.startTimer();
- let els = document.getElementsByClassName("popupLink");
- Array.from(els).forEach(el => {
- el.onclick = (e) => {
- timer.pauseTimer();
- window.open(`iframe.php?frame=${el.getAttribute("data-href")}`, "popup", `width=580,height=360,scrollbars=no, toolbar=no,status=no, resizable=yes,menubar=no,
- location=no,
- directories=no,top=10,left=10`);
- let int = setInterval(() => {
- if (Cookies.get("timer") === "unpause") {
- Cookies.set("timer", "");
- timer.unpause();
- clearInterval(int);
- }
- }, 1000);
- };
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement