1(function() { 2 var scrollBottom = $(window).scrollTop() + $(window).height(); 3 var selector = ".mod_article"; 4/* var selector = 5 "h1, h2, h3, .ce_text h2, .ce_text h3, .ce_text h4, .ce_text h5, .ce_text p, .ce_text li, .ce_list li, .ce_image, .ce_gallery, .ce_hyperlink, .ce_form, .ce_rsce_feature, .ce_rsce_ansprechpartner, .bewertung, #footer"; */ 6 var elements = []; 7 var update = function() { 8 scrollBottom = $(window).scrollTop() + $(window).height(); 9 elements.forEach(function(element) { 10 if (!element.visible && element.obj.offset().top <= scrollBottom) { 11 element.visible = true; 12 element.obj.delay(100).animate({ opacity: 1 }, 500); 13 } else if (element.visible && element.obj.offset().top > scrollBottom) { 14 element.visible = false; 15 element.obj.css({ opacity: 0 }); 16 } 17 }); 18 }; 19 $(selector).each(function() { 20 var element = { obj: $(this) }; 21 element.visible = element.obj.offset().top <= scrollBottom; 22 if (!element.visible) element.obj.css("opacity", 0); 23 elements.push(element); 24 }); 25 $(window).scroll(update); 26 $(window).resize(update); 27})();
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.