PageSourceSearch

https://www.riverbankfcu.com/S3Assets/WLFCU/scripts/animated-carousel.js

js riverbankfcu.com collected 2026-10-09 22:46:31 UTC 3,243 bytes, 5 lines download raw bytes

1$(document).ready(function(){'use strict';var carouselId='carousel-homepage',randomInitialSlide=false,slideInterval=6000;var myCarousel=$('div#'+carouselId),carouselItems=myCarousel.find('.carousel-item'),numOfSlides=carouselItems.length,initialSlideIndex=randomInitialSlide?Math.floor(Math.random()*numOfSlides):0;carouselItems.each(function(){$(this).find('div.carousel-caption > .animated').each(function(index){var animElement=$(this),captionContainer=animElement.parent(),animDur,animDelay;if(captionContainer.hasClass('speed-slow')){animDur=1000;animDelay=700*(index+1);}else if(captionContainer.hasClass('speed-fast')){animDur=500;animDelay=300*(index+1);}else{animDur=750;animDelay=500*(index+1);}
2animElement.css({"animation-duration":animDur+"ms","animation-delay":animDelay+"ms"});});});myCarousel.append("<ol class='carousel-indicators d-none d-md-flex d-print-none' aria-label='Carousel Navigation'></ol>");var carouselIndicators=myCarousel.find(".carousel-indicators");carouselItems.each(function(index){if(index===initialSlideIndex){carouselIndicators.append('<li role="button" tabindex="0" data-target="#'+carouselId+'" data-slide-to="'+index+'" class="active"><span class="sr-only">Show slide '+(index+1)+'</span></li>');}else{carouselIndicators.append('<li role="button" tabindex="0" data-target="#'+carouselId+'" data-slide-to="'+index+'"><span class="sr-only">Show slide '+(index+1)+'</span></li>');}});carouselIndicators.children('li[data-slide-to]').each(function(){var indicatorItem=$(this);indicatorItem.on('keypress',function(e){var key=e.which||e.keyCode;if(key===13){myCarousel.carousel(indicatorItem.data('slide-to'));}});});if(numOfSlides>1){carouselIndicators.append('<li role="button" tabindex="0" class="togglePausePlay"><span class="sr-only">Pause</span></li>');}
3myCarousel.find('.togglePausePlay').on('click keypress',function(e){var key=e.which||e.keyCode;if(e.type==='click'||key===13){var playPauseButton=$(this);if(playPauseButton.hasClass('paused')){myCarousel.carousel('cycle');playPauseButton.toggleClass('paused').html('<span class="sr-only">Pause</span>');}else{myCarousel.carousel('pause');playPauseButton.toggleClass('paused').html('<span class="sr-only">Play</span>');}
4return false;}});if(carouselItems.length>1&&'Hammer'in window){var hammerElement=document.getElementById(carouselId),hammerObj=new Hammer(hammerElement);hammerObj.on('swipeleft',function(){myCarousel.carousel('next');});hammerObj.on('swiperight',function(){myCarousel.carousel('prev');});}
5carouselItems.eq(initialSlideIndex).addClass('active');var carouselItemsHiddenInitially=carouselItems.not('.active');carouselItemsHiddenInitially.find('div.carousel-caption > .animated').addClass('sr-only');carouselItemsHiddenInitially.find('a').attr('tabindex','-1');myCarousel.on('slid.bs.carousel',function(){var hiddenCarouselItems=carouselItems.not('.active'),activeCarouselItem=carouselItems.filter('.active');hiddenCarouselItems.find('div.carousel-caption > .animated').addClass('sr-only');activeCarouselItem.find('div.carousel-caption > .animated').removeClass('sr-only');hiddenCarouselItems.find('a').attr('tabindex','-1');activeCarouselItem.find('a').removeAttr('tabindex');});myCarousel.carousel({interval:slideInterval});});

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.