https://www.rosersbergsslott.se/wp-content/plugins/tankbar-multibl…/view.js?ver=d01b208ef6f05d822e06
1/******/ (() => { // webpackBootstrap 2/*!****************************************!*\ 3 !*** ./src/tankbar-multiblock/view.js ***! 4 \****************************************/ 5document.addEventListener("DOMContentLoaded", function () { 6 // Vimeo backgrounds (poster fade, quality) are handled by the inline script next to the iframe in render.php 7 8 document.querySelectorAll('.multiblock-gallery').forEach(function (gallery) { 9 var swiperContainer = gallery.querySelector('.swiper'); 10 if (!swiperContainer) return; 11 var transitionDuration = parseInt(swiperContainer.dataset.transitionDuration) || 1500; 12 var intervalDuration = parseInt(swiperContainer.dataset.intervalDuration) || 6000; 13 var transitionStyle = swiperContainer.dataset.transitionStyle || 'fade'; 14 var galleryButtons = swiperContainer.dataset.galleryButtons === 'true'; 15 var galleryImages = swiperContainer.querySelectorAll('.swiper-slide'); 16 if (galleryImages.length > 1) { 17 new Swiper(swiperContainer, { 18 observer: true, 19 observeParents: true, 20 autoplay: galleryButtons ? false : { 21 delay: intervalDuration 22 }, 23 effect: transitionStyle, 24 fadeEffect: transitionStyle === 'fade' ? { 25 crossFade: true 26 } : {}, 27 speed: transitionDuration, 28 allowTouchMove: galleryButtons, 29 preloadImages: false, 30 lazy: { 31 checkInView: true, 32 loadPrevNext: true 33 }, 34 navigation: galleryButtons ? { 35 nextEl: gallery.querySelector('.swiper-button-next'), 36 prevEl: gallery.querySelector('.swiper-button-prev') 37 } : false 38 }); 39 } 40 }); 41}); 42/******/ })() 43; 44//# sourceMappingURL=view.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.