1(function ($) { 2 /** 3 * @param $scope The Widget wrapper element as a jQuery element 4 * @param $ The jQuery alias 5 */ 6 var centreInformationSliderHandler = function ($scope, $) { 7 8 $(".testimonial-slider").length > 0 && $(".testimonial-slider").each(function () { 9 var slideShow = $(this).attr('data-show-count') * 1; 10 var slideShowMd = $(this).attr('data-show-count-md') * 1; 11 var slideShowMob = $(this).attr('data-show-count-mob') * 1; 12 var slideSpeed = $(this).attr('data-slick-speed') * 1; 13 var slideAutoplay = $.parseJSON($(this).attr('data-slick-autoplay')); 14 $(this).slick({ 15 arrows: false, 16 dots: true, 17 infinite: false, 18 adaptiveHeight: true, 19 slidesToShow: slideShow, 20 slidesToScroll: 1, 21 swipeToSlide: true, 22 autoplay: slideAutoplay, 23 autoplaySpeed: slideSpeed, 24 responsive: [ 25 { 26 breakpoint: 1200, 27 settings: { 28 slidesToShow: slideShowMd, 29 } 30 }, 31 { 32 breakpoint: 705, 33 settings: { 34 slidesToShow: slideShowMob, 35 } 36 } 37 ] 38 }); 39 }); 40 41 $(".teacher-slider").length > 0 && $(".teacher-slider").each(function () { 42 var slideShow = $(this).attr('data-show-count') * 1; 43 var slideShowMd = $(this).attr('data-show-count-md') * 1; 44 var slideShowMob = $(this).attr('data-show-count-mob') * 1; 45 var slideSpeed = $(this).attr('data-slick-speed') * 1; 46 var slideAutoplay = $.parseJSON($(this).attr('data-slick-autoplay')); 47 $(this).slick({ 48 arrows: false, 49 dots: true, 50 infinite: true, 51 adaptiveHeight: true, 52 slidesToShow: slideShow, 53 slidesToScroll: 1, 54 autoplay: slideAutoplay, 55 autoplaySpeed: slideSpeed, 56 responsive: [ 57 { 58 breakpoint: 1200, 59 settings: { 60 slidesToShow: slideShowMd 61 } 62 }, 63 { 64 breakpoint: 705, 65 settings: { 66 slidesToShow: slideShowMob 67 } 68 } 69 ] 70 }); 71 }); 72 73 74 $(".adventage-slider").length > 0 && $(".adventage-slider").each(function () { 75 var t = 1 * $(this).attr("data-show-count"), 76 a = 1 * $(this).attr("data-show-count-md"), 77 i = 1 * $(this).attr("data-show-count-mob"), 78 e = 1 * $(this).attr("data-slick-speed"), 79 o = $.parseJSON($(this).attr("data-slick-autoplay")); 80 $(this).slick({ 81 arrows: !1, 82 dots: !0, 83 infinite: !1, 84 adaptiveHeight: !0, 85 slidesToShow: t, 86 slidesToScroll: 1, 87 swipeToSlide: !0, 88 autoplay: o, 89 autoplaySpeed: e, 90 responsive: [{ 91 breakpoint: 1200, 92 settings: { 93 slidesToShow: a 94 } 95 }, { 96 breakpoint: 705, 97 settings: { 98 slidesToShow: i 99 } 100 }] 101 }) 102 }); 103 }; 104 // Make sure you run this code under Elementor. 105 $(window).on('elementor/frontend/init', function () { 106 elementorFrontend.hooks.addAction('frontend/element_ready/centre-information.default', centreInformationSliderHandler); 107 });
108})(jQuery);
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.