PageSourceSearch

https://heroncity.se/wp-content/themes/heroncity/build/blocks/post…/viewScript.js?ver=e070a4abea17e5b979d1

js heroncity.se collected 2026-09-26 16:10:05 UTC 1,940 bytes, 51 lines download raw bytes

1/******/ (() => { // webpackBootstrap
2/*!**********************************************!*\
3  !*** ./src/blocks/post-slider/viewScript.js ***!
4  \**********************************************/
5(function ($) {
6  $(function () {
7    $('.posts-slider .swiper').each(function () {
8      var slidesS = $(this).closest('.posts-slider').data('slides-s') || 1;
9      var slidesM = $(this).closest('.posts-slider').data('slides-m') || 2;
10      var slidesL = $(this).closest('.posts-slider').data('slides-l') || 3;
11      new Swiper(this, {
12        slidesPerView: slidesS,
13        spaceBetween: 16,
14        loop: false,
15        // Disabled loop d
16        navigation: {
17          nextEl: '.swiper-button-next',
18          prevEl: '.swiper-button-prev'
19        },
20        pagination: {
21          el: '.swiper-pagination',
22          clickable: true,
23          renderBullet: function renderBullet(index, className) {
24            return '<span class="' + className + '"></span>';
25          }
26        },
27        breakpoints: {
28          768: {
29            slidesPerView: slidesM
30          },
31          1024: {
32            slidesPerView: slidesL
33          }
34        }
35      });
36    });
37    $(document).on('click', '.switcher-item-btn', function (e) {
38      $this = $(this);
39      $this.closest('.switcher-wrapper').find('.switcher-item.active .btn-wrapper .wp-block-button__link').attr('tabindex', '-1');
40      $this.closest('.switcher-wrapper').find('.switcher-item.active').removeClass('active');
41      $this.closest('.switcher-item').addClass('active');
42      $this.closest('.switcher-item').find('.btn-wrapper .wp-block-button__link').attr('tabindex', '0');
43      var term = $this.data('term');
44      var $slider = $this.closest('.posts-slider-container').find('.swiper[data-term="' + term + '"]');
45      $slider.addClass('active').siblings('.swiper').removeClass('active');
46    });
47  });
48})(jQuery);
49/******/ })()
50;
51//# 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.