PageSourceSearch

https://www.asobancaria.com/wp-content/themes/consultio/assets/js/main.js?ver=3.2.4

js asobancaria.com collected 2026-09-24 10:35:44 UTC 35,509 bytes, 827 lines download raw bytes

1;(function ($) {
2
3    "use strict";
4
5    /* ===================
6     Page reload
7     ===================== */
8    var scroll_top;
9    var window_height;
10    var window_width;
11    var scroll_status = '';
12    var lastScrollTop = 0;
13    $(window).on('load', function () {
14        $(".ct-loader").fadeOut("slow");
15        window_width = $(window).width();
16        consultio_col_offset();
17        consultio_header_sticky();
18        consultio_scroll_to_top();
19        consultio_quantity_icon();
20        consultio_wow_init();
21        consultio_mouse_move();
22        consultio_header_offset();
23        consultio_footer_fixed();
24        consultio_portfolio_ex();
25        //consultio_header_mobile();
26    });
27    $(window).on('resize', function () {
28        window_width = $(window).width();
29        consultio_col_offset();
30        consultio_header_offset();
31        consultio_footer_fixed();
32        consultio_portfolio_ex();
33        //consultio_header_mobile();
34    });
35
36    $(window).on('scroll', function () {
37        scroll_top = $(window).scrollTop();
38        window_height = $(window).height();
39        window_width = $(window).width();
40        if (scroll_top < lastScrollTop) {
41            scroll_status = 'up';
42        } else {
43            scroll_status = 'down';
44        }
45        lastScrollTop = scroll_top;
46        consultio_header_sticky();
47        consultio_scroll_to_top();
48    });
49
50    $(document).on('click', '.h-btn-search, .ct-search-popup', function () {
51        $('.ct-modal-search').addClass('open');
52        $('body').addClass('ov-hidden');
53        setTimeout(function(){
54            $('.ct-modal-search .search-field').focus();
55        },1000);
56    });
57
58    $(document).ready(function () {
59
60        /* =================
61         Menu Dropdown
62         =================== */
63        var $menu = $('.ct-main-navigation');
64        $menu.find('.ct-main-menu li').each(function () {
65            var $submenu = $(this).find('> ul.sub-menu, > .children');
66            if ($submenu.length == 1) {
67                $(this).hover(function () {
68                    if ($submenu.offset().left + $submenu.width() > $(window).width()) {
69                        $submenu.addClass('back');
70                    } else if ($submenu.offset().left < 0) {
71                        $submenu.addClass('back');
72                    }
73                }, function () {
74                    $submenu.removeClass('back');
75                });
76            }
77        });
78        
79        $('.show-demos').on("click", function (e) {
80            e.preventDefault();
81            $( this ).parents('body').find('.ct-demo-bar').toggleClass('active');
82        });
83
84        /* Menu Click */
85        $(".ct-main-menu.sub-click > li > a").on('click', function () {
86            $(this).parent().toggleClass('opened');
87        });
88
89        $('body').on('click', '.ct-main-menu.sub-click > li > a', function () {
90            return false;
91        });
92
93        /* Main Header */
94        $('.ct-header-fixed-transparent').parents('.ct-header-elementor-main').addClass('ct-header-fixed-transparent-wrap');
95
96        /* Menu Popup */
97        $('.elementor-popup-menu li.menu-item-has-children > a').append('<span class="pxl-arrow-toggle">+</span>');
98        $('.elementor-popup-menu li.menu-item-has-children > a').on("click", function (e) {
99            e.preventDefault();
100            if( $(this).hasClass('active')){
101                $(this).next().toggleClass('active').slideToggle(); 
102            }else{
103                $(this).closest('ul').find('.sub-menu.active').toggleClass('active').slideToggle();
104                $(this).closest('ul').find('a.active').toggleClass('active');
105                $(this).find('.pxl-menu-toggle.active').toggleClass('active');
106                $(this).toggleClass('active');
107                $(this).next().toggleClass('active').slideToggle();
108            }   
109        });
110
111        /* =================
112         Menu Mobile
113         =================== */
114        $('.ct-main-navigation li.menu-item-has-children').append('<span class="ct-menu-toggle far fac-angle-right"></span>');
115        $('.ct-menu-toggle').on('click', function () {
116            $(this).toggleClass('toggle-open');
117            $(this).parent().find('> .sub-menu, > .children').toggleClass('submenu-open');
118            $(this).parent().find('> .sub-menu, > .children').slideToggle();
119        });
120
121        $(".ct-main-menu li a.is-one-page").on('click', function () {
122           $(this).parents('.ct-header-navigation').removeClass('navigation-open');
123           $(this).parents('.ct-header-main').find('.btn-nav-mobile').removeClass('opened');
124        });
125
126        /*if ($(window).width() < 1199) {
127            $('.ct-main-menu li.menu-item-has-children > a').on("click", function (e) {
128                e.preventDefault();
129                $(this).parent().find('> .sub-menu, > .children').toggleClass('submenu-open');
130                $(this).parent().find('> .sub-menu, > .children').slideToggle();
131                $(this).parent().find('> .ct-menu-toggle').toggleClass('toggle-open');
132            });
133        }*/
134
135        /* =================
136         Menu Popup
137         =================== */
138        $('.ct-main-menu-popup li.menu-item-has-children > a').after('<span class="ct-menu-toggle"></span>');
139        $('.ct-main-menu-popup .ct-menu-toggle').on('click', function () {
140            $(this).toggleClass('toggle-open');
141            $(this).parent().find('> .sub-menu, > .children').toggleClass('submenu-open');
142            $(this).parent().find('> .sub-menu, > .children').slideToggle();
143        });
144        $('.ct-menu-popup').on('click', function () {
145            $('body').addClass('ov-hidden');
146            $(this).parents('body').find('.ct-header-popup-wrap').toggleClass('open');
147        });
148        $('.ct-menu-close, .ct-header-popup-menu a.is-one-page').on('click', function () {
149            $('body').removeClass('ov-hidden');
150            $(this).parents('body').find('.ct-header-popup-wrap').toggleClass('open');
151        });
152        
153        $("#ct-menu-mobile .open-menu").on('click', function () {
154            $(this).toggleClass('opened');
155            $('.ct-header-navigation').toggleClass('navigation-open');
156        });
157
158        $(".ct-menu-close").on('click', function () {
159            $(this).parents('.header-navigation').removeClass('navigation-open');
160            $('.ct-menu-overlay').removeClass('active');
161            $('#ct-menu-mobile .open-menu').removeClass('opened');
162            $('body').removeClass('ov-hidden');
163        });
164
165        $(".ct-menu-overlay").on('click', function () {
166            $(this).parents('#header-main').find('.header-navigation').removeClass('navigation-open');
167            $(this).removeClass('active');
168            $('#ct-menu-mobile .open-menu').removeClass('opened');
169            $('.header-navigation').removeClass('navigation-open');
170            $('body').removeClass('ov-hidden');
171        });
172
173        $('.ct-header-menu-popup').on('click', function () {
174            $(this).parents('body').find('.ct-header-elementor-popup').toggleClass('open');
175        });
176
177        /* ===================
178         Search Toggle
179         ===================== */
180        $('.h-btn-form').click(function (e) {
181            e.preventDefault();
182            $('.ct-modal-contact-form').removeClass('remove').toggleClass('open');
183        });
184        $('.ct-close').click(function (e) {
185            e.preventDefault();
186            $(this).parents('.ct-header-elementor-popup').removeClass('open');
187            $(this).parents('.ct-widget-cart-wrap').removeClass('open');
188            $(this).parents('.ct-modal').addClass('remove').removeClass('open');
189            $(this).parents('#page').find('.site-overlay').removeClass('open');
190            $(this).parents('body').removeClass('ov-hidden');
191        });
192
193        $('.ct-hidden-sidebar-overlay, .ct-widget-cart-overlay').click(function (e) {
194            e.preventDefault();
195            $(this).parent().toggleClass('open');
196            $(this).parents('body').removeClass('ov-hidden');
197        });
198
199        /* Video 16:9 */
200        $('.entry-video iframe').each(function () {
201            var v_width = $(this).width();
202
203            v_width = v_width / (16 / 9);
204            $(this).attr('height', v_width + 35);
205        });
206
207        /* Video Light Box */
208        $('.ct-video-button, .btn-video, .slider-video').magnificPopup({
209            type: 'iframe',
210            mainClass: 'mfp-fade',
211            removalDelay: 160,
212            preloader: false,
213            fixedContentPos: false
214        });
215
216        $('.ct-service-grid1').magnificPopup({
217            delegate: 'a.z-view', 
218            type: 'inline',
219            gallery: {
220             enabled: false
221            },
222            mainClass: 'mfp-fade mfp-menu',
223        });
224        
225        /* ====================
226         Scroll To Top
227         ====================== */
228        $('.scroll-top, .scroll-top i, .ct-wg-backtotop-inner').click(function () {
229            $('html, body').animate({scrollTop: 0}, 800);
230            return false;
231        });
232        $('.ct-wg-backtotop-inner').parents('body').find('.scroll-top').hide();
233
234        /* =================
235        Add Class
236        =================== */
237        $('.wpcf7-select').parent().addClass('wpcf7-menu');
238        
239
240        /* =================
241         The clicked item should be in center in owl carousel
242         =================== */
243        var $owl_item = $('.owl-active-click');
244        $owl_item.children().each(function (index) {
245            $(this).attr('data-position', index);
246        });
247        $(document).on('click', '.owl-active-click .owl-item > div', function () {
248            $owl_item.trigger('to.owl.carousel', $(this).data('position'));
249        });
250
251        /* Select */
252        $('select:not([id*="ui-id-"]):not(#billing_country):not(#shipping_country):not(#billing_state):not(.gt_selector):not(.wpforms-form)').each(function () {
253            $(this).niceSelect();
254        });
255
256        setTimeout(function(){
257            $('.nice-select').on('click', function () {
258                $(this).find('.list').toggleClass('open');
259            });
260        }, 300);
261
262        /* Newsletter */
263        $('.widget_newsletterwidget, form.newsletter, form.tnp-subscription').each(function () {
264            var email_text = $(this).find('.tnp-field-email label').text();
265            $(this).find('.tnp-field-email label').remove();
266            $(this).find(".tnp-email").each(function (ev) {
267                if (!$(this).val()) {
268                    $(this).attr("placeholder", email_text);
269                }
270            });
271            var firstname_text = $(this).find('.tnp-field-firstname label').text();
272            $(this).find('.tnp-field-firstname label').remove();
273            $(this).find(".tnp-firstname").each(function (ev) {
274                if (!$(this).val()) {
275                    $(this).attr("placeholder", firstname_text);
276                }
277            });
278            var lastname_text = $(this).find('.tnp-field-lastname label').text();
279            $(this).find('.tnp-field-lastname label').remove();
280            $(this).find(".tnp-lastname").each(function (ev) {
281                if (!$(this).val()) {
282                    $(this).attr("placeholder", lastname_text);
283                }
284            });
285        });
286
287        /* bbPress */
288        $('.bbp-search-form').each(function () {
289            var search_text = 'Search...';
290            $(this).find("#bbp_search").each(function (ev) {
291                if (!$(this).val()) {
292                    $(this).attr("placeholder", search_text);
293                }
294            });
295        });
296
297        /* Search */
298        $('.ct-modal-close').on('click', function () {
299            $(this).parent().removeClass('open');
300            $(this).parents('body').removeClass('ov-hidden');
301        });
302        $(document).on('click', function (e) {
303            if (e.target.className == 'ct-modal ct-modal-search open')
304                $('.ct-modal-search').removeClass('open');
305            if (e.target.className == 'ct-hidden-sidebar open')
306                $('.ct-hidden-sidebar').removeClass('open');
307        });
308
309        /* Hidden Sidebar */
310        $(".h-btn-sidebar").on('click', function (e) {
311            e.preventDefault();
312            $('.ct-hidden-sidebar-wrap').toggleClass('open');
313            $(this).parents('body').addClass('ov-hidden');
314        });
315
316        $(".ct-hidden-close").on('click', function (e) {
317            e.preventDefault();
318            $(this).parents('.ct-hidden-sidebar-wrap').removeClass('open');
319            $(this).parents('body').removeClass('ov-hidden');
320        });
321
322        /* Cart Sidebar */
323        $(".h-btn-cart, .btn-nav-cart, .ct-cart-bar").on('click', function (e) {
324            e.preventDefault();
325            $('.ct-widget-cart-wrap').toggleClass('open');
326            $('.ct-header-navigation').removeClass('navigation-open');
327            $('#ct-menu-mobile .open-menu').removeClass('opened');
328            $(this).parents('body').addClass('ov-hidden');
329        });
330
331        /* Year Copyright */
332        var _year_footer = $(".ct-footer-year"),
333            _year_clone = _year_footer.parents(".site").find('.ct-year');
334        _year_clone.after(_year_footer.clone());
335        _year_footer.remove();
336        _year_clone.remove();
337
338        /* Comment Reply */
339        $('.comment-reply a').append( '<i class="fa fa-angle-right"></i>' );
340
341        /* Widget Menu */
342        $('.ct-navigation-menu1.default a').append( '<i class="fac fac-angle-right"></i>' );
343
344        /* Nav Slider */
345        setTimeout(function () {
346            $('.revslider-initialised').each(function () {
347                $(this).find('.ct-slider-nav .slider-nav-right').on('click', function () {
348                    $(this).parents('.revslider-initialised').find('.tp-rightarrow').trigger('click');
349                });
350                $(this).find('.ct-slider-nav .slider-nav-left').on('click', function () {
351                    $(this).parents('.revslider-initialised').find('.tp-leftarrow').trigger('click');
352                });
353            });
354            $('.ct-slider-nav').parents('.revslider-initialised').find('.tparrows').addClass('arrow-hidden');
355        }, 300);
356
357        /* Icon Form */
358        setTimeout(function () {
359            $('.input-filled').each(function () {
360                var icon_input = $(this).find(".input-icon"),
361                    control_wrap = $(this).find('.wpcf7-form-control');
362                control_wrap.before(icon_input.clone());
363                icon_input.remove();
364
365            });
366        }, 200);
367
368        /* Image Pointer */
369        $('.ct-pointer-item').each(function () {
370            $(this).find('.ct-pointer-btn').on('click', function () {
371                $(this).toggleClass('open');
372                $(this).parents('.elementor-widget-wrap').find('.ct-pointer-item .ct-pointer-btn').removeClass('open');
373                $(this).addClass('open');
374            });
375        });
376
377        /* Blog */
378        $( ".ct-blog-grid-layout1 .grid-item-inner, .ct-blog-carousel-layout1 .grid-item-inner" ).hover(
379          function() {
380            $( this ).find('.entry-readmore').slideToggle(300);
381            $( this ).find('.entry-meta').slideToggle(300);
382          }, function() {
383            $( this ).find('.entry-readmore').slideToggle(300);
384            $( this ).find('.entry-meta').slideToggle(300);
385          }
386        );
387
388        /* FancyBox */
389        $( ".ct-fancy-box-layout18" ).hover(
390          function() {
391            $( this ).find('.item--button').slideToggle(300);
392            $( this ).find('.item--description').slideToggle(300);
393          }, function() {
394            $( this ).find('.item--button').slideToggle(300);
395            $( this ).find('.item--description').slideToggle(300);
396          }
397        );
398
399        /* Team */
400        $( ".ct-team-carousel1 .item--inner, .ct-team-carousel2 .item--inner, .ct-team-grid4 .item--inner" ).hover(
401          function() {
402            $( this ).find('.item--social').slideToggle(300);
403          }, function() {
404            $( this ).find('.item--social').slideToggle(300);
405          }
406        );
407
408        $( ".ct-team-carousel6 .item--inner, .ct-team-grid6 .item--inner" ).hover(
409          function() {
410            $( this ).find('.item--meta').slideToggle(200);
411          }, function() {
412            $( this ).find('.item--meta').slideToggle(200);
413          }
414        );
415
416        $(".social-button").on('click', function () {
417            $(this).parent().toggleClass('active');
418        });
419
420        /* Service */
421        $( ".ct-service-grid6 .grid-item-inner" ).hover(
422          function() {
423            $( this ).find('.item-readmore').slideToggle(300);
424          }, function() {
425            $( this ).find('.item-readmore').slideToggle(300);
426          }
427        );
428
429        $( ".ct-service-grid7 .grid-item-inner" ).hover(
430          function() {
431            $( this ).find('.item--desc').slideToggle(300);
432          }, function() {
433            $( this ).find('.item--desc').slideToggle(300);
434          }
435        );
436
437        $( ".ct-service-grid10 .grid-item-inner" ).hover(
438          function() {
439            $( this ).find('.item--readmore').slideToggle(300);
440          }, function() {
441            $( this ).find('.item--readmore').slideToggle(300);
442          }
443        );
444
445        /* Fancy Box Grid */
446        $('.ct-fancy-box-grid1').each(function () {
447            $(this).find('.item--inner').hover(function () {
448                $(this).parents('.elementor-element').find('.item--inner').removeClass('active');
449                $(this).addClass('active');
450            });
451        });
452
453        $('.ct-fancy-box-layout9').each(function () {
454            $(this).hover(function () {
455                $(this).parents('.elementor-row').find('.ct-fancy-box-layout9').removeClass('active');
456                $(this).parents('.elementor-container').find('.ct-fancy-box-layout9').removeClass('active');
457                $(this).addClass('active');
458            });
459        });
460
461        /* Same Height */
462        $('.ct-fancy-box-grid1 .item--inner').matchHeight();
463        $('.ct-feature-layout1').matchHeight();
464        $('.ct-fancy-box-layout4').matchHeight();
465        $('.ct-fancy-box-layout5 .ct-fancy-box-inner').matchHeight();
466        $('.ct-fancy-box-layout1.style4').matchHeight();
467        $('.ct-testimonial-carousel3 .item--description').matchHeight();
468
469        $('.same-height').matchHeight();
470        $('.ct-fancy-box-layout14').matchHeight();
471        $('.ct-service-grid3 .grid-item-holder').matchHeight();
472        $('.ct-service-grid5 .grid-item-inner').matchHeight();
473
474        /* Demo Bar */
475        $(".choose-demo, .ct-demo-bar-close").on('click', function () {
476            $(this).parents('.ct-demo-bar').toggleClass('active');
477        });
478
479        /* Animate Time */
480        $('.animate-time').each(function () {
481            var eltime = 100;
482            var elt_inner = $(this).children().length;
483            var _elt = elt_inner - 1;
484            $(this).find('> .grid-item > .wow').each(function (index, obj) {
485                $(this).css('animation-delay', eltime + 'ms');
486                if (_elt === index) {
487                    eltime = 100;
488                    _elt = _elt + elt_inner;
489                } else {
490                    eltime = eltime + 80;
491                }
492            });
493        });
494
495        /* Overlay particle */
496        setTimeout(function(){
497            $('.elementor-top-section').each(function () {                
498                var _el_bg_animate = $(this).find(".ct-background-animate"),
499                    _row_bg_animate = _el_bg_animate.parents(".elementor-container");
500                _row_bg_animate.before(_el_bg_animate.clone());
501                _el_bg_animate.remove();
502
503                var _el_text = $(this).find(".ct-text"),
504                    _row_text = _el_text.parents(".elementor-container");
505                _row_text.before(_el_text.clone());
506                _el_text.remove();
507            });
508        }, 200);
509
510        $('.h9-section-01 > .elementor-container').after('<div class="h9-section-gradient"></div>');
511        $('.h9-section-02 > .elementor-container').after('<div class="h9-section-overlay"></div>');
512
513        $('.h9-section-one > .elementor-container').after('<div class="h9-section-gradient"></div>');
514
515        /* Team */
516        $('.item--social-btn').on('click', function () {
517            $(this).toggleClass('active');
518            $(this).parent().toggleClass('active');
519        });
520
521        /* Range Slider */
522        $('.wpcf7-form').each(function () {
523            var range = $(this).find('.ct-range-slider');
524            var range_value = $(this).find('.ct-range-slider').attr('data-value');
525            var range_maxvalue = $(this).find('.ct-range-slider').attr('data-maxvalue');
526            var range_currency = $(this).find('.ct-range-slider').attr('data-currency');
527            $(this).find( ".ct-range-slider" ).slider({
528                range: "min",
529                value: range_value,
530                min: 1,
531                max: range_maxvalue,
532                slide: function( event, ui ) {
533                    $(this).parent().find( ".ct-range-result" ).val( range_currency + ui.value );
534                }
535            });
536            $(this).find( ".ct-range-result" ).val( range_currency + $(this).find( ".ct-range-slider" ).slider( "value" ) );
537        });
538
539        /* Slider Revolution */
540        $('.ct-slider-arrow').parents('.elementor-widget-slider_revolution').addClass('hide-arrow');
541
542        /* Cover Boxes */
543        $('body:not(.elementor-editor-active) .ct-cover-boxes1 .ct-cover-item').each(function () {
544            $(this).hover(function () {
545                $(this).parents('.ct-cover-boxes1').find('.ct-cover-item').removeClass('active');
546                $(this).addClass('active');
547            });
548        });
549
550        /* Counter Column */
551        $('.counter-col-line1').append('<span class="counter-line"></span>');
552
553        /* Pricing */
554        $(".ct-pricing-tab-active .ct-pricing-tab-item").on('click', function () {
555            $(this).parent().find('.ct-pricing-tab-item').removeClass('active');
556            $(this).addClass('active');
557        });
558        $(".ct-pricing-tab-active .title-tab-monthly").on('click', function () {
559            $(this).parents('.ct-pricing-multi').find('.ct-pricing-monthly').removeClass('ct-pricing-hide');
560            $(this).parents('.ct-pricing-multi').find('.ct-pricing-year').addClass('ct-pricing-hide');
561        });
562        $(".ct-pricing-tab-active .title-tab-year").on('click', function () {
563            $(this).parents('.ct-pricing-multi').find('.ct-pricing-year').removeClass('ct-pricing-hide');
564            $(this).parents('.ct-pricing-multi').find('.ct-pricing-monthly').addClass('ct-pricing-hide');
565        });
566
567        $('.case-animate-time > span').each(function () {
568            var eltime = 0;
569            var elt_inner = $(this).children().length;
570            var _elt = elt_inner - 1;
571            $(this).find('> .slide-in-container > .wow').each(function (index, obj) {
572                $(this).css('transition-delay', eltime + 'ms');
573                if (_elt === index) {
574                    eltime = 0;
575                    _elt = _elt + elt_inner;
576                } else {
577                    eltime = eltime + 100;
578                }
579            });
580        });
581
582        /* Header Elementor */
583        $('.ct-header-elementor-sticky').parents('body').addClass('header-sticky');
584
585    });
586
587    function consultio_header_offset() {
588        if($('#ct-header-wrap').html() != "") {
589            var space_branding = $('.ct-header-branding').offset().left;
590            var width_branding = $('.ct-header-branding').outerWidth();
591            var offset_branding = space_branding + width_branding;
592            $('.ct-header-layout10 .ct-header-branding-bg').css('width', offset_branding + 'px');
593            $('.site-h10 .ct-header-offset').css('width', offset_branding + 'px');
594            $('.h9-section-overlay').css('left', offset_branding + 'px');
595            
596            $('.h9-section-03 > .elementor-container.elementor-column-gap-no > .elementor-row > .elementor-element:nth-child(1)').css('max-width', offset_branding + 'px');
597            $('.h9-section-03 > .elementor-container.elementor-column-gap-no > .elementor-row > .elementor-element:nth-child(1)').css('min-width', offset_branding + 'px');
598
599            $('.h9-section-03 > .elementor-container.elementor-column-gap-no > .elementor-element:nth-child(1)').css('max-width', offset_branding + 'px');
600            $('.h9-section-03 > .elementor-container.elementor-column-gap-no > .elementor-element:nth-child(1)').css('min-width', offset_branding + 'px');
601
602            $('.h9-section-03 > .elementor-container.elementor-column-gap-no > .elementor-element:nth-child(1)').css('max-width', offset_branding + 'px');
603            $('.h9-section-03 > .elementor-container.elementor-column-gap-no > .elementor-element:nth-child(1)').css('min-width', offset_branding + 'px');
604
605            $('.h9-section-gradient').css('width', offset_branding + 'px');
606        }
607    }
608
609    function consultio_header_sticky() {
610        var offsetTop = $('#ct-header-wrap').outerHeight();
611        var h_header = $('.fixed-height').outerHeight();
612        var offsetTopAnimation = offsetTop + 200;
613        var offsetTopHide = offsetTop + 400;
614        if($('#ct-header-wrap').hasClass('is-sticky')) {
615            if (scroll_top > offsetTopAnimation) {
616                $('#ct-header').addClass('h-fixed');
617            } else {
618                $('#ct-header').removeClass('h-fixed');
619            }
620            if (scroll_status == 'up' && scroll_top > 0) {
621                $('#ct-header').addClass('scroll-up');
622            } else {
623                $('#ct-header').removeClass('scroll-up');
624            }
625            if (scroll_status == 'up' && scroll_top < offsetTopHide) {
626                $('#ct-header').addClass('h-fixed-hide');
627            }
628            if (scroll_status == 'up' && scroll_top < offsetTopAnimation) {
629                $('#ct-header').removeClass('h-fixed-hide');
630            }
631        }
632
633        var h_header_slider = $('.ct-header-slider').outerHeight();
634        if($('#ct-header-wrap').hasClass('is-sticky-offset')) {
635            if (scroll_top > h_header_slider) {
636                $('#ct-header').addClass('h-fixed');
637                $('#ct-header-wrap').addClass('is-sticky-active');
638            } else {
639                $('#ct-header').removeClass('h-fixed'); 
640                $('#ct-header-wrap').removeClass('is-sticky-active');  
641            }
642            if (scroll_top > 200) {
643                $('#ct-header-wrap').removeClass('sub-show-top');
644            }
645            if (scroll_top == 0) {
646                $('#ct-header-wrap').addClass('sub-show-top');
647            }
648        }
649
650        if (window_width > 1200) {
651            $('.fixed-height').css({
652                'height': h_header
653            });
654        }
655
656        /* Header Elementor */
657        var e_offsetTop = $('#ct-header-elementor').outerHeight();
658        if($('#ct-header-elementor').hasClass('is-sticky')) {
659            if (scroll_top > e_offsetTop) {
660                $('.ct-header-elementor-sticky').addClass('h-fixed');
661            } else {
662                $('.ct-header-elementor-sticky').removeClass('h-fixed');   
663            }
664        }
665
666        /* Iamge Scale  */
667        $('.ct-image-single.img-hover-scale').parents('.elementor-widget-ct_image').addClass('pxl-img-hover-scale');
668    }
669
670    /*function consultio_header_mobile() {
671        var h_header = $('.fixed-height').outerHeight();
672        if (window_width < 1199) {
673            $('.fixed-height').css({
674                'height': h_header
675            });
676        }
677    }*/
678
679    /* =================
680     Column Offset
681     =================== */
682    function consultio_col_offset() {
683        setTimeout(function(){
684            var w_vc_row_lg_medium = ($('#content').width() - 1200) / 2;
685            var w_vc_row_lg_full_medium = ($('#content section.elementor-element section.elementor-element').width() - 1200) / 2;
686            if (window_width > 1200) {
687                $('body:not(.rtl) .col-offset-left').parents('.elementor-container').css('padding-left', w_vc_row_lg_medium + 'px');
688                $('body:not(.rtl) .col-offset-right').parents('.elementor-container').css('padding-right', w_vc_row_lg_medium + 'px');
689
690                $('.rtl .col-offset-left').parents('.elementor-container').css('padding-right', w_vc_row_lg_medium + 'px');
691                $('.rtl .col-offset-right').parents('.elementor-container').css('padding-left', w_vc_row_lg_medium + 'px');
692
693                $('body:not(.rtl) .ct-row-full-width .col-offset-left').parents('.elementor-container').css('padding-left', w_vc_row_lg_full_medium + 'px');
694                $('body:not(.rtl) .ct-row-full-width .col-offset-right').parents('.elementor-container').css('padding-right', w_vc_row_lg_full_medium + 'px');
695
696                $('.rtl .ct-row-full-width .col-offset-left').parents('.elementor-container').css('padding-right', w_vc_row_lg_full_medium + 'px');
697                $('.rtl .ct-row-full-width .col-offset-right').parents('.elementor-container').css('padding-left', w_vc_row_lg_full_medium + 'px');
698
699                /* Fixed somes section - demo markerting */
700                $('body:not(.rtl) .h9-section-03 .col-offset-right > .elementor-column-wrap > .elementor-widget-wrap').css('padding-right', w_vc_row_lg_medium + 'px');
701            }
702            /* Custom Settings */
703            if (window_width > 1200) {
704                $('body:not(.rtl) .ct-column-offset-left > .elementor-column-wrap > .elementor-widget-wrap, body:not(.rtl) .ct-column-offset-left > .elementor-widget-wrap').css('padding-left', w_vc_row_lg_medium + 'px');
705                $('body:not(.rtl) .ct-column-offset-right > .elementor-column-wrap > .elementor-widget-wrap, body:not(.rtl) .ct-column-offset-right > .elementor-widget-wrap').css('padding-right', w_vc_row_lg_medium + 'px');
706
707                $('.rtl .ct-column-offset-left > .elementor-column-wrap > .elementor-widget-wrap, .rtl .ct-column-offset-left > .elementor-widget-wrap').css('padding-right', w_vc_row_lg_medium + 'px');
708                $('.rtl .ct-column-offset-right > .elementor-column-wrap > .elementor-widget-wrap, .rtl .ct-column-offset-right > .elementor-widget-wrap').css('padding-left', w_vc_row_lg_medium + 'px');
709            }
710        }, 10 );
711    }
712
713    /* ====================
714     Scroll To Top
715     ====================== */
716    function consultio_scroll_to_top() {
717        if (scroll_top < window_height) {
718            $('.scroll-top').addClass('off').removeClass('on');
719        }
720        if (scroll_top > window_height) {
721            $('.scroll-top').addClass('on').removeClass('off');
722        }
723    }
724
725    /* ====================
726     WOW Animate
727     ====================== */
728    function consultio_wow_init() {
729        var wow = new WOW(
730            {
731                boxClass:     'wow',      // animated element css class (default is wow)
732                animateClass: 'animated', // animation css class (default is animated)
733                offset:       0,          // distance to the element when triggering the animation (default is 0)
734                mobile:       true,       // trigger animations on mobile devices (default is true)
735                live:         true,       // act on asynchronously loaded content (default is true)
736                callback:     function(box) {
737                    // the callback is fired every time an animation is started
738                    // the argument that is passed in is the DOM node being animated
739                },
740                scrollContainer: null,    // optional scroll container selector, otherwise use window,
741                resetAnimation: true,     // reset animation on end (default is true)
742            }
743        );
744        wow.init();
745    }
746
747    /* ====================
748     Mouse Move
749     ====================== */
750    function consultio_mouse_move() {
751        var follower, init, mouseX, mouseY, positionElement, timer;
752
753        follower = document.getElementById('ct-mouse-move');
754
755        mouseX = (event) => {
756            return event.clientX;
757        };
758
759        mouseY = (event) => {
760            return event.clientY;
761        };
762
763        positionElement = (event) => {
764            var mouse;
765            mouse = {
766                x: mouseX(event),
767                y: mouseY(event)
768            };
769
770            follower.style.top = mouse.y + 'px';
771            return follower.style.left = mouse.x + 'px';
772        };
773
774        timer = false;
775
776        window.onmousemove = init = (event) => {
777            var _event;
778            _event = event;
779                return timer = setTimeout(() => {
780                return positionElement(_event);
781            }, 0);
782        };
783    }
784
785    /* ====================
786     WooComerce Quantity
787     ====================== */
788    function consultio_quantity_icon() {
789        $('#content .quantity').append('<span class="quantity-icon"><i class="quantity-down fa fa-sort-desc"></i><i class="quantity-up fa fa-sort-asc"></i></span>');
790        $('.quantity-up').on('click', function () {
791            $(this).parents('.quantity').find('input[type="number"]').get(0).stepUp();
792            $(this).parents('.woocommerce-cart-form').find('.actions .button').removeAttr('disabled');
793        });
794        $('.quantity-down').on('click', function () {
795            $(this).parents('.quantity').find('input[type="number"]').get(0).stepDown();
796            $(this).parents('.woocommerce-cart-form').find('.actions .button').removeAttr('disabled');
797        });
798        $('.woocommerce-cart-form .actions .button').removeAttr('disabled');
799    }
800
801    $( document ).ajaxComplete(function() {
802       consultio_quantity_icon();
803    });
804
805    /* =================
806     Footer Fixed
807     =================== */
808    function consultio_footer_fixed() {
809        setTimeout(function(){
810            var h_footer = $('.fixed-footer .site-footer-custom').outerHeight() - 1;
811            $('.fixed-footer .site-content').css('margin-bottom', h_footer + 'px');
812        }, 600);
813    }
814
815    /* =================
816    Portfolio
817     =================== */
818    function consultio_portfolio_ex() {
819        window_width = $(window).width();
820        var w_container = (window_width - 1170) / 2;
821        var w_image_box = (window_width - w_container) - 415;
822        if (window_width > 1199) {
823            $('.ct-portfolio-external1 .ct-carousel-inner').css('max-width', w_image_box + 'px');
824        }
825    }
826
827})(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.