SHARE
TWEET

Untitled

a guest Feb 25th, 2020 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top