1$ = jQuery.noConflict(); 2$(document).ready(function() { 3 4 let observer = new IntersectionObserver( 5 (entries, observer) => { 6 entries.forEach(entry => { 7 if (entry.isIntersecting) { 8 entry.target.classList.add('seen'); 9 } else { 10 // entry.target.classList.remove('seen'); 11 } 12 }); 13 }, 14 {rootMargin: "0px 0px -15% 0px"}); 15 16 document.querySelectorAll('.watched').forEach(el => { 17 observer.observe(el) 18 }); 19 20 21 22 $('.show-hide-section-tags').bind('click', function (e) { 23 24 e.preventDefault(); 25 26 // add/remove a class to the body 27 $('body').toggleClass('hide-section-tags'); 28 29 // set the cookie to remember the state 30 document.cookie = "hideSectionTags=" + ($('body').hasClass('hide-section-tags') ? 'true' : 'false') + "; path=/"; 31 }); 32 33 // check for the cookie and set the body class 34 if (document.cookie.split(';').some((item) => item.trim().startsWith('hideSectionTags=true'))) { 35 $('body').addClass('hide-section-tags'); 36 } else { 37 $('body').removeClass('hide-section-tags'); 38 } 39 40});
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.