PageSourceSearch

https://13thstreetpromotions.com/wp-content/mu-plugins/jetpack-plu…/subscribe-modal.js?m=1729061509i

js 13thstreetpromotions.com collected 2026-10-02 20:24:48 UTC 1,862 bytes, 1 lines download raw bytes

1const{domReady:e}=wp;e(()=>{const t=document.querySelector(".jetpack-subscribe-modal");const n="jetpack_post_subscribe_modal_dismissed";const o="jetpack_skip_subscription_popup";function i(){const t=localStorage.getItem(n);return t?Date.now()-t>Jetpack_Subscriptions.modalInterval:true}function c(){const t=new URL(window.location.href);if(t.searchParams.has(o)){t.searchParams.delete(o);window.history.replaceState({},"",t);L();return true}return false}if(!t||!i()||c()){return}const s=setTimeout(v,Jetpack_Subscriptions.modalLoadTime);const r=(document.querySelector(".entry-content")||document.documentElement).getBoundingClientRect();function a(){const t=window.scrollY+window.innerHeight/2;const n=r.top+r.height*Jetpack_Subscriptions.modalScrollThreshold/100;return t>n}function d(){requestAnimationFrame(()=>{if(a()){v()}})}window.addEventListener("scroll",d,{passive:true});function u(t){if(t.key===n){b();k()}}window.addEventListener("storage",u);const l=t.querySelector("form");if(l){l.addEventListener("subscription-modal-loaded",b)}function m(t){t.preventDefault();b()}const w=document.getElementsByClassName("jetpack-subscribe-modal__close")[0];if(w){w.addEventListener("click",m)}function p(n){if(n.target===t){b()}}function f(t){if(t.key==="Escape"){b()}}function v(){if(document.activeElement&&document.activeElement.tagName!=="BODY"){return}t.classList.add("open");document.body.classList.add("jetpack-subscribe-modal-open");window.addEventListener("keydown",f);window.addEventListener("click",p);k()}function b(){t.classList.remove("open");document.body.classList.remove("jetpack-subscribe-modal-open");window.removeEventListener("keydown",f);window.removeEventListener("storage",u);window.removeEventListener("click",p);L()}function k(){window.removeEventListener("scroll",d);clearTimeout(s)}function L(){localStorage.setItem(n,Date.now())}});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.