1/******/ (() => { // webpackBootstrap 2/*!*****************************************************!*\ 3 !*** ./src/blocks/header-open-status/viewScript.js ***! 4 \*****************************************************/ 5(function ($) { 6 $(function () { 7 var $items = $('.header-open-status .openings-wrapper .opening-item'); 8 var current = 0; 9 var intervalId; 10 function showNext() { 11 var $currentItem = $items.eq(current); 12 $currentItem.removeClass('active fade-in').addClass('fade-out'); 13 current = (current + 1) % $items.length; 14 var $nextItem = $items.eq(current); 15 setTimeout(function () { 16 $currentItem.removeClass('fade-out'); 17 $nextItem.addClass('active'); 18 setTimeout(function () { 19 return $nextItem.addClass('fade-in'); 20 }, 10); 21 }, 400); 22 } 23 function startRotation() { 24 if (!intervalId) intervalId = setInterval(showNext, 3000); 25 } 26 function stopRotation() { 27 clearInterval(intervalId); 28 intervalId = null; 29 } 30 31 // Pause when tab is inactive 32 document.addEventListener('visibilitychange', function () { 33 if (document.hidden) { 34 stopRotation(); 35 } else { 36 startRotation(); 37 } 38 }); 39 40 // Start initially 41 startRotation(); 42 }); 43})(jQuery); 44/******/ })() 45;
46//# sourceMappingURL=viewScript.js.map
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.