https://boumbouras-foundation.com/wp-content/plugins/cherry-lazy-load/js/cherry.lazy-load.js?ver=1.0
1function getWindowHeight() { 2 var myWidth = 0, myHeight = 0; 3 if( typeof( window.innerWidth ) == 'number' ) { 4 //Non-IE 5 myHeight = window.innerHeight; 6 } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { 7 //IE 6+ in 'standards compliant mode' 8 myHeight = document.documentElement.clientHeight; 9 } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { 10 //IE 4 compatible 11 myHeight = document.body.clientHeight; 12 } 13 14 return myHeight 15} 16 17function appearBox(element, element_top, bottom_of_window) { 18 /* If the object is completely visible in the window, fade it it */ 19 var buffer = element.outerHeight()/2; 20 if( bottom_of_window > element_top + buffer) { 21 setTimeout(function(){ 22 element.removeClass('trigger').animate({'opacity':'1'}, element.data('speed')) 23 }, element.data('delay')); 24 } 25} 26 27 28(function($) { 29 $(window).load(function() { 30 if(!device.mobile() && !device.tablet()){ 31 $('.lazy-load-box').each( function(i){ 32 var element_offset = $(this).offset(), 33 element_top = element_offset.top; 34 bottom_of_window = $(window).scrollTop() + getWindowHeight(); 35 36 appearBox($(this), element_top, bottom_of_window); 37 }); 38 39 /* Every time the window is scrolled ... */ 40 $(window).scroll( function() { 41 /* Check the location of each desired element */ 42 $('.lazy-load-box').each( function(i){ 43 44 var element_offset = $(this).offset(), 45 element_top = element_offset.top; 46 bottom_of_window = $(window).scrollTop() + getWindowHeight(); 47 48 appearBox($(this), element_top, bottom_of_window); 49 50 }); 51 52 }); 53 } else { 54 $('.lazy-load-box').each( function(i) { 55 $(this).removeClass('trigger').css('opacity', '1'); 56 }); 57 } 58 }); 59})(jQuery);
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.