1(function() { 2 3 var req = new XMLHttpRequest(); 4 req.open('GET','/inc/gdrp.php',true); 5 req.responseType = 'document'; 6 req.onload = function() { 7 if (this.status === 200) { 8 9 // Insert 10 document.body.insertAdjacentHTML("beforeend",this.response.body.innerHTML); 11 12 // Cache 13 var el = document.getElementById('cookie-policy'); 14 15 // Bind 16 el.addEventListener('click',function( _e ) { 17 18 // Close 19 if(_e.target.dataset.action == 'close') { 20 _e.preventDefault(); 21 el.remove(); 22 } 23 24 // Accept 25 else if(_e.target.dataset.action == 'accept') { 26 _e.preventDefault(); 27 SITE.setCookie('cookie_compliance','yes',365,'/'); 28 el.remove(); 29 location.reload(); 30 } 31 32 }); 33 } 34 } 35 req.send(); 36 37})();
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.