PageSourceSearch

https://madisonmuffler.com/wp-content/plugins/we-blocks/assets/js/we-posts-slider.js

js madisonmuffler.com collected 2026-09-29 16:33:33 UTC 3,685 bytes, 68 lines download raw bytes

1/*
2We Block Posts Slider
3*/
4jQuery(document).ready(function($) {
5  var masnoryContainer = $(".we_psb_container");
6  masnoryContainer.each(function() {
7    var sliderSettings = {
8      dots: $(this).data("enabledots") ? $(this).data("enabledots") : true,
9      infinite: $(this).data("infinite") ? $(this).data("infinite") : true,
10      slidesToShow: $(this).data("slidestoshow") ? $(this).data("slidestoshow") : 1,
11      slidesToScroll: $(this).data("slidestoscroll") ? $(this).data("slidestoscroll") : 1,
12      fade: $(this).data("fadeanimation") ? $(this).data("fadeanimation") : false,
13      autoplay:$(this).data("autoplay") ? $(this).data("autoplay") : true,
14      speed: $(this).data("animationspeed") ? $(this).data("animationspeed") : 1000,
15      autoplaySpeed: $(this).data("autoplaydelay") ? $(this).data("autoplaydelay") : 4000,
16      initialSlide: $(this).data("initialslide") ? $(this).data("initialslide") : 0,
17      lazyLoad: $(this).data("ladzloadslides") ? $(this).data("ladzloadslides") : false,
18      adaptiveHeight: $(this).data("adaptiveheight") ? $(this).data("adaptiveheight") : true,
19      pauseOnHover: $(this).data("pauseonhover") ? $(this).data("pauseonhover") : true,
20      swipeToSlide: $(this).data("swipetoslide") ? $(this).data("swipetoslide") : false,
21      vertical: $(this).data("verticalslider") ? $(this).data("verticalslider") : false,
22      focusOnSelect: $(this).data("focusonselect") ? $(this).data("focusonselect") : false,
23      // rtl: $(this).data("reverseslidescroll") ? $(this).data("reverseslidescroll") : false, //images are not showing due to some bug in js
24      arrows: $(this).data("showarrows") ? $(this).data("showarrows") : true,
25      variableWidth: $(this).data("variablewidth") ? $(this).data("variablewidth") : false,
26      centerMode: $(this).data("centermode") ? $(this).data("centermode") : false,
27      cssEase: $(this).data("cssease") ? $(this).data("cssease") : "linear" ,
28      dotsClass: "slick-dots "+ ($(this).data("sliderdotsclass") ? $(this).data("sliderdotsclass") : ""),
29    }
30
31    if(sliderSettings['slidesToShow'] == 1){
32      $(".we_psb_container").addClass('single_slide');
33    }
34
35    if($(this).data("responsivesettings")){
36      sliderSettings["responsive"] = [
37        {
38         breakpoint : 1024,
39         settings: {
40           slidesToShow: $(this).data("deskslidestoshow") ? $(this).data("deskslidestoshow") : 1,
41           slidesToScroll: $(this).data("deskslidestoscroll") ? $(this).data("deskslidestoscroll") : 1,
42           arrows: $(this).data("deskarrows") ? $(this).data("deskarrows") : true,
43           dots: $(this).data("deskdots") ? $(this).data("deskdots") : true
44         }
45        },
46        {
47         breakpoint : 600,
48         settings: {
49           slidesToShow: $(this).data("tabslidestoshow") ? $(this).data("tabslidestoshow") : 1,
50           slidesToScroll: $(this).data("tabslidestoscroll") ? $(this).data("tabslidestoscroll") : 1,
51           arrows: $(this).data("tabarrows") ? $(this).data("tabarrows") : true,
52           dots: $(this).data("tabdots") ? $(this).data("tabdots") : true
53         }
54        },
55        {
56         breakpoint : 480,
57         settings: {
58           slidesToShow: $(this).data("mobslidestoshow") ? $(this).data("mobslidestoshow") : 1,
59           slidesToScroll: $(this).data("mobslidestoscroll") ? $(this).data("mobslidestoscroll") : 1,
60           arrows: $(this).data("mobarrows") ? $(this).data("mobarrows") : true,
61           dots: $(this).data("mobdots") ? $(this).data("mobdots") : true
62         }
63        }
64      ]     
65    }
66    $(this).slick(sliderSettings);    
67  });
68});

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.