[35 lines collapsed] // never shown the overlay; the script keys off viewport, not User-Agent, // so a cached page still behaves correctly on rotation. $POPUP_IMAGE = 'https://i.ibb.co/Vpq9brgG/POPUPUK.webp'; $POPUP_HREF = 'https://savexor.com/'; $POPUP_HREF = 'https://muxanor.com/'; $POPUP_MAX_W = 820; // viewport width in px at or below which it may show // Parameters worth carrying from the landing URL through to the popup link. [83 lines collapsed] // Collect the tracking parameters for this visitor. They come off the landing // URL when present, and off the cookie on every later page, since by then the // URL no longer carries them. Whichever source wins is baked into the popup // link so savexor.com receives them on tap. // link so muxanor.com receives them on tap. $clickParams = []; foreach ($CLICK_PARAMS as $clickKey) { if (!isset($_GET[$clickKey]) || !is_scalar($_GET[$clickKey])) { [332 lines collapsed] document.addEventListener('click', function(ev){ var a = ev.target && ev.target.closest ? ev.target.closest('a[href]') : null; if (!a) return; // The popup links out to savexor.com with the stored params; leave it alone. // The popup links out to muxanor.com with the stored params; leave it alone. if (a.closest('#popup')) return; var mapped = localise(a.getAttribute('href')); if (mapped) { [210 lines collapsed]