PageSourceSearch

https://fnfmb.com/wp-content/cache/min/1/wp-content/themes/fnfmb/v…/banner-carousel.js?ver=1790088672

js fnfmb.com collected 2026-09-28 08:41:48 UTC 1,472 bytes, 13 lines download raw bytes

1document.addEventListener('DOMContentLoaded',function(){const items=document.querySelectorAll('.carousel-item');const pauseBtn=document.querySelector('#banner-play-pause');const interval=5*1000;let index=0;let intervalId;let isPaused=!1;function showSlide(i){items.forEach((item,idx)=>{item.classList.toggle('active',idx===i)})}
2function nextSlide(){index=(index+1)%items.length;showSlide(index)}
3function startCarousel(){intervalId=setInterval(nextSlide,interval);isPaused=!1;updatePauseButton()}
4function pauseCarousel(){clearInterval(intervalId);isPaused=!0;updatePauseButton()}
5function updatePauseButton(){if(!pauseBtn)return;pauseBtn.innerHTML=isPaused?`<svg class="h-6 w-6" viewBox="-32 0 512 512" xmlns="http://www.w3.org/2000/svg" fill="currentColor">
6            <title><?php echo esc_attr_x('Play carousel', 'play', 'basicwp'); ?></title>
7            <path d="M128 96L384 256 128 416z" />
8          </svg>`:`<svg class="h-6 w-6" viewBox="-64 0 512 512" xmlns="http://www.w3.org/2000/svg" fill="currentColor">
9            <title><?php echo esc_attr_x('Pause carousel', 'pause', 'basicwp'); ?></title>
10            <path d="M64 96L160 96 160 416 64 416 64 96ZM224 96L320 96 320 416 224 416 224 96Z" />
11          </svg>`}
12if(pauseBtn){pauseBtn.addEventListener('click',()=>{isPaused?startCarousel():pauseCarousel()})}
13document.addEventListener('visibilitychange',()=>{document.hidden?pauseCarousel():(!isPaused&&startCarousel())});showSlide(index);startCarousel()})

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.