Please ensure Javascript is enabled for purposes of website accessibility
(function () { function initAutoplayTabs() { var widgets = document.querySelectorAll('.autoplay-tabs'); Array.prototype.forEach.call(widgets, function (widget) { if (widget.getAttribute('data-autoplay-ready') === 'yes') { return; } var tabs = widget.querySelectorAll( '.e-n-tab-title, .elementor-tab-title, [role="tab"]' ); if (tabs.length === 0 || tabs.length === 1) { return; } widget.setAttribute('data-autoplay-ready', 'yes'); var currentIndex = 0; var timer = null; function getActiveIndex() { Array.prototype.forEach.call(tabs, function (tab, index) { if ( tab.getAttribute('aria-selected') === 'true' || tab.classList.contains('elementor-active') ) { currentIndex = index; } }); } function playNext() { getActiveIndex(); currentIndex = currentIndex + 1; if (currentIndex === tabs.length) { currentIndex = 0; } tabs[currentIndex].click(); } function startTimer() { if (timer) { clearInterval(timer); } timer = setInterval(function () { playNext(); }, 4000); } Array.prototype.forEach.call(tabs, function (tab, index) { tab.addEventListener('click', function () { currentIndex = index; startTimer(); }); }); getActiveIndex(); startTimer(); }); } initAutoplayTabs(); setTimeout(initAutoplayTabs, 500); setTimeout(initAutoplayTabs, 1500); setTimeout(initAutoplayTabs, 3000); var observer = new MutationObserver(function () { initAutoplayTabs(); }); observer.observe(document.body, { childList: true, subtree: true }); })();
Skip to toolbar