1$(document).ready(function () { 2 jQuery("body").scroll(function () { 3 jQuery(".to-fade-in").each(function () { 4 var top_of_element = jQuery(this).offset().top; 5 var bottom_of_element = 6 jQuery(this).offset().top + jQuery(this).outerHeight(); 7 var bottom_of_screen = 8 jQuery(window).scrollTop() + jQuery(window).innerHeight(); 9 var top_of_screen = jQuery(window).scrollTop(); 10 11 if ( 12 bottom_of_screen > top_of_element && 13 top_of_screen < bottom_of_element && 14 !jQuery(this).hasClass("fade-in") 15 ) { 16 jQuery(this).addClass("fade-in"); 17 } 18 }); 19 }); 20});
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.