We exist to be a trustworthy news resource guiding people toward eternal hope.

document.addEventListener("DOMContentLoaded", function () { const triggerElement = document.querySelector(".scroll-popup-trigger"); let hasTriggered = false; // Prevent multiple triggers let timeoutId = null; // Store timeout ID for cancellation window.addEventListener("scroll", function () { const scrollDistance = window.scrollY || document.documentElement.scrollTop; const triggerPoint = 500; // Adjust this value if (scrollDistance > triggerPoint && !hasTriggered) { hasTriggered = true; timeoutId = setTimeout(() => { // Check if any input or textarea is focused if (!document.activeElement.matches("input, textarea, select")) { if(triggerElement){ triggerElement.click(); } } }, 5000); // 5 seconds delay } }); // Cancel the trigger if an input field is focused document.addEventListener("focusin", function (event) { if (event.target.matches("input, textarea, select") && timeoutId) { clearTimeout(timeoutId); hasTriggered = false; // Reset so it can
Skip to main content