PageSourceSearch

https://www.themandalaygroup.com/wp-content/uploads/slmp-dynamic-gen/dynamic-custom-js.js?ver=1.0.0

js themandalaygroup.com collected 2026-10-04 05:57:30 UTC 10,220 bytes, 370 lines download raw bytes

1jQuery(document).ready(function () {
2    
3    /*
4    * lazyloads elements with default selector as '.lazyload'
5    */
6    lazyload();
7
8    setTimeout(function() {
9        AOS.init({
10            duration: 1200,
11        });
12
13    }, 500);
14
15    
16    /*
17    * Same Height
18    */
19    setTimeout(function() {
20        jQuery('.matchHeight').matchHeight();
21        jQuery('.hero-slide-title-wrap').matchHeight();
22        jQuery('.blog-title').matchHeight();
23        jQuery('.blog-content').matchHeight();
24        jQuery('.review-content').matchHeight();
25        jQuery('.featured-desc').matchHeight();
26        jQuery('.featured-title').matchHeight();
27        jQuery('.choose-title').matchHeight();
28        jQuery('.details-title').matchHeight();
29        jQuery('.hero-slide-logo').matchHeight();
30    }, 1000);
31    
32
33    /*
34    * Animate Hero Slider
35    */
36    setTimeout(function() {
37        jQuery('.hero-slide-sub-title.animated').addClass('activate fadeInUp');
38        jQuery('.hero-slide-title.animated').addClass('activate fadeInUp');
39        jQuery('.hero-slide-desc.animated').addClass('activate fadeInUp');
40        jQuery('.hero-slide-btn.animated').addClass('activate fadeInDown');
41
42        jQuery('.hero-slider-wrap').on('afterChange', function(event, slick, currentSlide) {
43            jQuery('.hero-slide-sub-title.animated').removeClass('off');
44            jQuery('.hero-slide-title.animated').removeClass('off');
45            jQuery('.hero-slide-desc.animated').removeClass('off');
46            jQuery('.hero-slide-btn.animated').removeClass('off');
47            jQuery('.hero-slide-sub-title.animated').addClass('activate fadeInUp');
48            jQuery('.hero-slide-title.animated').addClass('activate fadeInUp');
49            jQuery('.hero-slide-desc.animated').addClass('activate fadeInUp');
50            jQuery('.hero-slide-btn.animated').addClass('activate fadeInDown');
51        });   
52        jQuery('.hero-slider-wrap').on('beforeChange', function(event, slick, currentSlide) {
53            jQuery('.hero-slide-sub-title.animated').removeClass('activate fadeInUp');
54            jQuery('.hero-slide-title.animated').removeClass('activate fadeInUp');
55            jQuery('.hero-slide-desc.animated').removeClass('activate fadeInUp');
56            jQuery('.hero-slide-btn.animated').removeClass('activate fadeInDown');
57            jQuery('.hero-slide-sub-title.animated').addClass('off');
58            jQuery('.hero-slide-desc.animated').addClass('off');
59            jQuery('.hero-slide-title.animated').addClass('off');
60            jQuery('.hero-slide-btn.animated').addClass('off');
61        });
62     }, 100);
63
64    
65    
66    /*
67    * Reviews Slider
68    */
69    jQuery('.section-reviews .review-items').slick({
70        dots: false,
71        infinite: true,
72        speed: 500,
73        fade: false,
74        autoplay: false,
75        autoplaySpeed: 5000,
76        slidesToShow: 1,
77        slidesToScroll: 1,
78        adaptiveHeight: false,
79        prevArrow: '.review-slide-control .left',
80        nextArrow: '.review-slide-control .right',
81        arrows : true,
82        responsive: [
83            {
84              breakpoint: 1023,
85              settings: {
86                slidesToShow: 1,
87              }
88            }
89        ]
90    });
91
92    /*
93    * Reinitialize Lazyload
94    */
95    jQuery('.section-reviews').on('afterChange', function(event, slick, currentSlide){
96        if(jQuery(".section-reviews .review-items").hasClass("slick-active")){
97           lazyload();
98           jQuery('.section-reviews .review-item-wrap').matchHeight();
99           jQuery('.section-reviews .review-content').matchHeight();
100        }else{
101           lazyload();
102           jQuery('.section-reviews .review-item-wrap').matchHeight();
103           jQuery('.section-reviews .review-content').matchHeight();
104        }
105    });
106
107    /*
108    * Badges Slider
109    */
110    jQuery('.row-badge').slick({
111        dots: false,
112        infinite: true,
113        speed: 500,
114        fade: false,
115        autoplay: true,
116        autoplaySpeed: 3000,
117        slidesToShow: 6,
118        slidesToScroll: 1,
119        prevArrow: '.badge-slide-control .left',
120        nextArrow: '.badge-slide-control .right',
121        responsive: [
122            {
123              breakpoint: 1200,
124              settings: {
125                slidesToShow: 4,
126              }
127            },
128            {
129              breakpoint: 1023,
130              settings: {
131                slidesToShow: 3, 
132              }
133            },
134            {
135              breakpoint: 480,
136              settings: {
137                slidesToShow: 1,
138              }
139            }
140        ]
141    });
142
143    /*
144    * Reinitialize Lazyload
145    */
146    jQuery('.row-badge').on('afterChange', function(event, slick, currentSlide){
147        if(jQuery(".row-badge .badge-item").hasClass("slick-active")){
148           lazyload();
149        }else{
150           lazyload();
151        }
152    });
153
154
155    /*
156    * Service Gallery Section Slider
157    */
158    jQuery('.gallery-section .slmp-grid-display-image').slick({
159        dots: false,
160        infinite: true,
161        speed: 500,
162        fade: false,
163        autoplay: true,
164        autoplaySpeed: 3000,
165        slidesToShow: 4,
166        slidesToScroll: 1,
167        prevArrow: '.gal-slide-control .left',
168        nextArrow: '.gal-slide-control .right',
169        responsive: [
170            {
171              breakpoint: 1200,
172              settings: {
173                slidesToShow: 4,
174              }
175            },
176            {
177              breakpoint: 1024,
178              settings:"unslick",
179            }
180        ]
181    });
182
183    /*
184    * Reinitialize Lazyload
185    */
186    jQuery('.gallery-section .slmp-grid-display-image').on('afterChange', function(event, slick, currentSlide){
187        if(jQuery(".gallery-section .slmp-image-item").hasClass("slick-active")){
188           lazyload();
189        }else{
190           lazyload();
191        }
192    });
193
194    
195    /*
196    * Page Video Slider
197    */
198    jQuery('.slide-video-listing').slick({
199        dots: false,
200        infinite: true,
201        speed: 500,
202        fade: false,
203        autoplay: false,
204        autoplaySpeed: 5000,
205        slidesToShow: 1,
206        slidesToScroll: 1,
207        adaptiveHeight: true,
208        prevArrow: '.video-slide-control .left',
209        nextArrow: '.video-slide-control .right',
210        responsive: [
211            {
212              breakpoint: 768,
213              settings: {
214                slidesToShow: 1,
215              }
216            }
217        ]
218    });
219
220    
221    /*
222    * Back To Top
223    */
224    function back_to_top() {
225        var scrollAmount = 100;
226        if ( jQuery(this).scrollTop() > scrollAmount ) {
227            jQuery('.move-to-top').fadeIn();
228        } else {
229            jQuery('.move-to-top').fadeOut();
230        }
231    }
232    back_to_top();
233
234    
235    /*
236    * Window Scroll
237    */
238    function header_scrolled() {
239
240        if ( jQuery(this).scrollTop() > 50 )  {
241            jQuery('body').addClass('window_scrolled');
242        } else {
243            jQuery('body').removeClass('window_scrolled');
244        }
245    }
246    header_scrolled();
247    
248
249    /*
250    * Run in Window Scroll
251    */
252    jQuery(window).scroll(function() {
253        back_to_top();
254        header_scrolled();
255    });
256
257
258    /*
259    * Run in Window resize
260    */
261    jQuery(window).resize(function() {
262        back_to_top();
263        header_scrolled();
264    });
265
266
267    /*
268    * Run in Window Load
269    */
270    jQuery(window).load(function() {
271        back_to_top();
272        header_scrolled();
273    });
274    
275
276    /*
277    * Click Show Mobile Menu
278    */
279    setTimeout(function() {
280         jQuery('button.menu-toggle').click(function() {
281            jQuery('.nav-primary').toggleClass('show');
282        });
283    }, 100);
284
285
286    /*
287    * Click Show Mobile Dots Content
288    */
289    jQuery('.mob-dot-toggle').click(function() {
290        jQuery('.mobile-dots-items').slideToggle();
291    });
292
293
294    /*
295    * Click event to scroll to Top
296    */
297    jQuery('.move-to-top').click(function(){
298        jQuery('html, body').animate({scrollTop : 0},800);
299        return false;
300    });
301
302
303    /*
304    * Home Button Content Click
305    */
306    jQuery('a.load-more-btn').click(function() {
307        jQuery(this).toggleClass('more');
308        jQuery('.load-more-content').slideToggle();
309        if (jQuery(this).hasClass('more')) {
310            jQuery(this).html('Read Less');
311        } else {
312            jQuery(this).html('Read More');
313        }
314    });
315    
316
317    /*
318    * Close Popup
319    */
320    jQuery('.form-fields a.close').click(function(){
321        jQuery('.popup-form').css('visibility', 'hidden');
322        jQuery('.form-fields').removeClass('slide-form');
323    });
324
325
326    /*
327    * Open Popup
328    */
329    
330    jQuery('.header-popup').click(function(){
331        jQuery('.popup-form').css('visibility', 'visible');
332        jQuery('.form-fields').addClass('slide-form');
333    });
334
335    
336    /*
337    *   Form Select
338    */
339    jQuery('.form-field-select select option:first-child').removeAttr('value');
340
341
342    /*
343    * Page Accordion Block
344    */
345    jQuery('.page-accordion').each(function() {
346        var ths     = jQuery(this);
347        var list    = jQuery(ths).find('.accordion-item');
348
349        jQuery(list).each(function() {
350            var clk = jQuery(this).find('.accordion-title');
351
352            jQuery(clk).click(function() {
353                
354                if ( jQuery(this).hasClass("active") ) {
355                    jQuery('.accordion-title').removeClass('active');
356                    jQuery(clk).parent().find('.accordion-content').slideToggle();
357                } else {
358                    jQuery('.accordion-title').removeClass('active');
359                    jQuery(this).addClass('active');
360                    jQuery(ths).find('.accordion-content').hide('slow');
361                    jQuery(clk).parent().find('.accordion-content').slideToggle();
362                }
363            })
364        })
365    });
366
367
368
369    
370});

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.