1jQuery(document).ready(function($){ 2$.fn.isInViewport = function() { 3 var elementTop = $(this).offset().top; 4 var elementBottom = elementTop + $(this).outerHeight(); 5 6 var viewportTop = $(window).scrollTop(); 7 var viewportBottom = viewportTop + $(window).height(); 8 9 return elementBottom > viewportTop && elementTop < viewportBottom; 10}; 11 12$(window).on('resize scroll', function() { 13 if ($('.customvd').length > 0 && $('.customvd').isInViewport()) { 14 if($('.customvd').children().length == 0) { 15 $('#ytplayer').appendTo('.customvd').hide() 16 .fadeIn(1000); 17 } 18 } else { 19 if($('#hoover-player').children().length == 0) { 20 $('#ytplayer').appendTo('#hoover-player').hide() 21 .fadeIn(1000); 22 } 23 } 24}); 25});
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.