1jQuery(document).on( "click", ".close-icon",(function(){ 2 jQuery(".floating-bar-content").hide(); 3 var days = jQuery('.number-of-days').val(); 4 setCookie( "zorem-floating-bar-"+days, "hide", days ); 5})); 6 7jQuery(document).scroll(function() { 8 9 var footer_length = jQuery('#footer').length; 10 var floating_content_length = jQuery('.floating-bar-content').length; 11 12 if(footer_length > 0 && floating_content_length > 0){ 13 14 jQuery('body').css('position', 'relative'); 15 16 if(jQuery('.floating-bar-content').offset().top + jQuery('.floating-bar-content').height() >= jQuery('#footer').offset().top - 10){ 17 jQuery('.floating-bar-content').css('position', 'absolute').css('bottom', jQuery('#footer').height() ); 18 } 19 if(jQuery(document).scrollTop() + window.innerHeight < jQuery('#footer').offset().top){ 20 jQuery('.floating-bar-content').css('position', '').css('bottom', ''); 21 } 22 } 23}); 24 25function getCookie(cname) { 26 var name = cname + "="; 27 var decodedCookie = decodeURIComponent(document.cookie); 28 var ca = decodedCookie.split(';'); 29 for(var i = 0; i <ca.length; i++) { 30 var c = ca[i]; 31 while (c.charAt(0) == ' ') { 32 c = c.substring(1); 33 } 34 if (c.indexOf(name) == 0) { 35 return c.substring(name.length, c.length); 36 } 37 } 38 return ""; 39} 40 41jQuery(document).ready(function(e) { 42 var days = jQuery('.number-of-days').val(); 43 var floating_bar = getCookie("zorem-floating-bar-"+days); 44 if( floating_bar == 'hide'){ 45 jQuery(".floating-bar-content").hide(); 46 } else { 47 jQuery(".floating-bar-content").show(); 48 } 49}); 50 51function setCookie(cname, cvalue, exdays) { 52 var d = new Date(); 53 d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000)); 54 var expires = "expires="+d.toUTCString(); 55 document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; 56}
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.