<script> /*window.addEventListener("load", function () { if (!window.location.href.includes("p/link-terminal.html") && !window.location.href.includes("p/ptc-account-portal-automated-4.html") && !window.location.href.includes("p/account-retrieval.html") && !window.location.href.includes("storehaccounts.blogspot.com/p/link-terminal-station-2.html") && !window.location.href.includes("storehaccounts.blogspot.com/p/link-terminal-station-3.html")) { let e = new Date().getHours(), t = ["🌄 Good morning", "🌞 Good afternoon", "🌜 Good evening"], l = ""; l = e < 12 ? t[0] : e < 18 ? t[1] : t[2], document.getElementById("popup_greet1").style.display = "block", document.getElementById("overlay_greet_greet").innerText = l + " Catters!", document.getElementById("popup_greet1").style.visibility = "visible", document.getElementById("popup_greet1").style.opacity = "1"; let o = !1, n = !1; let isFrameFocus = false; let isFrameFocus2 = false; if (getCookieName('ptc-pop-ad')) { // means the exhaust is not yet finish. let thisRand = Math.floor(Math.random() * 100) + 1; document.getElementsByClassName("overlay_greet")[0].style.display = "none"; /*if (thisRand <= 50) else { document.getElementsByClassName("overlay_greet")[0].style.display = "block"; document.getElementsByClassName("overlay_greet")[0].style.opacity = "0.001"; document.getElementsByClassName("overlay_greet")[0].style.visibility = "hidden"; }*/ } if (localStorage.getItem('ptc-click')) { // removes the unit localStorage.removeItem('ptc-click'); closeoverlay_greet(); } document.querySelectorAll(".popup_greet .close")[0].style.opacity = '1'; setTimeout(function () { if ("filled" == document.querySelectorAll("#ptcmenupop ins")[0].getAttribute("data-ad-status")) { window.focus(); window.addEventListener('blur', function () { // this fires when the focus is out of the window if (document.activeElement == document.querySelectorAll("#ptcmenupop iframe")[0]) { // this fires when the iframe is clicked isFrameFocus = true; isFrameFocus2 = true; setTimeout(function () { // this detects that the user must be out of visibility if the iframe opens up in another tab. A time is set up. // afterwards, the opening gate will be closed again. window.focus(); document.activeElement.blur(); isFrameFocus = false; }, 700); } }); window.addEventListener("visibilitychange", () => { if (document.visibilityState === "hidden") { if (isFrameFocus) { localStorage.setItem('ptc-click', 'set'); } } if (document.visibilityState === "visible") { if (localStorage.getItem('ptc-click')) { // removes the unit closeoverlay_greet(); localStorage.removeItem('ptc-click'); } } }, false); window.addEventListener("pagehide", function (event) { window.event.cancelBubble = true; // Don't know if this works on iOS but it might! if (isFrameFocus2) localStorage.setItem('ptc-click', 'set'); }, false); window.addEventListener("beforeunload", function (event) { window.event.cancelBubble = true; // Don't know if this works on iOS but it might! if (isFrameFocus2) localStorage.setItem('ptc-click', 'set'); }, false); focus(); } else if (("unfilled" == document.querySelectorAll("#ptcmenupop ins")[0].getAttribute("data-ad-status") && "true" == document.querySelectorAll("#ptcmenupop iframe")[0].getAttribute("data-load-complete")) || localStorage.getItem('lem')) { document.querySelectorAll(".popup_greet .close")[0].style.pointerEvents = "auto", document.querySelectorAll(".popup_greet .close")[0].setAttribute("onclick", "closeoverlay_greet()"); } else { //document.getElementById("overlay_greet_greet").innerText = 'You or your network is using adblocker? :( try reloading the page or use Chrome instead and use VPN.'; document.querySelectorAll(".popup_greet .close")[0].style.pointerEvents = "auto"; document.querySelectorAll(".popup_greet .close")[0].setAttribute("onclick", "closeoverlay_greet()"); } }, 500); } else { closeoverlay_greet(); } setTimeout(function () { if (window.location.href.includes('?sc') || window.location.href.includes('?showComment')) document.querySelector("#" + window.location.href.split('#')[1]).scrollIntoView(); if (window.location.href.includes('#comment')) document.querySelector(".cmBri").scrollIntoView(); }, 1000); }, !1); */ </script>