(function (win, doc) { var wow = new WOW({ boxClass: "wow", animateClass: "animated", offset: 0, mobile: true, live: true, }); wow.init(); // banner var activeBannerIndex = 0; var banner = new Swiper(".banner-container", { autoplayDisableOnInteraction: false, autoplay: 5000, loop: true, pagination: { el: ".banner-pagination", clickable: true, }, on: { slideChangeTransitionEnd() { activeBannerIndex = this.realIndex; }, }, a11y: { prevSlideMessage: "Previous slide", nextSlideMessage: "Next slide", firstSlideMessage: "This is the first slide", lastSlideMessage: "This is the last slide", paginationBulletMessage: "Go to slide " + (activeBannerIndex + 1), notificationClass: "swiper-notification", containerMessage: "This is a swiper", containerRoleDescriptionMessage: "banner", //aria-role-description itemRoleDescriptionMessage: "slider", }, }); var activeProductBannerIndex = 0; var productBanner = new Swiper(".product-banner", { autoplayDisableOnInteraction: false, autoplay: 5000, loop: true, pagination: { el: ".product-pagination", clickable: true }, a11y: { prevSlideMessage: "Previous slide", nextSlideMessage: "Next slide", firstSlideMessage: "This is the first slide", lastSlideMessage: "This is the last slide", paginationBulletMessage: "Go to slide " + (activeProductBannerIndex + 1), notificationClass: "swiper-notification", containerMessage: "This is a swiper", containerRoleDescriptionMessage: "banner", //aria-role-description itemRoleDescriptionMessage: "slider", }, }); })(window, document);