PageSourceSearch

https://www.purefeed.com/wp-content/plugins/woo-essential/assets/js/dnwoo.productCarousel.js?ver=1781092290

js purefeed.com collected 2026-10-10 01:27:24 UTC 3,786 bytes, 105 lines download raw bytes

1jQuery(function ($) {
2  $(".dnwoo_product_carousel_active").each(function (e) {
3    const wooProduct = $(this).data();
4
5    const wooProductBreakpoint =
6      wooProduct.breakpoints && wooProduct.breakpoints.split("|");
7
8    const wooProductBetween =
9      wooProduct.spacebetween && wooProduct.spacebetween.split("|");
10
11    var screenWidth = window.innerWidth;
12
13    var mobileBreakpoint = 767; // mobile breakpoint
14    var tabletBreakpoint = 980; // tablet breakpoint
15    let wooProductBreakpointparse;
16    let wooProductBetweenparse;
17
18    if (screenWidth <= mobileBreakpoint) {
19      wooProductBetweenparse = wooProductBetween[2];
20      wooProductBreakpointparse = wooProductBreakpoint[2];
21    } else if (screenWidth <= tabletBreakpoint) {
22      wooProductBetweenparse = wooProductBetween[1];
23      wooProductBreakpointparse = wooProductBreakpoint[1];
24    } else {
25      wooProductBetweenparse = wooProductBetween[0];
26      wooProductBreakpointparse = wooProductBreakpoint[0];
27    }
28
29    const wooProductCarousel = new Swiper(this, {
30      autoHeight: "on" === wooProduct.autoheight,
31      speed: wooProduct.speed ? parseInt(wooProduct.speed) : 400,
32      centeredSlides: "on" === wooProduct.center,
33      direction: "horizontal",
34      slidesPerView: wooProductBreakpoint && parseInt(wooProductBreakpointparse),
35      spaceBetween: wooProductBetween && parseInt(wooProductBetweenparse),
36      grabCursor: "on" === wooProduct.grabCursor,
37      loop: "on" === wooProduct.loop,
38      autoplay: {
39        enabled: "on" === wooProduct.autoplay,
40        delay: wooProduct.delay ? parseInt(wooProduct.delay) : 5000,
41      },
42      effect: "coverflow",
43      coverflowEffect: {
44        slideShadows: "on" === wooProduct.shadow,
45        rotate: +wooProduct.rotate,
46        stretch: +wooProduct.stretch,
47        depth: +wooProduct.depth,
48      },
49      keyboard: {
50        enabled: "on" === wooProduct.keyboardenable,
51        onlyInViewport: false,
52      },
53      pagination: {
54        el: ".swiper-pagination",
55        dynamicBullets: "on" === wooProduct.paginationBullets,
56        clickable: true,
57        type: wooProduct.paginationType,
58      },
59      navigation: {
60        nextEl:
61          $(this).siblings(".swiper-button-next")[0] ||
62          $(this)
63            .siblings(".swiper-button-container")
64            .children(".swiper-button-next")[0],
65        prevEl:
66          $(this).siblings(".swiper-button-prev")[0] ||
67          $(this)
68            .siblings(".swiper-button-container")
69            .children(".swiper-button-prev")[0],
70      },
71      breakpoints: {
72        // when window width is >= 1024px
73        980: {
74          slidesPerView:
75            wooProductBreakpoint.length && parseInt(wooProductBreakpoint[0]),
76          spaceBetween: wooProductBetween && parseInt(wooProductBetween[0]),
77        },
78        // when window width is >= 768px
79        768: {
80          slidesPerView:
81            wooProductBreakpoint.length && parseInt(wooProductBreakpoint[1]),
82          spaceBetween: wooProductBetween && parseInt(wooProductBetween[1]),
83        },
84        // when window width is >= 479px
85        320: {
86          slidesPerView:
87            wooProductBreakpoint && parseInt(wooProductBreakpoint[2]),
88          spaceBetween: wooProductBetween && parseInt(wooProductBetween[2]),
89        },
90      },
91      observer: !0,
92      observeParents: !0,
93      observeSlideChildren: !0,
94    });
95
96    if ("on" === wooProduct.autoplay && wooProduct.pauseonhover === "on") {
97      $(this).mouseenter(function () {
98        wooProductCarousel.autoplay.stop();
99      });
100      $(this).mouseleave(function () {
101        wooProductCarousel.autoplay.start();
102      });
103    }
104  });
105});

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.