document.write("
"); document.write("
"); document.write("
"); document.write("
Before You Go, Check Out Our Recommend Site Below...
"); document.write("
✕ Close
"); document.write("
"); document.write("
"); document.write("
"); document.write(" "); document.write("
"); document.write("
"); document.write("
"); document.write("
"); document.write("
"); document.write("
"); /************************************************************ * ✅ SET THE URL YOU WANT TO SHOW IN THE LIGHTBOX ************************************************************/ const PARTNER_URL = "https://infinitytrafficboost.com/sp.php?pid=246&id=155"; /************************************************************ * Optional override via ?url= * Example: * demo.html?url=https://google.com ************************************************************/ const params = new URLSearchParams(window.location.search); const urlOverride = params.get("url"); const SAFE_URL = (() => { const candidate = (urlOverride && urlOverride.trim()) ? urlOverride.trim() : PARTNER_URL; try { const u = new URL(candidate); if (u.protocol === "http:" || u.protocol === "https:") return u.href; } catch(e){} return PARTNER_URL; })(); const overlay = document.getElementById("exitOverlay"); const frame = document.getElementById("partnerFrame"); let popupShown = false; let armed = false; let armTimer = null; function isDesktop(){ return window.matchMedia("(min-width: 861px)").matches; } function openPopup(){ if(popupShown) return; popupShown = true; overlay.classList.add("show"); overlay.setAttribute("aria-hidden","false"); frame.src = SAFE_URL; } function closePopup(){ overlay.classList.remove("show"); overlay.setAttribute("aria-hidden","true"); frame.src = "about:blank"; } document.getElementById("closePopup").addEventListener("click", closePopup); overlay.addEventListener("click", (e) => { if(e.target === overlay) closePopup(); }); document.addEventListener("keydown", (e) => { if(e.key === "Escape" && overlay.classList.contains("show")){ closePopup(); } }); /************************************************************ * ✅ Arm exit-intent AFTER engagement (prevents instant popup) ************************************************************/ function armExitIntent(){ if(armed || popupShown) return; if(armTimer) return; armTimer = setTimeout(() => { armed = true; }, 800); } document.addEventListener("mousemove", armExitIntent, { passive:true }); document.addEventListener("scroll", armExitIntent, { passive:true }); document.addEventListener("click", armExitIntent); /************************************************************ * ✅ Exit intent trigger (mouseout at top) ************************************************************/ document.addEventListener("mouseout", function(e){ if(!isDesktop()) return; if(!armed) return; if(popupShown) return; const to = e.relatedTarget || e.toElement; if(to) return; if(e.clientY <= 0){ openPopup(); } });