1(function () { 2 var items = document.querySelectorAll( 3 ".banner-certificate-wrapper .banner-certificate-item", 4 ); 5 if (!items.length) return; 6 var currentIndex = 0; 7 var animDuration = 500; // ms â must match CSS animation duration 8 // Show the first item immediately 9 items[currentIndex].classList.add("cert-active"); 10 setInterval(function () { 11 var current = items[currentIndex]; 12 var nextIndex = (currentIndex + 1) % items.length; 13 var next = items[nextIndex]; 14 // Slide current item out (upward) 15 current.classList.remove("cert-active"); 16 current.classList.add("cert-leaving"); 17 // After exit animation, slide next item in from below 18 setTimeout(function () { 19 current.classList.remove("cert-leaving"); 20 next.classList.add("cert-active"); 21 currentIndex = nextIndex; 22 }, animDuration); 23 }, 5000); 24})();
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.