1(function () { 2 var CSS = [ 3 '#rz-cookie-overlay{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:99998;display:none;align-items:flex-end;justify-content:center}', 4 '#rz-cookie-overlay.open{display:flex}', 5 '#rz-cookie-box{background:var(--color-scheme-1--foreground,#1a1a1a);border:1px solid var(--color-scheme-1--border,#333);border-radius:12px 12px 0 0;padding:2rem;max-width:640px;width:100%;color:var(--color-scheme-1--text,#fff);font-family:inherit}', 6 '#rz-cookie-box h3{margin:0 0 .75rem;font-size:1.1rem;font-weight:600}', 7 '#rz-cookie-box p{margin:0 0 1.5rem;font-size:.9rem;opacity:.8;line-height:1.6}', 8 '.rz-cookie-btns{display:flex;gap:.75rem;flex-wrap:wrap}', 9 '.rz-cookie-btns button{padding:.6rem 1.25rem;border-radius:6px;border:none;cursor:pointer;font-size:.9rem;font-weight:500;font-family:inherit}', 10 '#rz-cookie-accept{background:#720304;color:#fff}', 11 '#rz-cookie-essential{background:transparent;color:var(--color-scheme-1--text,#fff);border:1px solid var(--color-scheme-1--border,#444)!important}' 12 ].join(''); 13 14 var HTML = [ 15 '<div id="rz-cookie-overlay">', 16 '<div id="rz-cookie-box">', 17 '<h3>Cookie Settings</h3>', 18 '<p>We use cookies to make our site work and to understand how you use it.', 19 ' Essential cookies are always active. You can choose whether to also allow analytics cookies.</p>', 20 '<div class="rz-cookie-btns">', 21 '<button id="rz-cookie-accept">Accept All</button>', 22 '<button id="rz-cookie-essential">Essential Only</button>', 23 '</div>', 24 '</div>', 25 '</div>' 26 ].join(''); 27 28 /* Microsoft Clarity consent signal â safe before the tag loads (calls queue) */ 29 function signalClarity(granted) { 30 try { 31 if (typeof window.clarity === 'function') window.clarity('consent', granted !== false); 32 } catch (e) {} 33 } 34 35 /* re-apply a previously saved choice on every page load */ 36 try { 37 var saved = localStorage.getItem('rz-cookie-consent'); 38 if (saved === 'all') signalClarity(true); 39 else if (saved === 'essential') signalClarity(false); 40 } catch (e) {} 41 42 function inject() { 43 if (document.getElementById('rz-cookie-overlay')) return; 44 var style = document.createElement('style'); 45 style.textContent = CSS; 46 document.head.appendChild(style); 47 document.body.insertAdjacentHTML('beforeend', HTML); 48 49 document.getElementById('rz-cookie-accept').addEventListener('click', function () { 50 localStorage.setItem('rz-cookie-consent', 'all'); 51 signalClarity(true); 52 close(); 53 }); 54 document.getElementById('rz-cookie-essential').addEventListener('click', function () { 55 localStorage.setItem('rz-cookie-consent', 'essential'); 56 signalClarity(false); 57 close(); 58 }); 59 document.getElementById('rz-cookie-overlay').addEventListener('click', function (e) { 60 if (e.target === this) close(); 61 }); 62 } 63 64 function close() { 65 var el = document.getElementById('rz-cookie-overlay'); 66 if (el) el.classList.remove('open'); 67 } 68 69 window.openCookieSettings = function () { 70 inject(); 71 if (window.rzApplyI18n) window.rzApplyI18n(); 72 document.getElementById('rz-cookie-overlay').classList.add('open'); 73 }; 74})();
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.