PageSourceSearch

https://meredafordistrict5.com/wp-content/themes/politono/assets/js/elementor.js?ver=2.5

js meredafordistrict5.com collected 2026-10-06 21:00:00 UTC 3,147 bytes, 112 lines download raw bytes

1"use strict";
2
3let SwiperHelper = {
4  SwiperSlider: function (slider_container, swiperConfig) {
5    if ("undefined" === typeof Swiper) {
6      const asyncSwiper = elementorFrontend.utils.swiper;
7      new asyncSwiper(slider_container, swiperConfig);
8    } else {
9      new Swiper(slider_container, swiperConfig);
10    }
11  },
12};
13
14(function ($, elementor) {
15  "use strict";
16
17	let swiperHelper = {
18		SwiperSlider: function( slider_container, swiperConfig ) {
19			if ( 'undefined' === typeof Swiper ) {
20				const asyncSwiper = elementorFrontend.utils.swiper;
21				new asyncSwiper( slider_container, swiperConfig );
22			} else {
23				new Swiper( slider_container, swiperConfig );
24			}
25		},
26	};
27
28  var Politono = {
29    init: function init() {
30      var widgets = {
31        "politono-testimonial.default": Politono.Testimonial,
32        "politono-sticky-post.default": Politono.StickyPost,
33      };
34
35      $.each(widgets, function (widget, callback) {
36        elementor.hooks.addAction("frontend/element_ready/" + widget, callback);
37      });
38
39      elementor.hooks.addAction(
40        "frontend/element_ready/global",
41        Politono.GlobalCallback
42      );
43    },
44
45    Testimonial: function Testimonial($scope) {
46      let target = $scope.find(".testimonial___slider"),
47        scroll_direction = $(target).data("testimonial-direction"),
48        testimonial_slider = SwiperHelper.SwiperSlider(target, {
49          direction: scroll_direction,
50          grabCursor: true,
51          effect: "fade",
52          fadeEffect: {
53            crossFade: true,
54          },
55          lazy: {
56            loadPrevNext: true,
57          },
58          autoplay: {
59            delay: 2000,
60          },
61          pagination: {
62            el: $scope.find(".swiper-pagination"),
63            clickable: true,
64          },
65        });
66
67      target.on("mouseenter mouseleave", function (event) {
68        if (event.type === "mouseenter") {
69          testimonial_slider.autoplay.stop();
70        }
71        if (event.type === "mouseleave") {
72          testimonial_slider.autoplay.start();
73        }
74      });
75    },
76    StickyPost: function ($scope) {
77      let target = $scope.find(".sticky_post_slider"),
78        autoplay = target.data("autoplay"),
79        loop = target.data("loop") ? target.data("loop") : false;
80
81      let autoplay_data;
82      if (autoplay === true) {
83        autoplay_data = {
84          delay: 5000,
85          disableOnInteraction: false,
86        };
87      }
88
89      let sticky_post_slider = SwiperHelper.SwiperSlider(target, {
90
91        navigation: {
92          nextEl: $scope.find(".sticky_post_next"),
93          prevEl: $scope.find(".sticky_post_prev"),
94        },
95        loop: loop,
96        autoplay: autoplay_data,
97      });
98      if (autoplay === true) {
99        target.on("mouseenter mouseleave", function (event) {
100          if (event.type === "mouseenter") {
101            sticky_post_slider.autoplay.stop();
102          }
103          if (event.type === "mouseleave") {
104            sticky_post_slider.autoplay.start();
105          }
106        });
107      }
108    },
109  };
110
111  $(window).on("elementor/frontend/init", Politono.init);
112})(jQuery, window.elementorFrontend);

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.