1(function (drupalSettings) { 2 const config = drupalSettings.cookiepro; 3 if (config.uuid) { 4 const script = document.createElement('script'); 5 script.async = true; 6 script.src = "https://cdn.cookielaw.org/consent/" + config.uuid + "/OtAutoBlock.js"; 7 script.type = 'text/javascript'; 8 script.setAttribute("charset", "UTF-8"); 9 document.getElementsByTagName('head')[0].appendChild(script); 10 11 const script1 = document.createElement('script'); 12 script1.async = true; 13 script1.src = "https://cdn.cookielaw.org/scripttemplates/otSDKStub.js"; 14 script1.type = 'text/javascript'; 15 const language = document.createAttribute("data-document-language"); 16 17 // The setAttributeNode method is used to add an attribute node to an element: 18 language.value = "true"; 19 script1.setAttributeNode(language); 20 const domain = document.createAttribute("data-domain-script"); 21 22 // Set the value to domain of uuid: 23 domain.value = config.uuid; 24 25 // Add the domain to attribute node to an element: 26 script1.setAttributeNode(domain); 27 28 // Add the charset attribute with a value of "UTF-8" to the script1 element. 29 script1.setAttribute("charset", "UTF-8"); 30 document.getElementsByTagName('head')[0].appendChild(script1); 31 } 32 33})(drupalSettings);
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.