1var MG_jQuery; 2function load_js_file(src, callback) { 3 var s,r,t,h; 4 r = false; 5 s = document.createElement('script'); 6 s.type = 'text/javascript'; 7 s.src = src; 8 s.onload = s.onreadystatechange = function() { 9 if (!r && (!this.readyState || this.readyState === 'complete')) 10 { 11 r = true; 12 callback(); 13 } 14 }; 15 t = document.getElementsByTagName('script')[0]; 16 h = document.getElementsByTagName('head')[0]; 17 18 h.appendChild(s); 19} 20 21function load_css_file(filename) { 22 var cssNode = document.createElement('link'); 23 cssNode.setAttribute('rel', 'stylesheet'); 24 cssNode.setAttribute('type', 'text/css'); 25 cssNode.setAttribute('media', 'screen'); 26 cssNode.setAttribute('href', filename); 27 document.getElementsByTagName("head")[0].appendChild(cssNode); 28} 29 30function load_array_js_files(array, index, callback) { 31 if (array[index]) { 32 load_js_file(array[index], function() { 33 load_array_js_files(array, index + 1, callback); 34 }); 35 } else { 36 callback(); 37 } 38} 39 40function load_array_css_files(array, callback) { 41 var index = 0; 42 while (array[index]) { 43 load_css_file(array[index]); 44 ++index; 45 } 46 callback(); 47} 48var MG_loaded = false; 49load_array_css_files([ 50 'https://mediatorexpert.pl/bundles/lscms/cookie-info/cookie-info.min.css', 51], function() { 52 load_js_file("https://mediatorexpert.pl/bundles/lscms/cookie-info/jquery-1.10.2.min.js", function() { 53 MG_jQuery = jQuery.noConflict(true); 54 load_array_js_files([ 55 "https://mediatorexpert.pl/bundles/lscms/cookie-info/jquery.cookie.min.js", 56 ], 0, function() { 57 MG_loaded = true; 58 loadInfo(); 59 }); 60 }); 61} 62); 63 64function loadInfo() { 65 var cookiesInfoHTML = '<div id="cookies-info">' + 66 '<div class="cookies-container">' + cookieInfoText + 67 '<div class="accept">' + cookieInfoButton + '</div>' + 68 '</div>' + 69 '</div>'; 70 71 if ($.cookie('cookie') !== "true") { 72 $('body').append(cookiesInfoHTML); 73 $('#cookies-info').on('click', function(){ 74 acceptCookies(); 75 }); 76 } 77} 78 79function acceptCookies() { 80 $.cookie('cookie', 'true', { expires: 365, path: '/' }); 81 $('#cookies-info').remove(); 82}
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.