Advertisement
Guest User

Untitled

a guest
Feb 25th, 2020
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.95 KB | None | 0 0
  1.         <script>
  2.             let timer = new Timer(15, () => document.location.href = "bosprojekte.php");
  3.             timer.startTimer();
  4.             let els = document.getElementsByClassName("popupLink");
  5.             Array.from(els).forEach(el => {
  6.                 el.onclick = (e) => {
  7.                     timer.pauseTimer();
  8.                     window.open(`iframe.php?frame=${el.getAttribute("data-href")}`, "popup", `width=580,height=360,scrollbars=no, toolbar=no,status=no, resizable=yes,menubar=no,
  9.                     location=no,
  10.                     directories=no,top=10,left=10`);
  11.                     let int = setInterval(() => {
  12.                         if (Cookies.get("timer") === "unpause") {
  13.                             Cookies.set("timer", "");
  14.                             timer.unpause();
  15.                             clearInterval(int);
  16.                         }
  17.                     }, 1000);
  18.  
  19.                 };
  20.             });
  21.         </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement