1function scrollUp(){ 2 const scrollUp = document.getElementById('scroll-up'); 3 // When the scroll is higher than 460 viewport height, add the show-scroll class to the a tag with the scroll-top class 4 if(this.scrollY >= 460) scrollUp.classList.add('show-scroll'); else scrollUp.classList.remove('show-scroll') 5} 6window.addEventListener('scroll', scrollUp) 7 8jQuery(document).ready(function($) { 9 var $articles = $('.sidebar__article-item'); 10 var currentIndex = 0; 11 12 function toggleVisibility(index) { 13 $articles.hide(); 14 $articles.eq(index).show(); 15 } 16 17 // Initial Hide 18 toggleVisibility(currentIndex); 19 20 $('.right-arrow').click(function() { 21 if (currentIndex < $articles.length - 1) { 22 currentIndex++; 23 toggleVisibility(currentIndex); 24 } 25 }); 26 27 $('.left-arrow').click(function() { 28 if (currentIndex > 0) { 29 currentIndex--; 30 toggleVisibility(currentIndex); 31 } 32 }); 33});
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.