1const template = document.querySelector('#cookieBarHTML'); 2const linkElem = document.createElement('link'); 3linkElem.setAttribute('rel', 'stylesheet'); 4linkElem.setAttribute('href', '/static/wpjweb/css/cookie-bar.css'); 5 6const scriptElem = document.createElement('script'); 7scriptElem.setAttribute('src', '/static/wpjweb/js/cookie-bar-inner.js'); 8 9window.shadowRootCookie = document.querySelector('#cookieBarShadowRoot').attachShadow({ mode: "closed" }); 10window.shadowRootCookie.appendChild(linkElem); 11window.shadowRootCookie.appendChild(scriptElem); 12window.shadowRootCookie.appendChild(template.content.cloneNode(true));
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.