1(function () { 2 3 const onetrust_src = 'https://myprivacy.my.onetrust.eu/cdn/cookies/scripttemplates/otSDKStub.js' 4 5// --- Define global OptanonWrapper safely --- 6 window.OptanonWrapper = window.OptanonWrapper || function OptanonWrapper () {} 7 8 function createOneTrustScript () { 9 10 if (document.querySelector(`script[src="${onetrust_src}"]`)) { 11 return 12 } 13 14 const otScriptProps = document.getElementById('oneTrustScript-props') 15 const domainScript = otScriptProps?.dataset?.domainscript 16 const nonce = otScriptProps?.dataset?.nonce || otScriptProps?.nonce 17 18 const script = document.createElement('script') 19 script.type = 'text/javascript' 20 script.charset = 'UTF-8' 21 script.defer = true 22 script.async = true 23 script.dataset.documentLanguage = 'true' 24 script.dataset.domainScript = domainScript 25 script.nonce = nonce 26 script.src = onetrust_src; 27 (document.head || document.documentElement).appendChild(script) 28 } 29 30 let runTimeout = true 31 32 function triggerOnce () { 33 runTimeout = false 34 createOneTrustScript() 35 window.removeEventListener('pointermove', triggerOnce) 36 window.removeEventListener('pointerdown', triggerOnce) 37 } 38 39 window.addEventListener('pointermove', triggerOnce) 40 window.addEventListener('pointerdown', triggerOnce) 41 42 setTimeout(() => { 43 if (runTimeout) createOneTrustScript() 44 }, 5000); 45})();
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.