1jQuery(document).ready(function(){renderVerticalSlider();});if(window.acf){var sliderTimeout;window.acf.addAction('render_block_preview',function($block){clearTimeout(sliderTimeout);sliderTimeout=setTimeout(function(){renderVerticalSlider();},300);});} 2function renderVerticalSlider(){var isEditor=jQuery('body').hasClass('block-editor-page');var autoplay=!isEditor;var autoplaySpeed=3000;var loop=true;var pauseOnHover=true;var transitionSpeed=500;var sliderHeight=500;jQuery('.block-vertical-slider').each(function(){const blockElement=jQuery(this);if(blockElement.data('autoplay-interval')){clearInterval(blockElement.data('autoplay-interval'));} 3blockElement.find('.dot').off('click');blockElement.find('.slider-prev, .slider-next').off('click');blockElement.find('.slider-track').off('mouseenter mouseleave');const track=blockElement.find('.slider-track');const prevArrow=blockElement.find('.slider-prev');const nextArrow=blockElement.find('.slider-next');if(track.length===0)return;const items=track.find('.reason-item');const dotsContainer=blockElement.find('.slider-dots');if(items.length===0)return;track.css('transition','transform '+(transitionSpeed/1000)+'s ease-in-out');let currentIndex=0;let autoplayInterval;function getItemHeight(){return items.first().outerHeight(true);} 4const totalItems=items.length;dotsContainer.empty();for(let i=0;i<totalItems;i++){const dot=jQuery('<div class="dot"></div>');if(i===0)dot.addClass('active');dot.on('click',function(){goToSlide(i);});dotsContainer.append(dot);} 5const dots=dotsContainer.find('.dot');function updateSlider(){const itemHeight=getItemHeight();track.css('transform','translateY(-'+(currentIndex*itemHeight)+'px)');dots.removeClass('active');dots.eq(currentIndex).addClass('active');} 6function goToSlide(index){currentIndex=index;updateSlider();if(autoplay){resetAutoplay();}} 7function nextSlide(){if(currentIndex<totalItems-1){currentIndex++;}else{if(loop){currentIndex=0;}else{stopAutoplay();return;}} 8updateSlider();} 9function prevSlide(){if(currentIndex>0){currentIndex--;}else{if(loop){currentIndex=totalItems-1;}} 10updateSlider();} 11function startAutoplay(){if(!autoplay)return;clearInterval(autoplayInterval);autoplayInterval=setInterval(nextSlide,autoplaySpeed);blockElement.data('autoplay-interval',autoplayInterval);} 12function stopAutoplay(){clearInterval(autoplayInterval);} 13function resetAutoplay(){stopAutoplay();startAutoplay();} 14nextArrow.on('click',function(){nextSlide();if(autoplay){resetAutoplay();}});prevArrow.on('click',function(){prevSlide();if(autoplay){resetAutoplay();}});if(pauseOnHover){track.on('mouseenter',stopAutoplay);track.on('mouseleave',startAutoplay);} 15if(autoplay){startAutoplay();} 16updateSlider();});}
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.