PageSourceSearch

https://wpvender.com/wp-content/plugins/quiety-core/elementor/asse…?ver=99cc5ec14bc3d4b5521589089a934ead

js wpvender.com collected 2026-10-07 00:31:20 UTC 18,109 bytes, 501 lines download raw bytes

1;( function( $, window ) {
2    'use strict';
3    $(window).on('elementor/frontend/init', function (){
4
5        function dtSectionParallax( $scope ){
6            $scope.dtSectionParallaxInit();
7            $scope.dtSectionShapeDividerInit();
8            $scope.quietySliderInit();
9            $scope.quietyTestimonials_6();
10            $scope.quietyTestimonials_7();
11            $scope.quietyTestimonials_8();
12            $scope.quietyTestimonials_9();
13        }
14
15        window.elementorFrontend.hooks.addAction( 'frontend/element_ready/section', dtSectionParallax);
16
17    });
18
19    // Add dt Parallax Section
20    $.fn.dtSectionParallaxInit = function( options ){
21        var defaults = {};
22        
23        return this.each(function( ) {
24
25            var self = $(this),
26            dtParallax = {
27                editorMode: window.elementorFrontend.isEditMode(),
28                itemId: $(this).data('id'),
29                options: false,
30                globalVars: 'add_background_animation',
31                backEndVars: null,
32                items: [],
33            };
34
35            var init = function() {
36                setParallaxItem();
37            },
38            setParallaxItem = function(){
39                var settings;
40
41                var checkEnabledParallax = parallaxEffectEnabled();
42
43                if(!checkEnabledParallax){
44                    return;
45                }
46
47                if ( ! dtParallax.editorMode ) {
48                    settings = buildFrontParallax();
49                } else {
50                    settings = buildBackendParallax();
51                }
52
53                if ( ! settings ) {
54                    return;
55                }
56
57                build( settings );
58                hideMobile();
59
60            },
61            parallaxEffectEnabled = function(){
62                var settings = {};
63
64                if ( ! dtParallax.editorMode ) {
65                    settings = tt_parallax_settings[0][dtParallax.itemId];
66                    
67                    if(!settings){
68                        return;
69                    }
70                    
71                    if(!settings.hasOwnProperty(dtParallax.globalVars) || !sett
71ings[dtParallax.globalVars]){
72                        return;
73                    }
74                }else{      
75                    if(!window.elementor.elements){
76                        return;
77                    }
78
79                    if(!window.elementor.elements.models){
80                        return;
81                    }
82 
83                    window.elementor.elements.models.forEach(function( value ){
84                        if ( dtParallax.itemId == value.id ) {
85                            dtParallax.backEndVars = value.attributes.settings.attributes;
86                        }
87                    });
88
89                    if(!dtParallax.backEndVars){
90                        return;
91                    }
92
93                    if(!dtParallax.backEndVars.hasOwnProperty(dtParallax.globalVars) || !dtParallax.backEndVars[dtParallax.globalVars]){
94                        return;
95                    } 
96
97                    settings = dtParallax.backEndVars;
98                }
99
100                return settings;
101            },
102            buildFrontParallax = function() {
103                var settings = tt_parallax_settings[0][dtParallax.itemId];
104                settings = settings['items_parallax']; 
105                return settings;
106            },
107            buildBackendParallax = function() {
108
109                if(!window.elementor.elements.models){
110                    return;
111                }
112
113                var arr = [];
114
115                if ( ! dtParallax.backEndVars.hasOwnProperty( 'items_parallax' ) ) {
116                    return false;
117                }
118
119                dtParallax.backEndVars[ 'items_parallax' ].models.forEach(function( value ){
120                    arr.push( value.attributes );
121                });
122
123                return arr;
124            },
125            appendElement = function( settings ) {
126                var node_str = '';
127
128                if(settings.image_bg.url){
129                    node_str  = '<div data-item-id="' + settings._id + '" class="extended-parallax elementor-repeater-item-' + settings._id + '">'; 
130                    node_str += '<img  src="' + settings.image_bg.url + '"/>';
131                    node_str += '</div>';                    
132                }
133
134                if( !$(self).find( '.elementor-repeater-item-'+settings._id ).length > 0 ){
135                    $(self).append(node_str);                  
136                }
137
138                dtParallax.items.push(settings);
139    
140                var item = jQuery(self).find('.extended-parallax');
141                if (item.length !== 0 ) {
142                    item.each( function() {
143                        if(settings._id == jQuery(this).data('itemId')){
144                            if(settings.image_effect == 'mouse'){
145                                if(!jQuery(this).closest('.elementor-section').hasClass('tt-parallax-mouse')){
146                                    jQuery(this).closest('.elementor-section').addClass('tt-parallax-mouse');
147                                }
148                                
149                                jQuery(this).wrapInner('<div class="tt-parallax-layer layer" data-depth="' + settings.parallax_factor + '"></div>');
150                            }else if( settings.image_effect == 'scroll' ){
151                                if( dtParallax.editorMode ){
152                                    jQuery(this).paroller({  
153                                        factor: settings.parallax_factor,       
154                                        type: 'foreground',     // background, foreground  
155                                        direction: settings.parallax_dir, // vertical, horizontal  
156                                            
157                                    });  
158                                    jQuery(this).css({'transform' : 'unset'});
159                                }else{
160                                    jQuery(this).paroller({  
161                                        factor: settings.parallax_factor,         
162                                        type: 'foreground',     // background, foreground  
163                                        direction: settings.parallax_dir, // vertical, horizontal  
164                                        
165                                    });  
166                                }                                
167                            }else if( settings.image_effect == 'css_animation' ){
168                                var self = $(this);
169                                
170                                if(self.is_visible()){
171                                     self.addClass( settings.animation_name );
172                                }
173                                jQuery(window).on('resize scroll', function() {
174                                    if(self.is_visible()){
175                                      self.addClass( settings.animation_name );
176                                    }
177                                });
178                            }
179                        }
180                    });
181
182                    if(settings.image_effect == 'mouse'){
183                        jQuery('.tt-parallax-mouse').each(function(){
184                            var scene = jQuery(this).get(0);
185                            var parallaxInstance = new Parallax(scene, { hoverOnly: true, selector: '.tt-parallax-layer', pointerEvents: true });
186                        });                          
187                    }
188                }
189            },
190            hideMobile = function(){
191                if(dtParallax.items){
192                    $.each( dtParallax.items, function( index, value ) {
193                        if(value.hide_on_mobile){
194                            if (jQuery(window).width() <= value.hide_mobile_resolution) {
195                                jQuery('.extended-parallax[data-item-id="'+ value._id +'"]').css({ 'opacity' : '0', 'visibility' : 'hidden' });
196                            }else{
197                                jQuery('.extended-parallax[data-item-id="'+ value._id +'"]').css({ 'opacity' : '1',  'visibility' : 'visible' });
198                            }                            
199                        }
200                    });  
201                }
202            },
203            build = function( settings ) {
204                $.each( settings, function( index, value ) {
205                    appendElement(value);
206                });
207
208
209            };
210
211            /*Init*/
212            init();
213
214            jQuery( window ).resize(
215                function() {
216                    hideMobile();
217                }
218            );
219        });   
220    };
221
222    // Add dt Shape Divider
223    $.fn.dtSectionShapeDividerInit = function( options ){
224        var defaults = {};
225        
226        return this.each(function( ) {
227
228            var self = $(this),
229            dtShapeDivider = {
230                editorMode: window.elementorFrontend.isEditMode(),
231                itemId: $(this).data('id'),
232                options: false,
233                globalVars: 'add_shape_divider',
234                backEndVars: [],
235                items: [],
236            };
237
238            var init = function() {
239                setShapeDividerItem();
240            },
241            setShapeDividerItem = function(){
242                var settings;
243
244                var checkEnabledParallax = ShapeDividerEnabled();
245
246                if(!checkEnabledParallax){
247                    return;
248                }
249
250                if ( ! dtShapeDivider.editorMode ) {
251                    settings = buildFrontShapeDivider();
252                } else {
253                    settings = buildBackendShapeDivider();
254                }
255
256                if ( ! settings ) {
257                    return;
258                }
259
260                build( settings );
261
262            },
263            ShapeDividerEnabled = function(){
264                var settings = {};
265
266                if ( ! dtShapeDivider.editorMode ) {
267                    settings = tt_parallax_settings[0][dtShapeDivider.itemId];
268                    
269                    if(!settings){
270                        return;
271                    }
272                    
273                }else{      
274                    if(!window.elementor.elements){
275                        return;
276                    }
277
278                    if(!window.elementor.elements.models){
279                        return;
280                    }
281
282                    window.elementor.elements.models.forEach(function( value ){
283                        if ( dtShapeDivider.itemId == value.id ) {
284                            dtShapeDivider.backEndVars[dtShapeDivider.itemId] = value.attributes.settings.attributes;
285                            settings = value.attributes.settings.attributes;
286                        }
287                    } );
288                }
289
290                return settings;
291            },
292            buildFrontShapeDivider = function() {
293                var settings = tt_parallax_settings[0];
294                return settings;
295            },
296            
297            buildBackendShapeDivider = function() {
298
299                if(!window.elementor.elements.models){
300                    return;
301                }
302
303                var arr = [];
304
305                arr = dtShapeDivider.backEndVars;
306
307                return arr;
308            },
309            
310            getSvgURL = function(fileName) {
311                var svgURL = tt_parallax_settings.svgURL + fileName + '.svg';
312
313                return svgURL;
314            },
315
316            appendElement = function(settings ) {
317
318                var $item = settings[$(self).data('id')];
319
320                if(!$item){
321                    return;
322                }
323
324                var node_str = '',
325                svgURL = '';
326                
327                if( $item.tt_shape_divider_top !== '' ){
328                    
329                    svgURL = getSvgURL( $item.tt_shape_divider_top );
330
331
332                    
333                    node_str  = '<div class="tt-divider tt-elementor-shape tt-elementor-shape-top"></div>';
334                    $(self).prepend(node_str);
335
336                    console.log(svgURL)
337                    
338                    jQuery.get(svgURL, function (data) {
339                        $(self).find('.tt-divider.tt-elementor-shape-top').empty().append(data.childNodes[0]);
340                    });                 
341                }
342
343
344
345                if( $item.tt_shape_divider_bottom  !== ''  ){
346
347                    svgURL = getSvgURL( $item.tt_shape_divider_bottom );
348
349                    node_str  = '<div class="tt-divider tt-elementor-shape tt-elementor-shape-bottom"></div>';
350                    $(self).prepend(node_str); 
351
352                    jQuery.get(svgURL, function (data) {
353                        $(self).find('.tt-divider.tt-elementor-shape-bottom').empty().append(data.childNodes[0]);
354                    });  
355                }                        
356            },
357            
358            build = function( settings ) {
359                appendElement(settings);
360            };
361
362            /*Init*/
363            init();
364
365        });   
366    };
367
368    
369    // Swiper Slider JS
370    $.fn.quietySliderInit = function (options) {
371        var swiper_container = $(".hero-slider");
372        if (swiper_container.length) {
373            swiper_container.each(function () {
374                var t = $(this),
375                    i = ($(this).attr("id"), $(this).data("perpage") || 1),
376                    a = $(this).data("loop"),
377                    e = $(this).data("speed") || 1000,
378                    o = $(this).data("space") || 0,
379                    l = $(this).data("effect"),
380                    c = $(this).data("center"),
381                    pl = $(this).data("autoplay"),
382                    nex = $(this).data("next"),
383                    pre = $(this).data("prev"),
384                    pag = $(this).data("pagination"),
385                    pagtype = $(this).data("paginationtype"),
386                    d = $(this).data("direction") || "horizontal",
387                    r = $(this).data("breakpoints");
388                new Swiper(t, {
389                    slidesPerView: i,
390                    direction: d,
391                    spaceBetween: o,
392                    loop: a,
393                    speed: e,
394                    effect: l,
395                    breakpoints: r,
396                    centeredSlides: c,
397                    autoplay: pl,
398                    pagination: {
399                        el: pag,
400                        type: pagtype,
401                        clickable: !0
402                    },
403                    navigation: {
404                        nextEl: nex,
405                        prevEl: pre
406                    }
407                })
408            })
409            swiper_container.hover(function () {
410                (this).swiper.autoplay.stop();
411            }, function () {
412                (this).swiper.autoplay.start();
413            });
414
415        }
416    }
417
418
419    $.fn.quietyTestimonials_6 = function (options) {
420        var swiper = new Swiper(".payment-testimonial-slider", {
421            slidesPerView: 2,
422            spaceBetween: 24,
423            speed: 1000,
424            autoplay: {
425                delay: 3000
426            },
427            slidesPerGroup: 1,
428            loop: true,
429            breakpoints: {
430                320: {
431                    slidesPerView: 1
432                },
433                768: {
434                    slidesPerView: 2
435                },
436                991: {
437                    slidesPerView: 3
438                }
439            }
440        });
441    }
442
443    $.fn.quietyTestimonials_7 = function () {
444        var swiper = new Swiper(".digi-testimonial-wrapper", {
445            slidesPerView: 1,
446            loop: true,
447            speed: 800,
448            navigation: {
449                nextEl: ".digi-nav-control .swiper-button-next",
450                prevEl: ".digi-nav-control .swiper-button-prev"
451            }
452        }); //digital marketing testimonial
453    }
454
455    $.fn.quietyTestimonials_8 = function () {
456        var swiper = new Swiper(".ins-feedback-slider", {
457            slidesPerView: 1,
458            loop: true,
459            speed: 800,
460            autoplay: true,
461            navigation: {
462                nextEl: '.swiper-btn-next',
463                prevEl: '.swiper-btn-prev'
464            },
465            breakpoints: {
466                0: {
467                    spaceBetween: 40
468                },
469                1200: {
470                    spaceBetween: 90
471                }
472            }
473        }); //insurance brand slider
474    }
475
476    $.fn.quietyTestimonials_9 = function () {
477        var mkCarousel = $("#mkCarousel");
478        $("#mkCarouselControl button").each(function () {
479            $(this).on("click", function () {
480                $(this).parent().find('button.active').removeClass("active");
481                $(this).addClass("active");
482            });
483        });
484        mkCarousel.on("slide.bs.carousel", function () {
485            var findNumber = mkCarousel.find(".active").index();
486            findNumber = findNumber + 2;
487            var totalSlides = $('#mkCarousel .carousel-item').length;
488
489            if (findNumber > totalSlides) {
490                findNumber = 1;
491            }
492
493            $('#mkCarouselControl').find('button.active').removeClass("active");
494            $('#mkCarouselControl button:nth-child(' + findNumber + ')').addClass("active");
495        });
496    }
497
498
499
500}( jQuery, window ) );
501

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.