PageSourceSearch

https://meincode.eu/wp-content/themes/consultio/assets/js/main.js

js meincode.eu collected 2026-10-09 21:48:36 UTC 66,911 bytes, 1,670 lines download raw bytes

1(function ($) {
2    ("use strict");
3
4    /* ===================
5     Page reload
6     ===================== */
7    var scroll_top;
8    var window_height;
9    var window_width;
10    var scroll_status = "";
11    var lastScrollTop = 0;
12    $(window).on("load", function () {
13        $(".ct-loader").fadeOut("slow");
14        window_width = $(window).width();
15        consultio_col_offset();
16        consultio_col_offset_new();
17        consultio_col_offset_1290();
18        consultio_col_offset_1600();
19        consultio_col_offset_1660();
20        consultio_col_offset_1700();
21        consultio_header_sticky();
22        consultio_scroll_to_top();
23        consultio_quantity_icon();
24        consultio_wow_init();
25        consultio_mouse_move();
26        consultio_header_offset();
27        consultio_footer_fixed();
28        consultio_portfolio_ex();
29        //consultio_header_mobile();
30    });
31    $(window).on("resize", function () {
32        window_width = $(window).width();
33        consultio_col_offset();
34        consultio_col_offset_new();
35        consultio_col_offset_1290();
36        consultio_col_offset_1600();
37        consultio_col_offset_1660();
38        consultio_col_offset_1700();
39        consultio_header_offset();
40        consultio_footer_fixed();
41        consultio_portfolio_ex();
42        //consultio_header_mobile();
43    });
44
45    $(window).on("scroll", function () {
46        scroll_top = $(window).scrollTop();
47        window_height = $(window).height();
48        window_width = $(window).width();
49        if (scroll_top < lastScrollTop) {
50            scroll_status = "up";
51        } else {
52            scroll_status = "down";
53        }
54        lastScrollTop = scroll_top;
55        consultio_header_sticky();
56        consultio_scroll_to_top();
57    });
58
59    $(document).on("click", ".h-btn-search, .ct-search-popup", function () {
60        $(".ct-modal-search").addClass("open");
61        $("body").addClass("ov-hidden");
62        setTimeout(function () {
63            $(".ct-modal-search .search-field").focus();
64        }, 1000);
65    });
66
67    $(document).ready(function () {
68        /* =================
69         Menu Dropdown
70         =================== */
71        var $menu = $(".ct-main-navigation");
72        $menu.find(".ct-main-menu li").each(function () {
73            var $submenu = $(this).find("> ul.sub-menu, > .children");
74            if ($submenu.length == 1) {
75                $(this).hover(
76                    function () {
77                        if (
78                            $submenu.offset().left + $submenu.width() >
79                            $(window).width()
80                        ) {
81                            $submenu.addClass("back");
82                        } else if ($submenu.offset().left < 0) {
83                            $submenu.addClass("back");
84                        }
85                    },
86                    function () {
87                        $submenu.removeClass("back");
88                    }
89                );
90            }
91        });
92
93        /* Service Grid 20 Hover Animation */
94        if (typeof gsap !== "undefined") {
95            // Ensure holder is fully visible initially
96            gsap.set(".ct-service-grid20 .item--holder", {
97                clearProps: "all",
98                opacity: 1,
99            });
100
101            // Set initial states for holder-2 only
102            gsap.set(".ct-service-grid20 .item--holder-2", {
103                y: 50,
104                opacity: 0,
105            });
106
107            // Create hover animations for each grid item
108            $(".ct-service-grid20 .grid-item-inner").each(function () {
109                const item = $(this);
110                const featured = item.find(".item--featured");
111                const featuredImg = item.find(".item--featured img");
112                const icon = item.find(".item--icon");
113                const holder = item.find(".item--holder");
114                const holder2 = item.find(".item--holder-2");
115
116                // Create hover timeline (paused initially)
117                const tl = gsap.timeline({ paused: true });
118
119                // Add animations to timeline
120                tl.to(
121                    featured,
122                    {
123                        height: 137,
124                        y: -20,
125                        duration: 0.4,
126                        ease: "power1.out",
127                    },
128                    0
129                );
130
131                tl.to(
132                    featuredImg,
133                    {
134                        objectPosition: "top",
135                        duration: 0.4,
136                        ease: "power1.out",
137                    },
138                    0
139                );
140
141                tl.to(
142                    icon,
143                    {
144                        top: 55,
145                        duration: 0.35,
146                        ease: "power1.out",
147                    },
148                    0
149                );
150
151                tl.to(
152                    holder,
153                    {
154                        y: 100,
155                        opacity: 0,
156                        duration: 0.3,
157                        ease: "power1.in",
158                    },
159                    0
160                );
161
162                tl.to(
163                    holder2,
164                    {
165                        y: 0,
166                        opacity: 1,
167                        duration: 0.35,
168                        ease: "power2.out",
169                    },
170                    0.2
171                );
172
173                // Add hover event listeners
174                item.on("mouseenter", function () {
175                    tl.play();
176                });
177
178                item.on("mouseleave", function () {
179                    tl.reverse();
180                });
181            });
182        }
183
184        /* Read More Button Mouse Follow */
185        var mouseX = 0,
186            mouseY = 0;
187        var buttonX = 0,
188            buttonY = 0;
189        var isHovering = false;
190        var isFadingOut = false;
191        var smoothFactor = 0.08;
192        var animationFrameId = null;
193        var fadeOpacity = 1;
194        var currentItem = null;
195
196        function updateButtonPosition() {
197            if (!isHovering && !isFadingOut) return;
198            if (!currentItem) return;
199
200            buttonX += (mouseX - buttonX) * smoothFactor;
201            buttonY += (mouseY - buttonY) * smoothFactor;
202
203            if (isFadingOut) {
204                fadeOpacity -= 0.08;
205
206                if (fadeOpacity <= 0) {
207                    $(currentItem)
208                        .find(".read-more.fading-out")
209                        .removeClass("active fading-out");
210                    isFadingOut = false;
211                    fadeOpacity = 1;
212                    currentItem = null;
213
214                    if (animationFrameId) {
215                        cancelAnimationFrame(animationFrameId);
216                        animationFrameId = null;
217                    }
218
219                    return;
220                }
221
222                $(currentItem).find(".read-more.fading-out").css({
223                    opacity: fadeOpacity,
224                });
225            }
226
227            $(currentItem)
228                .find(".read-more.active, .read-more.fading-out")
229                .css({
230                    left: buttonX + "px",
231                    top: buttonY + "px",
232                    transform: "translate(-50%, -50%)",
233                });
234
235            animationFrameId = requestAnimationFrame(updateButtonPosition);
236        }
237
238        $(".ct-portfolio-grid7 .item--featured").on("mousemove", function (e) {
239            if (currentItem !== this) return;
240
241            var $container = $(this);
242            mouseX = e.pageX - $container.offset().left;
243            mouseY = e.pageY - $container.offset().top;
244        });
245
246        $(".ct-portfolio-grid7 .item--featured").on("mouseenter", function (e) {
247            $(".ct-portfolio-grid7 .item--featured .read-more")
248                .removeClass("active fading-out")
249                .css("opacity", 0);
250
251            var $container = $(this);
252            var $readMore = $container.find(".read-more");
253
254            currentItem = this;
255
256            mouseX = e.pageX - $container.offset().left;
257            mouseY = e.pageY - $container.offset().top;
258
259            buttonX = mouseX;
260            buttonY = mouseY;
261
262            $readMore.css({
263                left: buttonX + "px",
264                top: buttonY + "px",
265                opacity: 1,
266            });
267
268            $readMore.addClass("active");
269
270            isHovering = true;
271            isFadingOut = false;
272
273            if (animationFrameId) {
274                cancelAnimationFrame(animationFrameId);
275            }
276
277            animationFrameId = requestAnimationFrame(updateButtonPosition);
278        });
279
280        $(".ct-portfolio-grid7 .item--featured").on("mouseleave", function () {
281            if (currentItem !== this) return;
282
283            var $readMore = $(this).find(".read-more");
284
285            if ($readMore.hasClass("active")) {
286                $readMore.removeClass("active").addClass("fading-out");
287                isFadingOut = true;
288                fadeOpacity = 1;
289
290                isHovering = false;
291
292                if (!animationFrameId) {
293                    animationFrameId =
294                        requestAnimationFrame(updateButtonPosition);
295                }
296            }
297        });
298
299        $(".show-demos").on("click", function (e) {
300            e.preventDefault();
301            $(this).parents("body").find(".ct-demo-bar").toggleClass("active");
302        });
303
304        /* Menu Click */
305        $(".ct-main-menu.sub-click > li > a").on("click", function () {
306            $(this).parent().toggleClass("opened");
307        });
308
309        $("body").on("click", ".ct-main-menu.sub-click > li > a", function () {
310            return false;
311        });
312
313        /* Main Header */
314        $(".ct-header-fixed-transparent")
315            .parents(".ct-header-elementor-main")
316            .addClass("ct-header-fixed-transparent-wrap");
317
318        /* Menu Popup */
319        $(".elementor-popup-menu li.menu-item-has-children > a").append(
320            '<span class="pxl-arrow-toggle">+</span>'
321        );
322        $(".elementor-popup-menu li.menu-item-has-children > a").on(
323            "click",
324            function (e) {
325                e.preventDefault();
326                if ($(this).hasClass("active")) {
327                    $(this).next().toggleClass("active").slideToggle();
328                } else {
329                    $(this)
330                        .closest("ul")
331                        .find(".sub-menu.active")
332                        .toggleClass("active")
333                        .slideToggle();
334                    $(this)
335                        .closest("ul")
336                        .find("a.active")
337                        .toggleClass("active");
338                    $(this)
339                        .find(".pxl-menu-toggle.active")
340                        .toggleClass("active");
341                    $(this).toggleClass("active");
342                    $(this).next().toggleClass("active").slideToggle();
343                }
344            }
345        );
346
347        /* =================
348         Menu Mobile
349         =================== */
350        $(".ct-main-navigation li.menu-item-has-children").append(
351            '<span class="ct-menu-toggle far fac-angle-right"></span>'
352        );
353        $(".ct-menu-toggle").on("click", function () {
354            $(this).toggleClass("toggle-open");
355            $(this)
356                .parent()
357                .find("> .sub-menu, > .children")
358                .toggleClass("submenu-open");
359            $(this).parent().find("> .sub-menu, > .children").slideToggle();
360        });
361
362        $(".ct-main-menu li a.is-one-page").on("click", function () {
363            $(this)
364                .parents(".ct-header-navigation")
365                .removeClass("navigation-open");
366            $(this)
367                .parents(".ct-header-main")
368                .find(".btn-nav-mobile")
369                .removeClass("opened");
370        });
371
372        /*if ($(window).width() < 1199) {
373            $('.ct-main-menu li.menu-item-has-children > a').on("click", function (e) {
374                e.preventDefault();
375                $(this).parent().find('> .sub-menu, > .children').toggleClass('submenu-open');
376                $(this).parent().find('> .sub-menu, > .children').slideToggle();
377                $(this).parent().find('> .ct-menu-toggle').toggleClass('toggle-open');
378            });
379        }*/
380
381        /* =================
382         Menu Popup
383         =================== */
384        $(".ct-main-menu-popup li.menu-item-has-children > a").after(
385            '<span class="ct-menu-toggle"></span>'
386        );
387        $(".ct-main-menu-popup .ct-menu-toggle").on("click", function () {
388            $(this).toggleClass("toggle-open");
389            $(this)
390                .parent()
391                .find("> .sub-menu, > .children")
392                .toggleClass("submenu-open");
393            $(this).parent().find("> .sub-menu, > .children").slideToggle();
394        });
395        $(".ct-menu-popup").on("click", function () {
396            $("body").addClass("ov-hidden");
397            $(this)
398                .parents("body")
399                .find(".ct-header-popup-wrap")
400                .toggleClass("open");
401        });
402        $(".ct-menu-close, .ct-header-popup-menu a.is-one-page").on(
403            "click",
404            function () {
405                $("body").removeClass("ov-hidden");
406                $(this)
407                    .parents("body")
408                    .find(".ct-header-popup-wrap")
409                    .toggleClass("open");
410            }
411        );
412
413        $("#ct-menu-mobile .open-menu").on("click", function () {
414            $(this).toggleClass("opened");
415            $(".ct-header-navigation").toggleClass("navigation-open");
416        });
417
418        $(".ct-menu-close").on("click", function () {
419            $(this)
420                .parents(".header-navigation")
421                .removeClass("navigation-open");
422            $(".ct-menu-overlay").removeClass("active");
423            $("#ct-menu-mobile .open-menu").removeClass("opened");
424            $("body").removeClass("ov-hidden");
425        });
426
427        $(".ct-menu-overlay").on("click", function () {
428            $(this)
429                .parents("#header-main")
430                .find(".header-navigation")
431                .removeClass("navigation-open");
432            $(this).removeClass("active");
433            $("#ct-menu-mobile .open-menu").removeClass("opened");
434            $(".header-navigation").removeClass("navigation-open");
435            $("body").removeClass("ov-hidden");
436        });
437
438        $(".ct-header-menu-popup").on("click", function () {
439            $(this)
440                .parents("body")
441                .find(".ct-header-elementor-popup")
442                .toggleClass("open");
443        });
444
445        /* ===================
446         Search Toggle
447         ===================== */
448        $(".h-btn-form").click(function (e) {
449            e.preventDefault();
450            $(".ct-modal-contact-form")
451                .removeClass("remove")
452                .toggleClass("open");
453        });
454        $(".ct-close").click(function (e) {
455            e.preventDefault();
456            $(this).parents(".ct-header-elementor-popup").removeClass("open");
457            $(this).parents(".ct-widget-cart-wrap").removeClass("open");
458            $(this).parents(".ct-modal").addClass("remove").removeClass("open");
459            $(this).parents("#page").find(".site-overlay").removeClass("open");
460            $(this).parents("body").removeClass("ov-hidden");
461        });
462
463        $(".ct-hidden-sidebar-overlay, .ct-widget-cart-overlay").click(
464            function (e) {
465                e.preventDefault();
466                $(this).parent().toggleClass("open");
467                $(this).parents("body").removeClass("ov-hidden");
468            }
469        );
470
471        /* Video 16:9 */
472        $(".entry-video iframe").each(function () {
473            var v_width = $(this).width();
474
475            v_width = v_width / (16 / 9);
476            $(this).attr("height", v_width + 35);
477        });
478
479        /* Video Light Box */
480        $(".ct-video-button, .btn-video, .slider-video").magnificPopup({
481            type: "iframe",
482            mainClass: "mfp-fade",
483            removalDelay: 160,
484            preloader: false,
485            fixedContentPos: false,
486        });
487
488        $(".ct-service-grid1").magnificPopup({
489            delegate: "a.z-view",
490            type: "inline",
491            gallery: {
492                enabled: false,
493            },
494            mainClass: "mfp-fade mfp-menu",
495        });
496
497        /* ====================
498         Scroll To Top
499         ====================== */
500        $(".scroll-top, .scroll-top i, .ct-wg-backtotop-inner").click(
501            function () {
502                $("html").addClass("pxl-onepage-wrap");
503                $("html, body").animate({ scrollTop: 0 }, 800);
504                return false;
505            }
506        );
507        $(".ct-wg-backtotop-inner").parents("body").find(".scroll-top").hide();
508
509        /* =================
510        Add Class
511        =================== */
512        $(".wpcf7-select").parent().addClass("wpcf7-menu");
513
514        /* =================
515         The clicked item should be in center in owl carousel
516         =================== */
517        var $owl_item = $(".owl-active-click");
518        $owl_item.children().each(function (index) {
519            $(this).attr("data-position", index);
520        });
521        $(document).on(
522            "click",
523            ".owl-active-click .owl-item > div",
524            function () {
525                $owl_item.trigger("to.owl.carousel", $(this).data("position"));
526            }
527        );
528
529        /* Select */
530        $(
531            'select:not([id*="ui-id-"]):not(#billing_country):not(#shipping_country):not(#billing_state):not(.gt_selector):not(.wpforms-form)'
532        ).each(function () {
533            $(this).niceSelect();
534        });
535
536        setTimeout(function () {
537            $(".nice-select").on("click", function () {
538                $(this).find(".list").toggleClass("open");
539            });
540        }, 300);
541
542        /* Newsletter */
543        $(
544            ".widget_newsletterwidget, form.newsletter, form.tnp-subscription"
545        ).each(function () {
546            var email_text = $(this).find(".tnp-field-email label").text();
547            $(this).find(".tnp-field-email label").remove();
548            $(this)
549                .find(".tnp-email")
550                .each(function (ev) {
551                    if (!$(this).val()) {
552                        $(this).attr("placeholder", email_text);
553                    }
554                });
555            var firstname_text = $(this)
556                .find(".tnp-field-firstname label")
557                .text();
558            $(this).find(".tnp-field-firstname label").remove();
559            $(this)
560                .find(".tnp-firstname")
561                .each(function (ev) {
562                    if (!$(this).val()) {
563                        $(this).attr("placeholder", firstname_text);
564                    }
565                });
566            var lastname_text = $(this)
567                .find(".tnp-field-lastname label")
568                .text();
569            $(this).find(".tnp-field-lastname label").remove();
570            $(this)
571                .find(".tnp-lastname")
572                .each(function (ev) {
573                    if (!$(this).val()) {
574                        $(this).attr("placeholder", lastname_text);
575                    }
576                });
577        });
578
579        /* bbPress */
580        $(".bbp-search-form").each(function () {
581            var search_text = "Search...";
582            $(this)
583                .find("#bbp_search")
584                .each(function (ev) {
585                    if (!$(this).val()) {
586                        $(this).attr("placeholder", search_text);
587                    }
588                });
589        });
590
591        /* Search */
592        $(".ct-modal-close").on("click", function () {
593            $(this).parent().removeClass("open");
594            $(this).parents("body").removeClass("ov-hidden");
595        });
596        $(document).on("click", function (e) {
597            if (e.target.className == "ct-modal ct-modal-search open")
598                $(".ct-modal-search").removeClass("open");
599            if (e.target.className == "ct-hidden-sidebar open")
600                $(".ct-hidden-sidebar").removeClass("open");
601        });
602
603        /* Hidden Sidebar */
604        $(".h-btn-sidebar").on("click", function (e) {
605            e.preventDefault();
606            $(".ct-hidden-sidebar-wrap").toggleClass("open");
607            $(this).parents("body").addClass("ov-hidden");
608        });
609
610        $(".ct-hidden-close").on("click", function (e) {
611            e.preventDefault();
612            $(this).parents(".ct-hidden-sidebar-wrap").removeClass("open");
613            $(this).parents("body").removeClass("ov-hidden");
614        });
615
616        /* Cart Sidebar */
617        $(".h-btn-cart, .btn-nav-cart, .ct-cart-bar").on("click", function (e) {
618            e.preventDefault();
619            $(".ct-widget-cart-wrap").toggleClass("open");
620            $(".ct-header-navigation").removeClass("navigation-open");
621            $("#ct-menu-mobile .open-menu").removeClass("opened");
622            $(this).parents("body").addClass("ov-hidden");
623        });
624
625        /* Year Copyright */
626        var _year_footer = $(".ct-footer-year"),
627            _year_clone = _year_footer.parents(".site").find(".ct-year");
628        _year_clone.after(_year_footer.clone());
629        _year_footer.remove();
630        _year_clone.remove();
631
632        /* Comment Reply */
633        $(".comment-reply a").append('<i class="fa fa-angle-right"></i>');
634
635        /* Widget Menu */
636        $(".ct-navigation-menu1.default a").append(
637            '<i class="fac fac-angle-right"></i>'
638        );
639
640        /* Nav Slider */
641        setTimeout(function () {
642            $(".revslider-initialised").each(function () {
643                $(this)
644                    .find(".ct-slider-nav .slider-nav-right")
645                    .on("click", function () {
646                        $(this)
647                            .parents(".revslider-initialised")
648                            .find(".tp-rightarrow")
649                            .trigger("click");
650                    });
651                $(this)
652                    .find(".ct-slider-nav .slider-nav-left")
653                    .on("click", function () {
654                        $(this)
655                            .parents(".revslider-initialised")
656                            .find(".tp-leftarrow")
657                            .trigger("click");
658                    });
659            });
660            $(".ct-slider-nav")
661                .parents(".revslider-initialised")
662                .find(".tparrows")
663                .addClass("arrow-hidden");
664        }, 300);
665
666        /* Icon Form */
667        setTimeout(function () {
668            $(".input-filled").each(function () {
669                var icon_input = $(this).find(".input-icon"),
670                    control_wrap = $(this).find(".wpcf7-form-control");
671                control_wrap.before(icon_input.clone());
672                icon_input.remove();
673            });
674        }, 200);
675
676        /* Image Pointer */
677        $(".ct-pointer-item").each(function () {
678            $(this)
679                .find(".ct-pointer-btn")
680                .on("click", function () {
681                    $(this).toggleClass("open");
682                    $(this)
683                        .parents(".elementor-widget-wrap")
684                        .find(".ct-pointer-item .ct-pointer-btn")
685                        .removeClass("open");
686                    $(this).addClass("open");
687                });
688        });
689
690        /* Blog */
691        $(
692            ".ct-blog-grid-layout1 .grid-item-inner, .ct-blog-carousel-layout1 .grid-item-inner"
693        ).hover(
694            function () {
695                $(this).find(".entry-readmore").slideToggle(300);
696                $(this).find(".entry-meta").slideToggle(300);
697            },
698            function () {
699                $(this).find(".entry-readmore").slideToggle(300);
700                $(this).find(".entry-meta").slideToggle(300);
701            }
702        );
703
704        /* FancyBox */
705        $(".ct-fancy-box-layout18").hover(
706            function () {
707                $(this).find(".item--button").slideToggle(300);
708                $(this).find(".item--description").slideToggle(300);
709            },
710            function () {
711                $(this).find(".item--button").slideToggle(300);
712                $(this).find(".item--description").slideToggle(300);
713            }
714        );
715
716        /* Team */
717        $(
718            ".ct-team-carousel1 .item--inner, .ct-team-carousel2 .item--inner, .ct-team-grid4 .item--inner"
719        ).hover(
720            function () {
721                $(this).find(".item--social").slideToggle(300);
722            },
723            function () {
724                $(this).find(".item--social").slideToggle(300);
725            }
726        );
727
728        $(".ct-team-carousel6 .item--inner, .ct-team-grid6 .item--inner").hover(
729            function () {
730                $(this).find(".item--meta").slideToggle(200);
731            },
732            function () {
733                $(this).find(".item--meta").slideToggle(200);
734            }
735        );
736
737        $(".social-button").on("click", function () {
738            $(this).parent().toggleClass("active");
739        });
740
741        /* Service */
742        $(".ct-service-grid6 .grid-item-inner").hover(
743            function () {
744                $(this).find(".item-readmore").slideToggle(300);
745            },
746            function () {
747                $(this).find(".item-readmore").slideToggle(300);
748            }
749        );
750
751        $(".ct-service-grid7 .grid-item-inner").hover(
752            function () {
753                $(this).find(".item--desc").slideToggle(300);
754            },
755            function () {
756                $(this).find(".item--desc").slideToggle(300);
757            }
758        );
759
760        $(".ct-service-grid10 .grid-item-inner").hover(
761            function () {
762                $(this).find(".item--readmore").slideToggle(300);
763            },
764            function () {
765                $(this).find(".item--readmore").slideToggle(300);
766            }
767        );
768
769        /* Fancy Box Grid */
770        $(".ct-fancy-box-grid1").each(function () {
771            $(this)
772                .find(".item--inner")
773                .hover(function () {
774                    $(this)
775                        .parents(".elementor-element")
776                        .find(".item--inner")
777                        .removeClass("active");
778                    $(this).addClass("active");
779                });
780        });
781
782        $(".ct-fancy-box-layout9").each(function () {
783            $(this).hover(function () {
784                $(this)
785                    .parents(".elementor-row")
786                    .find(".ct-fancy-box-layout9")
787                    .removeClass("active");
788                $(this)
789                    .parents(".elementor-container")
790                    .find(".ct-fancy-box-layout9")
791                    .removeClass("active");
792                $(this).addClass("active");
793            });
794        });
795
796        /* Same Height */
797        $(".ct-fancy-box-grid1 .item--inner").matchHeight();
798        $(".ct-feature-layout1").matchHeight();
799        $(".ct-fancy-box-layout4").matchHeight();
800        $(".ct-fancy-box-layout5 .ct-fancy-box-inner").matchHeight();
801        $(".ct-fancy-box-layout1.style4").matchHeight();
802        $(".ct-testimonial-carousel3 .item--description").matchHeight();
803
804        $(".same-height").matchHeight();
805        $(".ct-fancy-box-layout14").matchHeight();
806        $(".ct-service-grid3 .grid-item-holder").matchHeight();
807        $(".ct-service-grid5 .grid-item-inner").matchHeight();
808
809        /* Demo Bar */
810        $(".choose-demo, .ct-demo-bar-close").on("click", function () {
811            $(this).parents(".ct-demo-bar").toggleClass("active");
812        });
813
814        /* Animate Time */
815        $(".animate-time").each(function () {
816            var eltime = 100;
817            var elt_inner = $(this).children().length;
818            var _elt = elt_inner - 1;
819            $(this)
820                .find("> .grid-item > .wow")
821                .each(function (index, obj) {
822                    $(this).css("animation-delay", eltime + "ms");
823                    if (_elt === index) {
824                        eltime = 100;
825                        _elt = _elt + elt_inner;
826                    } else {
827                        eltime = eltime + 80;
828                    }
829                });
830        });
831
832        /* Overlay particle */
833        setTimeout(function () {
834            $(".elementor-top-section").each(function () {
835                var _el_bg_animate = $(this).find(".ct-background-animate"),
836                    _row_bg_animate = _el_bg_animate.parents(
837                        ".elementor-container"
838                    );
839                _row_bg_animate.before(_el_bg_animate.clone());
840                _el_bg_animate.remove();
841
842                var _el_text = $(this).find(".ct-text"),
843                    _row_text = _el_text.parents(".elementor-container");
844                _row_text.before(_el_text.clone());
845                _el_text.remove();
846            });
847        }, 200);
848
849        $(".h9-section-01 > .elementor-container").after(
850            '<div class="h9-section-gradient"></div>'
851        );
852        $(".h9-section-02 > .elementor-container").after(
853            '<div class="h9-section-overlay"></div>'
854        );
855
856        $(".h9-section-one > .elementor-container").after(
857            '<div class="h9-section-gradient"></div>'
858        );
859
860        /* Team */
861        $(".item--social-btn").on("click", function () {
862            $(this).toggleClass("active");
863            $(this).parent().toggleClass("active");
864        });
865
866        /* Range Slider */
867        $(".wpcf7-form").each(function () {
868            var range = $(this).find(".ct-range-slider");
869            var range_value = $(this)
870                .find(".ct-range-slider")
871                .attr("data-value");
872            var range_maxvalue = $(this)
873                .find(".ct-range-slider")
874                .attr("data-maxvalue");
875            var range_currency = $(this)
876                .find(".ct-range-slider")
877                .attr("data-currency");
878            $(this)
879                .find(".ct-range-slider")
880                .slider({
881                    range: "min",
882                    value: range_value,
883                    min: 1,
884                    max: range_maxvalue,
885                    slide: function (event, ui) {
886                        $(this)
887                            .parent()
888                            .find(".ct-range-result")
889                            .val(range_currency + ui.value);
890                    },
891                });
892            $(this)
893                .find(".ct-range-result")
894                .val(
895                    range_currency +
896                        $(this).find(".ct-range-slider").slider("value")
897                );
898        });
899
900        /* Slider Revolution */
901        $(".ct-slider-arrow")
902            .parents(".elementor-widget-slider_revolution")
903            .addClass("hide-arrow");
904
905        /* Cover Boxes */
906        $(
907            "body:not(.elementor-editor-active) .ct-cover-boxes1 .ct-cover-item"
908        ).each(function () {
909            $(this).hover(function () {
910                $(this)
911                    .parents(".ct-cover-boxes1")
912                    .find(".ct-cover-item")
913                    .removeClass("active");
914                $(this).addClass("active");
915            });
916        });
917
918        /* Counter Column */
919        $(".counter-col-line1").append('<span class="counter-line"></span>');
920
921        /* Pricing */
922        $(".ct-pricing-tab-active .ct-pricing-tab-item").on(
923            "click",
924            function () {
925                $(this)
926                    .parent()
927                    .find(".ct-pricing-tab-item")
928                    .removeClass("active");
929                $(this).addClass("active");
930            }
931        );
932        $(".ct-pricing-tab-active .title-tab-monthly").on("click", function () {
933            $(this)
934                .parents(".ct-pricing-multi")
935                .find(".ct-pricing-monthly")
936                .removeClass("ct-pricing-hide");
937            $(this)
938                .parents(".ct-pricing-multi")
939                .find(".ct-pricing-year")
940                .addClass("ct-pricing-hide");
941        });
942        $(".ct-pricing-tab-active .title-tab-year").on("click", function () {
943            $(this)
944                .parents(".ct-pricing-multi")
945                .find(".ct-pricing-year")
946                .removeClass("ct-pricing-hide");
947            $(this)
948                .parents(".ct-pricing-multi")
949                .find(".ct-pricing-monthly")
950                .addClass("ct-pricing-hide");
951        });
952
953        $(".case-animate-time > span").each(function () {
954            var eltime = 0;
955            var elt_inner = $(this).children().length;
956            var _elt = elt_inner - 1;
957            $(this)
958                .find("> .slide-in-container > .wow")
959                .each(function (index, obj) {
960                    $(this).css("transition-delay", eltime + "ms");
961                    if (_elt === index) {
962                        eltime = 0;
963                        _elt = _elt + elt_inner;
964                    } else {
965                        eltime = eltime + 100;
966                    }
967                });
968        });
969
970        /* Header Elementor */
971        $(".ct-header-elementor-sticky")
972            .parents("body")
973            .addClass("header-sticky");
974
975        /* GSAP Animation */
976        consultio_gsap_animation();
977    });
978
979    function consultio_header_offset() {
980        if ($("#ct-header-wrap").html() != "") {
981            var space_branding = $(".ct-header-branding").offset().left;
982            var width_branding = $(".ct-header-branding").outerWidth();
983            var offset_branding = space_branding + width_branding;
984            $(".ct-header-layout10 .ct-header-branding-bg").css(
985                "width",
986                offset_branding + "px"
987            );
988            $(".site-h10 .ct-header-offset").css(
989                "width",
990                offset_branding + "px"
991            );
992            $(".h9-section-overlay").css("left", offset_branding + "px");
993
994            $(
995                ".h9-section-03 > .elementor-container.elementor-column-gap-no > .elementor-row > .elementor-element:nth-child(1)"
996            ).css("max-width", offset_branding + "px");
997            $(
998                ".h9-section-03 > .elementor-container.elementor-column-gap-no > .elementor-row > .elementor-element:nth-child(1)"
999            ).css("min-width", offset_branding + "px");
1000
1001            $(
1002                ".h9-section-03 > .elementor-container.elementor-column-gap-no > .elementor-element:nth-child(1)"
1003            ).css("max-width", offset_branding + "px");
1004            $(
1005                ".h9-section-03 > .elementor-container.elementor-column-gap-no > .elementor-element:nth-child(1)"
1006            ).css("min-width", offset_branding + "px");
1007
1008            $(
1009                ".h9-section-03 > .elementor-container.elementor-column-gap-no > .elementor-element:nth-child(1)"
1010            ).css("max-width", offset_branding + "px");
1011            $(
1012                ".h9-section-03 > .elementor-container.elementor-column-gap-no > .elementor-element:nth-child(1)"
1013            ).css("min-width", offset_branding + "px");
1014
1015            $(".h9-section-gradient").css("width", offset_branding + "px");
1016        }
1017    }
1018
1019    function consultio_header_sticky() {
1020        var offsetTop = $("#ct-header-wrap").outerHeight();
1021        var h_header = $(".fixed-height").outerHeight();
1022        var offsetTopAnimation = offsetTop + 200;
1023        var offsetTopHide = offsetTop + 400;
1024        if ($("#ct-header-wrap").hasClass("is-sticky")) {
1025            if (scroll_top > offsetTopAnimation) {
1026                $("#ct-header").addClass("h-fixed");
1027            } else {
1028                $("#ct-header").removeClass("h-fixed");
1029            }
1030            if (scroll_status == "up" && scroll_top > 0) {
1031                $("#ct-header").addClass("scroll-up");
1032            } else {
1033                $("#ct-header").removeClass("scroll-up");
1034            }
1035            if (scroll_status == "up" && scroll_top < offsetTopHide) {
1036                $("#ct-header").addClass("h-fixed-hide");
1037            }
1038            if (scroll_status == "up" && scroll_top < offsetTopAnimation) {
1039                $("#ct-header").removeClass("h-fixed-hide");
1040            }
1041        }
1042
1043        var h_header_slider = $(".ct-header-slider").outerHeight();
1044        if ($("#ct-header-wrap").hasClass("is-sticky-offset")) {
1045            if (scroll_top > h_header_slider) {
1046                $("#ct-header").addClass("h-fixed");
1047                $("#ct-header-wrap").addClass("is-sticky-active");
1048            } else {
1049                $("#ct-header").removeClass("h-fixed");
1050                $("#ct-header-wrap").removeClass("is-sticky-active");
1051            }
1052            if (scroll_top > 200) {
1053                $("#ct-header-wrap").removeClass("sub-show-top");
1054            }
1055            if (scroll_top == 0) {
1056                $("#ct-header-wrap").addClass("sub-show-top");
1057            }
1058        }
1059
1060        if (window_width > 1200) {
1061            $(".fixed-height").css({
1062                height: h_header,
1063            });
1064        }
1065
1066        /* Header Elementor */
1067        var e_offsetTop = $("#ct-header-elementor").outerHeight();
1068        if ($("#ct-header-elementor").hasClass("is-sticky")) {
1069            if (scroll_top > e_offsetTop) {
1070                $(".ct-header-elementor-sticky").addClass("h-fixed");
1071            } else {
1072                $(".ct-header-elementor-sticky").removeClass("h-fixed");
1073            }
1074        }
1075
1076        /* Iamge Scale  */
1077        $(".ct-image-single.img-hover-scale")
1078            .parents(".elementor-widget-ct_image")
1079            .addClass("pxl-img-hover-scale");
1080    }
1081
1082    /*function consultio_header_mobile() {
1083        var h_header = $('.fixed-height').outerHeight();
1084        if (window_width < 1199) {
1085            $('.fixed-height').css({
1086                'height': h_header
1087            });
1088        }
1089    }*/
1090
1091    /* =================
1092     Column Offset
1093     =================== */
1094    function consultio_col_offset() {
1095        setTimeout(function () {
1096            var w_vc_row_lg_medium = ($("#content").width() - 1200) / 2;
1097            var w_vc_row_lg_full_medium =
1098                ($(
1099                    "#content section.elementor-element section.elementor-element"
1100                ).width() -
1101                    1200) /
1102                2;
1103            if (window_width > 1200) {
1104                $("body:not(.rtl) .col-offset-left")
1105                    .parents(".elementor-container")
1106                    .css("padding-left", w_vc_row_lg_medium + "px");
1107                $("body:not(.rtl) .col-offset-right")
1108                    .parents(".elementor-container")
1109                    .css("padding-right", w_vc_row_lg_medium + "px");
1110
1111                $(".rtl .col-offset-left")
1112                    .parents(".elementor-container")
1113                    .css("padding-right", w_vc_row_lg_medium + "px");
1114                $(".rtl .col-offset-right")
1115                    .parents(".elementor-container")
1116                    .css("padding-left", w_vc_row_lg_medium + "px");
1117
1118                $("body:not(.rtl) .ct-row-full-width .col-offset-left")
1119                    .parents(".elementor-container")
1120                    .css("padding-left", w_vc_row_lg_full_medium + "px");
1121                $("body:not(.rtl) .ct-row-full-width .col-offset-right")
1122                    .parents(".elementor-container")
1123                    .css("padding-right", w_vc_row_lg_full_medium + "px");
1124
1125                $(".rtl .ct-row-full-width .col-offset-left")
1126                    .parents(".elementor-container")
1127                    .css("padding-right", w_vc_row_lg_full_medium + "px");
1128                $(".rtl .ct-row-full-width .col-offset-right")
1129                    .parents(".elementor-container")
1130                    .css("padding-left", w_vc_row_lg_full_medium + "px");
1131
1132                /* Fixed somes section - demo markerting */
1133                $(
1134                    "body:not(.rtl) .h9-section-03 .col-offset-right > .elementor-column-wrap > .elementor-widget-wrap"
1135                ).css("padding-right", w_vc_row_lg_medium + "px");
1136            }
1137            /* Custom Settings */
1138            if (window_width > 1200) {
1139                $(
1140                    "body:not(.rtl) .ct-column-offset-left > .elementor-column-wrap > .elementor-widget-wrap, body:not(.rtl) .ct-column-offset-left > .elementor-widget-wrap"
1141                ).css("padding-left", w_vc_row_lg_medium + "px");
1142                $(
1143                    "body:not(.rtl) .ct-column-offset-right > .elementor-column-wrap > .elementor-widget-wrap, body:not(.rtl) .ct-column-offset-right > .elementor-widget-wrap"
1144                ).css("padding-right", w_vc_row_lg_medium + "px");
1145
1146                $(
1147                    ".rtl .ct-column-offset-left > .elementor-column-wrap > .elementor-widget-wrap, .rtl .ct-column-offset-left > .elementor-widget-wrap"
1148                ).css("padding-right", w_vc_row_lg_medium + "px");
1149                $(
1150                    ".rtl .ct-column-offset-right > .elementor-column-wrap > .elementor-widget-wrap, .rtl .ct-column-offset-right > .elementor-widget-wrap"
1151                ).css("padding-left", w_vc_row_lg_medium + "px");
1152            }
1153        }, 10);
1154    }
1155
1156    // New Column Offset
1157    function consultio_col_offset_new() {
1158        setTimeout(function () {
1159            var w_vc_row_lg_medium = ($("#content").width() - 1320) / 2;
1160            var w_vc_row_lg_full_medium =
1161                ($(
1162                    "#content section.elementor-element section.elementor-element"
1163                ).width() -
1164                    1320) /
1165                2;
1166            if (window_width > 1320) {
1167                $("body:not(.rtl) .col-offset-left-1320")
1168                    .parents(".elementor-container")
1169                    .css("padding-left", w_vc_row_lg_medium + "px");
1170                $("body:not(.rtl) .col-offset-right-1320")
1171                    .parents(".elementor-container")
1172                    .css("padding-right", w_vc_row_lg_medium + "px");
1173
1174                $(".rtl .col-offset-left-1320")
1175                    .parents(".elementor-container")
1176                    .css("padding-right", w_vc_row_lg_medium + "px");
1177                $(".rtl .col-offset-right-1320")
1178                    .parents(".elementor-container")
1179                    .css("padding-left", w_vc_row_lg_medium + "px");
1180
1181                $("body:not(.rtl) .ct-row-full-width .col-offset-left-1320")
1182                    .parents(".elementor-container")
1183                    .css("padding-left", w_vc_row_lg_full_medium + "px");
1184                $("body:not(.rtl) .ct-row-full-width .col-offset-right-1320")
1185                    .parents(".elementor-container")
1186                    .css("padding-right", w_vc_row_lg_full_medium + "px");
1187
1188                $(".rtl .ct-row-full-width .col-offset-left-1320")
1189                    .parents(".elementor-container")
1190                    .css("padding-right", w_vc_row_lg_full_medium + "px");
1191                $(".rtl .ct-row-full-width .col-offset-right-1320")
1192                    .parents(".elementor-container")
1193                    .css("padding-left", w_vc_row_lg_full_medium + "px");
1194
1195                /* Fixed somes section - demo markerting */
1196                $(
1197                    "body:not(.rtl) .h9-section-03 .col-offset-right-1320 > .elementor-column-wrap > .elementor-widget-wrap"
1198                ).css("padding-right", w_vc_row_lg_medium + "px");
1199            }
1200            /* Custom Settings */
1201            if (window_width > 1320) {
1202                $(
1203                    "body:not(.rtl) .ct-column-offset-left-1320 > .elementor-column-wrap > .elementor-widget-wrap, body:not(.rtl) .ct-column-offset-left-1320 > .elementor-widget-wrap"
1204                ).css("padding-left", w_vc_row_lg_medium + "px");
1205                $(
1206                    "body:not(.rtl) .ct-column-offset-right-1320 > .elementor-column-wrap > .elementor-widget-wrap, body:not(.rtl) .ct-column-offset-right-1320 > .elementor-widget-wrap"
1207                ).css("padding-right", w_vc_row_lg_medium + "px");
1208
1209                $(
1210                    ".rtl .ct-column-offset-left-1320 > .elementor-column-wrap > .elementor-widget-wrap, .rtl .ct-column-offset-left-1320 > .elementor-widget-wrap"
1211                ).css("padding-right", w_vc_row_lg_medium + "px");
1212                $(
1213                    ".rtl .ct-column-offset-right-1320 > .elementor-column-wrap > .elementor-widget-wrap, .rtl .ct-column-offset-right-1320 > .elementor-widget-wrap"
1214                ).css("padding-left", w_vc_row_lg_medium + "px");
1215            }
1216        }, 10);
1217    }
1218
1219    // Column Offset 1290
1220    function consultio_col_offset_1290() {
1221        setTimeout(function () {
1222            var w_vc_row_lg_medium = ($("#content").width() - 1290) / 2;
1223            var w_vc_row_lg_full_medium =
1224                ($(
1225                    "#content section.elementor-element section.elementor-element"
1226                ).width() -
1227                    1290) /
1228                2;
1229            if (window_width > 1290) {
1230                $("body:not(.rtl) .col-offset-left-1290")
1231                    .parents(".elementor-container")
1232                    .css("padding-left", w_vc_row_lg_medium + "px");
1233                $("body:not(.rtl) .col-offset-right-1290")
1234                    .parents(".elementor-container")
1235                    .css("padding-right", w_vc_row_lg_medium + "px");
1236
1237                $(".rtl .col-offset-left-1290")
1238                    .parents(".elementor-container")
1239                    .css("padding-right", w_vc_row_lg_medium + "px");
1240                $(".rtl .col-offset-right-1290")
1241                    .parents(".elementor-container")
1242                    .css("padding-left", w_vc_row_lg_medium + "px");
1243
1244                $("body:not(.rtl) .ct-row-full-width .col-offset-left-1290")
1245                    .parents(".elementor-container")
1246                    .css("padding-left", w_vc_row_lg_full_medium + "px");
1247                $("body:not(.rtl) .ct-row-full-width .col-offset-right-1290")
1248                    .parents(".elementor-container")
1249                    .css("padding-right", w_vc_row_lg_full_medium + "px");
1250
1251                $(".rtl .ct-row-full-width .col-offset-left-1290")
1252                    .parents(".elementor-container")
1253                    .css("padding-right", w_vc_row_lg_full_medium + "px");
1254                $(".rtl .ct-row-full-width .col-offset-right-1290")
1255                    .parents(".elementor-container")
1256                    .css("padding-left", w_vc_row_lg_full_medium + "px");
1257
1258                /* Fixed somes section - demo markerting */
1259                $(
1260                    "body:not(.rtl) .h9-section-03 .col-offset-right-1290 > .elementor-column-wrap > .elementor-widget-wrap"
1261                ).css("padding-right", w_vc_row_lg_medium + "px");
1262            }
1263            /* Custom Settings */
1264            if (window_width > 1290) {
1265                $(
1266                    "body:not(.rtl) .ct-column-offset-left-1290 > .elementor-column-wrap > .elementor-widget-wrap, body:not(.rtl) .ct-column-offset-left-1290 > .elementor-widget-wrap"
1267                ).css("padding-left", w_vc_row_lg_medium + "px");
1268                $(
1269                    "body:not(.rtl) .ct-column-offset-right-1290 > .elementor-column-wrap > .elementor-widget-wrap, body:not(.rtl) .ct-column-offset-right-1290 > .elementor-widget-wrap"
1270                ).css("padding-right", w_vc_row_lg_medium + "px");
1271
1272                $(
1273                    ".rtl .ct-column-offset-left-1290 > .elementor-column-wrap > .elementor-widget-wrap, .rtl .ct-column-offset-left-1290 > .elementor-widget-wrap"
1274                ).css("padding-right", w_vc_row_lg_medium + "px");
1275                $(
1276                    ".rtl .ct-column-offset-right-1290 > .elementor-column-wrap > .elementor-widget-wrap, .rtl .ct-column-offset-right-1290 > .elementor-widget-wrap"
1277                ).css("padding-left", w_vc_row_lg_medium + "px");
1278            }
1279        }, 10);
1280    }
1281
1282    // Column Offset 1700
1283    function consultio_col_offset_1700() {
1284        setTimeout(function () {
1285            var w_vc_row_lg_medium = ($("#content").width() - 1700) / 2;
1286            var w_vc_row_lg_full_medium =
1287                ($(
1288                    "#content section.elementor-element section.elementor-element"
1289                ).width() -
1290                    1700) /
1291                2;
1292            if (window_width > 1700) {
1293                $("body:not(.rtl) .col-offset-left-1700")
1294                    .parents(".elementor-container")
1295       
1295             .css("padding-left", w_vc_row_lg_medium + "px");
1296                $("body:not(.rtl) .col-offset-right-1700")
1297                    .parents(".elementor-container")
1298                    .css("padding-right", w_vc_row_lg_medium + "px");
1299
1300                $(".rtl .col-offset-left-1700")
1301                    .parents(".elementor-container")
1302                    .css("padding-right", w_vc_row_lg_medium + "px");
1303                $(".rtl .col-offset-right-1700")
1304                    .parents(".elementor-container")
1305                    .css("padding-left", w_vc_row_lg_medium + "px");
1306
1307                $("body:not(.rtl) .ct-row-full-width .col-offset-left-1700")
1308                    .parents(".elementor-container")
1309                    .css("padding-left", w_vc_row_lg_full_medium + "px");
1310                $("body:not(.rtl) .ct-row-full-width .col-offset-right-1700")
1311                    .parents(".elementor-container")
1312                    .css("padding-right", w_vc_row_lg_full_medium + "px");
1313
1314                $(".rtl .ct-row-full-width .col-offset-left-1700")
1315                    .parents(".elementor-container")
1316                    .css("padding-right", w_vc_row_lg_full_medium + "px");
1317                $(".rtl .ct-row-full-width .col-offset-right-1700")
1318                    .parents(".elementor-container")
1319                    .css("padding-left", w_vc_row_lg_full_medium + "px");
1320
1321                /* Fixed somes section - demo markerting */
1322                $(
1323                    "body:not(.rtl) .h9-section-03 .col-offset-right-1700 > .elementor-column-wrap > .elementor-widget-wrap"
1324                ).css("padding-right", w_vc_row_lg_medium + "px");
1325            }
1326            /* Custom Settings */
1327            if (window_width > 1700) {
1328                $(
1329                    "body:not(.rtl) .ct-column-offset-left-1700 > .elementor-column-wrap > .elementor-widget-wrap, body:not(.rtl) .ct-column-offset-left-1700 > .elementor-widget-wrap"
1330                ).css("margin-left", w_vc_row_lg_medium + "px");
1331                $(
1332                    "body:not(.rtl) .ct-column-offset-right-1700 > .elementor-column-wrap > .elementor-widget-wrap, body:not(.rtl) .ct-column-offset-right-1700 > .elementor-widget-wrap"
1333                ).css("margin-right", w_vc_row_lg_medium + "px");
1334
1335                $(
1336                    ".rtl .ct-column-offset-left-1700 > .elementor-column-wrap > .elementor-widget-wrap, .rtl .ct-column-offset-left-1700 > .elementor-widget-wrap"
1337                ).css("margin-right", w_vc_row_lg_medium + "px");
1338                $(
1339                    ".rtl .ct-column-offset-right-1700 > .elementor-column-wrap > .elementor-widget-wrap, .rtl .ct-column-offset-right-1700 > .elementor-widget-wrap"
1340                ).css("margin-left", w_vc_row_lg_medium + "px");
1341            }
1342        }, 10);
1343    }
1344
1345    // Column Offset 1600
1346    function consultio_col_offset_1600() {
1347        setTimeout(function () {
1348            var w_vc_row_lg_medium = ($("#content").width() - 1600) / 2;
1349            var w_vc_row_lg_full_medium =
1350                ($(
1351                    "#content section.elementor-element section.elementor-element"
1352                ).width() -
1353                    1600) /
1354                2;
1355            if (window_width > 1600) {
1356                $("body:not(.rtl) .col-offset-left-1600")
1357                    .parents(".elementor-container")
1358                    .css("padding-left", w_vc_row_lg_medium + "px");
1359                $("body:not(.rtl) .col-offset-right-1600")
1360                    .parents(".elementor-container")
1361                    .css("padding-right", w_vc_row_lg_medium + "px");
1362
1363                $(".rtl .col-offset-left-1600")
1364                    .parents(".elementor-container")
1365                    .css("padding-right", w_vc_row_lg_medium + "px");
1366                $(".rtl .col-offset-right-1600")
1367                    .parents(".elementor-container")
1368                    .css("padding-left", w_vc_row_lg_medium + "px");
1369
1370                $("body:not(.rtl) .ct-row-full-width .col-offset-left-1600")
1371                    .parents(".elementor-container")
1372                    .css("padding-left", w_vc_row_lg_full_medium + "px");
1373                $("body:not(.rtl) .ct-row-full-width .col-offset-right-1600")
1374                    .parents(".elementor-container")
1375                    .css("padding-right", w_vc_row_lg_full_medium + "px");
1376
1377                $(".rtl .ct-row-full-width .col-offset-left-1600")
1378                    .parents(".elementor-container")
1379                    .css("padding-right", w_vc_row_lg_full_medium + "px");
1380                $(".rtl .ct-row-full-width .col-offset-right-1600")
1381                    .parents(".elementor-container")
1382                    .css("padding-left", w_vc_row_lg_full_medium + "px");
1383
1384                /* Fixed somes section - demo markerting */
1385                $(
1386                    "body:not(.rtl) .h9-section-03 .col-offset-right-1600 > .elementor-column-wrap > .elementor-widget-wrap"
1387                ).css("padding-right", w_vc_row_lg_medium + "px");
1388            }
1389            /* Custom Settings */
1390            if (window_width > 1600) {
1391                $(
1392                    "body:not(.rtl) .ct-column-offset-left-1600 > .elementor-column-wrap > .elementor-widget-wrap, body:not(.rtl) .ct-column-offset-left-1600 > .elementor-widget-wrap"
1393                ).css("margin-left", w_vc_row_lg_medium + "px");
1394                $(
1395                    "body:not(.rtl) .ct-column-offset-right-1600 > .elementor-column-wrap > .elementor-widget-wrap, body:not(.rtl) .ct-column-offset-right-1600 > .elementor-widget-wrap"
1396                ).css("margin-right", w_vc_row_lg_medium + "px");
1397
1398                $(
1399                    ".rtl .ct-column-offset-left-1600 > .elementor-column-wrap > .elementor-widget-wrap, .rtl .ct-column-offset-left-1600 > .elementor-widget-wrap"
1400                ).css("margin-right", w_vc_row_lg_medium + "px");
1401                $(
1402                    ".rtl .ct-column-offset-right-1600 > .elementor-column-wrap > .elementor-widget-wrap, .rtl .ct-column-offset-right-1600 > .elementor-widget-wrap"
1403                ).css("margin-left", w_vc_row_lg_medium + "px");
1404            }
1405        }, 10);
1406    }
1407
1408    // Column Offset 1660
1409    function consultio_col_offset_1660() {
1410        setTimeout(function () {
1411            var w_vc_row_lg_medium = ($("#content").width() - 1660) / 2;
1412            var w_vc_row_lg_full_medium =
1413                ($(
1414                    "#content section.elementor-element section.elementor-element"
1415                ).width() -
1416                    1660) /
1417                2;
1418            if (window_width > 1660) {
1419                $("body:not(.rtl) .col-offset-left-1660")
1420                    .parents(".elementor-container")
1421                    .css("padding-left", w_vc_row_lg_medium + "px");
1422                $("body:not(.rtl) .col-offset-right-1660")
1423                    .parents(".elementor-container")
1424                    .css("padding-right", w_vc_row_lg_medium + "px");
1425
1426                $(".rtl .col-offset-left-1660")
1427                    .parents(".elementor-container")
1428                    .css("padding-right", w_vc_row_lg_medium + "px");
1429                $(".rtl .col-offset-right-1660")
1430                    .parents(".elementor-container")
1431                    .css("padding-left", w_vc_row_lg_medium + "px");
1432
1433                $("body:not(.rtl) .ct-row-full-width .col-offset-left-1660")
1434                    .parents(".elementor-container")
1435                    .css("padding-left", w_vc_row_lg_full_medium + "px");
1436                $("body:not(.rtl) .ct-row-full-width .col-offset-right-1660")
1437                    .parents(".elementor-container")
1438                    .css("padding-right", w_vc_row_lg_full_medium + "px");
1439
1440                $(".rtl .ct-row-full-width .col-offset-left-1660")
1441                    .parents(".elementor-container")
1442                    .css("padding-right", w_vc_row_lg_full_medium + "px");
1443                $(".rtl .ct-row-full-width .col-offset-right-1660")
1444                    .parents(".elementor-container")
1445                    .css("padding-left", w_vc_row_lg_full_medium + "px");
1446
1447                /* Fixed somes section - demo markerting */
1448                $(
1449                    "body:not(.rtl) .h9-section-03 .col-offset-right-1660 > .elementor-column-wrap > .elementor-widget-wrap"
1450                ).css("padding-right", w_vc_row_lg_medium + "px");
1451            }
1452            /* Custom Settings */
1453            if (window_width > 1660) {
1454                $(
1455                    "body:not(.rtl) .ct-column-offset-left-1660 > .elementor-column-wrap > .elementor-widget-wrap, body:not(.rtl) .ct-column-offset-left-1660 > .elementor-widget-wrap"
1456                ).css("margin-left", w_vc_row_lg_medium + "px");
1457                $(
1458                    "body:not(.rtl) .ct-column-offset-right-1660 > .elementor-column-wrap > .elementor-widget-wrap, body:not(.rtl) .ct-column-offset-right-1660 > .elementor-widget-wrap"
1459                ).css("margin-right", w_vc_row_lg_medium + "px");
1460
1461                $(
1462                    ".rtl .ct-column-offset-left-1660 > .elementor-column-wrap > .elementor-widget-wrap, .rtl .ct-column-offset-left-1660 > .elementor-widget-wrap"
1463                ).css("margin-right", w_vc_row_lg_medium + "px");
1464                $(
1465                    ".rtl .ct-column-offset-right-1660 > .elementor-column-wrap > .elementor-widget-wrap, .rtl .ct-column-offset-right-1660 > .elementor-widget-wrap"
1466                ).css("margin-left", w_vc_row_lg_medium + "px");
1467            }
1468        }, 10);
1469    }
1470
1471    /* ====================
1472     Scroll To Top
1473     ====================== */
1474    function consultio_scroll_to_top() {
1475        if (scroll_top < window_height) {
1476            $(".scroll-top").addClass("off").removeClass("on");
1477        }
1478        if (scroll_top > window_height) {
1479            $(".scroll-top").addClass("on").removeClass("off");
1480        }
1481    }
1482
1483    /* ====================
1484     WOW Animate
1485     ====================== */
1486    function consultio_wow_init() {
1487        var wow = new WOW({
1488            boxClass: "wow", // animated element css class (default is wow)
1489            animateClass: "animated", // animation css class (default is animated)
1490            offset: 0, // distance to the element when triggering the animation (default is 0)
1491            mobile: true, // trigger animations on mobile devices (default is true)
1492            live: true, // act on asynchronously loaded content (default is true)
1493            callback: function (box) {
1494                // the callback is fired every time an animation is started
1495                // the argument that is passed in is the DOM node being animated
1496            },
1497            scrollContainer: null, // optional scroll container selector, otherwise use window,
1498            resetAnimation: true, // reset animation on end (default is true)
1499        });
1500        wow.init();
1501    }
1502
1503    /* ====================
1504     Mouse Move
1505     ====================== */
1506    function consultio_mouse_move() {
1507        var follower, init, mouseX, mouseY, positionElement, timer;
1508
1509        follower = document.getElementById("ct-mouse-move");
1510
1511        mouseX = (event) => {
1512            return event.clientX;
1513        };
1514
1515        mouseY = (event) => {
1516            return event.clientY;
1517        };
1518
1519        positionElement = (event) => {
1520            var mouse;
1521            mouse = {
1522                x: mouseX(event),
1523                y: mouseY(event),
1524            };
1525
1526            follower.style.top = mouse.y + "px";
1527            return (follower.style.left = mouse.x + "px");
1528        };
1529
1530        timer = false;
1531
1532        window.onmousemove = init = (event) => {
1533            var _event;
1534            _event = event;
1535            return (timer = setTimeout(() => {
1536                return positionElement(_event);
1537            }, 0));
1538        };
1539    }
1540
1541    /* ====================
1542     WooComerce Quantity
1543     ====================== */
1544    function consultio_quantity_icon() {
1545        $("#content .quantity").append(
1546            '<span class="quantity-icon"><i class="quantity-down fa fa-sort-desc"></i><i class="quantity-up fa fa-sort-asc"></i></span>'
1547        );
1548        $(".quantity-up").on("click", function () {
1549            $(this)
1550                .parents(".quantity")
1551                .find('input[type="number"]')
1552                .get(0)
1553                .stepUp();
1554            $(this)
1555                .parents(".woocommerce-cart-form")
1556                .find(".actions .button")
1557                .removeAttr("disabled");
1558        });
1559        $(".quantity-down").on("click", function () {
1560            $(this)
1561                .parents(".quantity")
1562                .find('input[type="number"]')
1563                .get(0)
1564                .stepDown();
1565            $(this)
1566                .parents(".woocommerce-cart-form")
1567                .find(".actions .button")
1568                .removeAttr("disabled");
1569        });
1570        $(".woocommerce-cart-form .actions .button").removeAttr("disabled");
1571    }
1572
1573    $(document).ajaxComplete(function () {
1574        consultio_quantity_icon();
1575    });
1576
1577    /* =================
1578     Footer Fixed
1579     =================== */
1580    function consultio_footer_fixed() {
1581        setTimeout(function () {
1582            var h_footer =
1583                $(".fixed-footer .site-footer-custom").outerHeight() - 1;
1584            $(".fixed-footer .site-content").css(
1585                "margin-bottom",
1586                h_footer + "px"
1587            );
1588        }, 600);
1589    }
1590
1591    /* =================
1592    Portfolio
1593     =================== */
1594    function consultio_portfolio_ex() {
1595        window_width = $(window).width();
1596        var w_container = (window_width - 1170) / 2;
1597        var w_image_box = window_width - w_container - 415;
1598        if (window_width > 1199) {
1599            $(".ct-portfolio-external1 .ct-carousel-inner").css(
1600                "max-width",
1601                w_image_box + "px"
1602            );
1603        }
1604    }
1605
1606    /* =================
1607    GSAP Animation
1608     =================== */
1609    function consultio_gsap_animation() {
1610        gsap.registerPlugin(ScrollTrigger);
1611
1612        const viewAllBtn = document.querySelector(".view-all-blogs-btn");
1613        if (viewAllBtn) {
1614            viewAllBtn.style.setProperty("--bg-position", "-50%");
1615
1616            ScrollTrigger.create({
1617                trigger: ".view-all-blogs-btn",
1618                start: "top bottom",
1619                end: "bottom top",
1620                onUpdate: (self) => {
1621                    const xPos =
1622                        self.direction === 1
1623                            ? -50 - self.progress * 20
1624                            : -50 + self.progress * 20;
1625
1626                    viewAllBtn.style.setProperty("--bg-position", `${xPos}%`);
1627                },
1628            });
1629        }
1630
1631        // Banner 10
1632        const banner = document.querySelector('.ct-banner10');
1633        if (banner) {
1634            const images = banner.querySelectorAll('.ct-banner-image');
1635
1636            gsap.set(images, { opacity: 0, scale: 0.8 });
1637            gsap.set(images[0], { x: 100, y: 100 });
1638            gsap.set(images[1], { x: -100, y: 100 });
1639            gsap.set(images[2], { x: 100, y: -100 });
1640            gsap.set(images[3], { x: -100, y: -100 });
1641
1642            const tl = gsap.timeline({
1643                scrollTrigger: {
1644                    trigger: banner,
1645                    start: "top 80%",
1646                    toggleActions: "play none none reverse"
1647                }
1648            });
1649
1650            images.forEach((image, index) => {
1651                tl.to(image, {
1652                    duration: 0.8,
1653                    x: 0, y: 0,
1654                    opacity: 1, scale: 1,
1655                    ease: "back.out(1.7)"
1656                }, index * 0.4);
1657            });
1658
1659            images.forEach(image => {
1660                image.addEventListener('mouseenter', () => {
1661                    gsap.to(image, { duration: 0.3, scale: 1.05, ease: "power2.out" });
1662                });
1663                
1664                image.addEventListener('mouseleave', () => {
1665                    gsap.to(image, { duration: 0.3, scale: 1, ease: "power2.out" });
1666                });
1667            });
1668        }
1669    }
1670})(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.