PageSourceSearch

https://mentaleap.com/wp-content/themes/appilo/js/itsource-2.js?ver=6.2.1

js mentaleap.com collected 2026-10-02 16:03:36 UTC 11,501 bytes, 305 lines download raw bytes

1(function ($) {
2    "use strict";
3
4    var Itsource = {
5        init: function() {
6            this.Basic.init();
7        },
8
9        Basic: {
10            init: function() {
11                this.Animation();
12                this.StickeyHeader();
13                this.MobileMenu();
14                this.MianSlider();
15                this.BackgroundImage();
16                this.searchPopUp();
17                this.SideInner();
18                this.counterUp();
19                this.blogSlider();
20                this.FeatureSlider();
21                this.CirleProgress();
22                this.portfolioSlide();
23                this.testiSlider();
24                this.faqShadow();
25                this.ContactForm();
26
27            },
28            Animation: function (){
29                if($('.wow').length){
30                    var wow = new WOW(
31                        {
32                            boxClass:     'wow',
33                            animateClass: 'animated',
34                            offset:       0,
35                            mobile:       true,
36                            live:         true
37                        }
38                    );
39                    wow.init();
40                }
41            },
42            StickeyHeader: function (){
43                jQuery(window).on('scroll', function() {
44                    if (jQuery(window).scrollTop() > 100) {
45                        jQuery('.thx-it-header-area').addClass('sticky-header-overlay')
46                    } else {
47                        jQuery('.thx-it-header-area').removeClass('sticky-header-overlay')
48                    }
49                })
50            },
51            MobileMenu: function (){
52                $('.open_mobile_menu').on("click", function() {
53                    $('.mobile_menu_wrap').toggleClass("mobile_menu_on");
54                });
55                $('.open_mobile_menu').on('click', function () {
56                    $('body').toggleClass('mobile_menu_overlay_on');
57                });
58                if($('.mobile_menu-dropdown li.dropdown ul').length){
59                    $('.mobile_menu-dropdown li.dropdown').append('<div class="dropdown-btn"><span class="fa fa-angle-down"></span></div>');
60                    $('.mobile_menu-dropdown li.dropdown .dropdown-btn').on('click', function() {
61                        $(this).prev('ul').slideToggle(500);
62                    });
63                }
64                $(".dropdown-btn").on("click", function () {
65                    $(this).toggleClass("toggle-open");
66                });
67            },
68            MianSlider: function (){
69                $('#thx-it-slider-id').owlCarousel({
70                    items: 1,
71                    margin: 0,
72                    loop: true,
73                    nav: true,
74                    dots: false,
75                    navSpeed: 800,
76                    autoplay: true,
77                    navText:["<i class='fas fa-arrow-left'></i>","<i class='fas fa-arrow-right'></i>"],
78                    smartSpeed: 2000,
79                    animateOut: 'fadeOut',
80                    animateIn: 'fadeIn',
81                });
82            },
83            BackgroundImage: function (){
84                $('[data-background]').each(function() {
85                    $(this).css('background-image', 'url('+ $(this).attr('data-background') + ')');
86                });
87            },
88            searchPopUp: function (){
89                $('.search-btn').on('click', function() {
90                    $('.search-body').toggleClass('search-open');
91                });
92            },
93            SideInner: function (){
94                $('.open_side_area').on("click", function() {
95                    $('.wide_side_inner').toggleClass("wide_side_on");
96                });
97                $('.open_side_area').on('click', function () {
98                    $('body').toggleClass('body_overlay_on');
99                });
100            },
101            counterUp: function (){
102                if($('.thx-it-counter').length){
103                    $('.thx-it-counter').counterUp({
104                        delay: 50,
105                        time: 2000,
106                    });
107                }
108            },
109            FeatureSlider: function (){
110                $('.thx-it-feature-slide-item').owlCarousel({
111                    items: 1,
112                    loop: true,
113                    nav: false,
114                    dots: true,
115                    autoplay: true,
116                    navSpeed: 800,
117                    smartSpeed: 1000,
118                });
119            },
120
121            blogSlider: function (){
122                $('#blod_slide').owlCarousel({
123                    items: 1,
124                    loop: true,
125                    nav: true,
126                    dots: false,
127                    autoplay: false,
128                    navSpeed: 800,
129                    smartSpeed: 1000,
130                    animateOut: 'fadeOut',
131                    navText:["<i class='fas fa-arrow-left'></i>","<i class='fas fa-arrow-right'></i>"],
132                });
133            },
134
135            CirleProgress: function (){
136                if($('.count-box').length){
137                    $('.count-box').appear_c(function(){
138                        var $t = $(this),
139                            n = $t.find(".count-text").attr("data-stop"),
140                            r = parseInt($t.find(".count-text").attr("data-speed"), 10);
141                        if (!$t.hasClass("counted")) {
142                            $t.addClass("counted");
143                            $({
144                                countNum: $t.find(".count-text").text()
145                            }).animate({
146                                countNum: n
147                            }, {
148                                duration: r,
149                                easing: "linear",
150                                step: function() {
151                                    $t.find(".count-text").text(Math.floor(this.countNum));
152                                },
153                                complete: function() {
154                                    $t.find(".count-text").text(this.countNum);
155                                }
156                            });
157                        }
158                    },{accY: 0});
159                }
160                if($('.thx-it_2-dial').length){
161                    $('.thx-it_2-dial').appear_c(function(){
162                        var elm = $(this);
163                        var color = elm.attr('data-fgColor');
164                        var perc = elm.attr('value');
165                        var thickness = elm.attr('thickness');
166                        elm.knob({
167                            'value': 0,
168                            'min':0,
169                            'max':100,
170                            'skin':'tron',
171                            'readOnly':true,
172                            'thickness':.2,
173                            'dynamicDraw': true,
174                            'displayInput':false
175                        });
176                        $({value: 0}).animate({ value: perc }, {
177                            duration: 3500,
178                            easing: 'swing',
179                            progress: function () { elm.val(Math.ceil(this.value)).trigger('change');
180                            }
181                        });
182                    },{accY: 0});
183                }
184            },
185
186            portfolioSlide: function (){
187                $('#thx-it-portfolio-slide').owlCarousel({
188                    margin:30,
189                    responsiveClass:true,
190                    nav: true,
191                    dots: false,
192                    loop:true,
193                    center: true,
194                    lazyLoad : true,
195                    autoplay: false,
196                    navText:["<i class='fas fa-arrow-left'></i>","<i class='fas fa-arrow-right'></i>"],
197                    smartSpeed: 1000,
198                    responsive:{
199                        0:{
200                            items:1,
201                        },
202                        400:{
203                            items:1,
204                        },
205                        600:{
206                            items:1,
207                        },
208                        700:{
209                            items:2,
210                        },
211                        1000:{
212                            items:2,
213
214                        },
215                        1300:{
216                            items:3,
217
218                        },
219                        1900:{
220                            items:4,
221
222                        },
223                    },
224                })
225            },
226            testiSlider: function (){
227                $('#thx-it-testimonial-slide').owlCarousel({
228                    items:1,
229                    nav:false,
230                    dots: true,
231                    loop:true,
232                    margin:30,
233                    autoplay: false,
234                    smartSpeed:1000,
235                    autoplayTimeout:5000,
236                    autoplayHoverPause:true,
237                    animateIn: 'lightSpeedIn'
238                });
239            },
240            faqShadow: function (){
241                $(".faq_area1").on('click', function() {
242                    $(".faq_area1").removeClass("active");
243                    $(this).addClass("active");
244                });
245                $(".faq_area2").on('click', function() {
246                    $(".faq_area2").removeClass("active");
247                    $(this).addClass("active");
248                });
249            },
250            ContactForm: function (){
251                if($('#contact_form').length){
252                    $('#contact_form').validate({
253                        rules: {
254                            name: {
255                                required: true
256                            },
257                            email: {
258                                required: true,
259                            },
260                            phone: {
261                                required: true
262                            },
263                            subject: {
264                                required: true
265                            },
266                            message: {
267                                required: true
268                            }
269                        }
270                    });
271                }
272            },
273        }
274    };
275    jQuery(document).ready(function (){
276        Itsource.init();
277
278// menus sidebar
279        $('.open_side_area').on("click", function() {
280            $('.wide_side_inner').toggleClass("wide_side_on");
281        });
282        $('.open_side_area').on('click', function () {
283            $('body').toggleClass('body_overlay_on');
284        });
285
286// Mobile Menu
287        $('.open_mobile_menu').on("click", function() {
288            $('.mobile_menu_wrap').toggleClass("mobile_menu_on");
289        });
290        $('.open_mobile_menu').on('click', function () {
291            $('body').toggleClass('mobile_menu_overlay_on');
292        });
293        $(".dropdown-btn").on("click", function () {
294            $(this).toggleClass("toggle-open");
295        });
296
297
298
299
300
301    });
302
303})(jQuery);
304
305

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.