1const SITE_ID = document.currentScript.dataset.siteId; 2const POST_CLASSES = (document.currentScript.dataset.postClasses || '') 3 .split(' ') 4 .filter(Boolean); 5 6function initializeRaptiveAds(w, d, siteId = SITE_ID) { 7 w.adthrive = w.adthrive || {}; 8 w.adthrive.cmd = w. 9 adthrive.cmd || []; 10 w.adthrive.plugin = 'adthrive-ads-manual'; 11 w.adthrive.host = 'ads.adthrive.com';var s = d.createElement('script'); 12 s.async = true; 13 s.referrerpolicy='no-referrer-when-downgrade'; 14 const baseUrl = `https://${w.adthrive.host}/sites/${siteId}/ads.min.js`; 15 const queryParams = `?referrer=${w.encodeURIComponent(w.location.href)}&cb=${Math.floor(Math.random() * 100) + 1}`; 16 s.src = baseUrl + queryParams; 17 var scripts = d.getElementsByTagName('script'); 18 var n = scripts[0]; 19 n.parentNode.insertBefore(s, n); 20} 21 22// Per-post ad map classes must be on the body before the ad script is requested. 23// This script is deferred, so the body normally already exists. 24function applyPostClassesAndInitialize() { 25 if (POST_CLASSES.length) { 26 document.body.classList.add(...POST_CLASSES); 27 } 28 initializeRaptiveAds(window, document); 29} 30 31if (document.body) { 32 applyPostClassesAndInitialize(); 33} else { 34 document.addEventListener('DOMContentLoaded', applyPostClassesAndInitialize, { once: true }); 35}
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.