1 2document.addEventListener("DOMContentLoaded", function() { 3 hueBorlabs.init(); 4}); 5window.addEventListener("load", function() { 6 hueBorlabs.loadPageContent(); 7}); 8document.addEventListener('hueAjaxReady', function (e) { 9 10}); 11document.addEventListener('hueAjaxLoad', function (e) { 12 hueBorlabs.checkBorlabsCookie(); 13}); 14 15var hueBorlabs = (function() { 16 17 var debug = true; 18 var initOnce = false; 19 20 var init = function() { 21 22 if ( window.BorlabsCookie === undefined ) return; 23 24 if ( debug ) console.log('Hello Borlabs Cookie'); 25 26 if ( initOnce ) return; 27 initOnce = true; 28 29 initEvents(); 30 } 31 32 var checkBorlabsCookie = function() { 33 if ( window.BorlabsCookie === undefined ) return; 34 35 var consents = window.BorlabsCookie.getCookie().consents; 36 for(var i = 0; i < consents['external-media'].length; i++) { 37 if ( debug ) console.log('Unblock: '+consents['external-media'][i]); 38 window.BorlabsCookie.unblockContentId(consents['external-media'][i]); 39 } 40 loadPageContent(); 41 } 42 43 var initEvents = function() { 44 $(document).on('click', '#BorlabsCookieBox ._brlbs-accept a, #BorlabsCookieBox ._brlbs-refuse-btn a, ._brlbs-content-blocker a._brlbs-btn', function(event) { 45 //event.preventDefault(); 46 //event.stopPropagation(); 47 loadPageContent(); 48 }); 49 } 50 51 var loadPageContent = function() { 52 if ( window.BorlabsCookie === undefined ) return; 53 54 setTimeout(function() { 55 hueLazyLoad.loadMedia($('body')); 56 hueICheck.init(); 57 hueMaps.init(); 58 }, 200); 59 } 60 61 return { 62 init: init, 63 checkBorlabsCookie: checkBorlabsCookie, 64 loadPageContent: loadPageContent 65 }; 66})(); 67 68/*document.addEventListener('borlabs-cookie-code-unblocked', function (e) { 69 console.log("Borlabs Cookie: Code unblocked"); 70 console.log(e); 71 hueLazyLoad.loadMedia($('body')); 72}); 73 74document.addEventListener('borlabs-cookie-code-unblocked-after-consent', function (e) { 75 console.log("Borlabs Cookie: Code unblocked after consent"); 76 console.log(e); 77 hueLazyLoad.loadMedia($('body')); 78}); 79 80document.addEventListener('borlabs-cookie-consent-saved', function (e) { 81 console.log("Borlabs Cookie: Consent saved"); 82 console.log(e); 83 hueLazyLoad.loadMedia($('body')); 84});*/
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.