1$(window).ready(function() { 2 // Activate video items as users scroll 3 const videos = $(".video"); 4 const breakpoint = window.innerHeight / 2; 5 6 $(window).on("scroll", userScroll); 7 function userScroll() { 8 videos.each((i, video) => { 9 const pos = video.getClientRects()[0]; 10 if(breakpoint <= pos.bottom && breakpoint >= pos.top) { 11 $(video).addClass("active"); 12 } 13 else { 14 $(video).removeClass("active"); 15 } 16 }); 17 } 18 userScroll(); // init 19});
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.