1(function() { 2 function initSideBanners() { 3 if (window.posthog) { 4 posthog.onFeatureFlags(function() { 5 const rightBanner = posthog.getFeatureFlagPayload('tool-banner-right'); 6 const leftBanner = posthog.getFeatureFlagPayload('tool-banner-left'); 7 8 if (rightBanner && rightBanner.url) { 9 const el = document.getElementById('right-banner'); 10 if (el) { 11 el.href = rightBanner.redirectTo; 12 const img = el.querySelector('img'); 13 if (img) { 14 img.src = rightBanner.url; 15 } 16 el.style.display = 'block'; 17 } 18 } 19 20 if (leftBanner && leftBanner.url) { 21 const el = document.getElementById('left-banner'); 22 if (el) { 23 el.href = leftBanner.redirectTo; 24 const img = el.querySelector('img'); 25 if (img) { 26 img.src = leftBanner.url; 27 } 28 el.style.display = 'block'; 29 } 30 } 31 }); 32 } 33 } 34 35 if (document.readyState === 'loading') { 36 document.addEventListener('DOMContentLoaded', initSideBanners); 37 } else { 38 initSideBanners(); 39 } 40})();
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.