PageSourceSearch

https://breathoflife.tv/wp-content/themes/actavista/assets/js/script.js?ver=7.1.2

js breathoflife.tv collected 2026-10-02 15:34:35 UTC 21,537 bytes, 718 lines download raw bytes

1jQuery("body").append("<div class='loading'></div>");
2
3jQuery(window).on('load', function () {
4    "use strict";
5    jQuery(".loading, .page-loader").fadeOut();
6});
7
8jQuery(window).on('load', function () {
9    "use strict";
10    jQuery(".se-pre-con").fadeOut("slow");
11
12});
13//--- document ready 
14
15jQuery(document).ready(function ($) {
16
17    "use strict";
18    $(document).on('webinane_donation_modal_opened', function (app) {
19        $('.donation-wrapper-content.webinane-donation-modal').addClass('active');
20        $('.donation-wrapper-content.webinane-donation-modal').perfectScrollbar();
21    });
22
23    $(document).on('webinane_donation_modal_closed', function (app) {
24        $('.donation-wrapper-content.webinane-donation-modal').removeClass('active');
25    })
26    // 	$('.donation-modal-box-callerrrr').on('click', function(){
27    // 	    $('.donation-wrapper-content.webinane-donation-modal').addClass('active');
28    // 	});
29    // 	$('.donation-popup .close').on('click', function(){
30    // 	    $('.donation-wrapper-content.webinane-donation-modal').removeClass('active');
31    // 	    $('html').removeClass('modalOpen');
32    // 	});
33
34
35    //===== Wow Animation Setting =====//
36    var wow = new WOW({
37        boxClass: 'wow', // default
38        animateClass: 'animated', // default
39        offset: 0, // default
40        mobile: true, // default
41        live: true // default
42    });
43
44    wow.init();
45
46    // search for header style 2
47
48    $('.search-btn').on("click", function () {
49        $('.search-from').addClass('active animated slideInDown faster');
50        return false;
51    });
52    $('.search-close-btn').on("click", function () {
53        $('.search-from').removeClass('active slideInDown faster');
54        return false;
55    });
56
57    // Responsive Search
58
59    $('.res-searc-btn').on("click", function () {
60        $('.res-search-popup').addClass('active animated slideInDown faster');
61        return false;
62    });
63
64    $('.res-search-close-btn').on("click", function () {
65        $('.res-search-popup').removeClass('active slideInDown faster');
66        return false;
67    });
68
69
70
71    // Responsive nav dropdowns
72    $('.res-menu-btn').on('click', function () {
73        $('.res-menu-wrapper').addClass('slidein');
74        return false;
75    });
76    $('.res-clos-btn').on('click', function () {
77        $('.res-menu-wrapper').removeClass('slidein');
78        return false;
79    });
80    $('.res-menu-list ul li.menu-item-has-children > a, .menus-wraper > ul li.menu-item-has-children > a').on('click', function () {
81        $(this).parent().siblings().children('ul').slideUp();
82        $(this).parent().siblings().removeClass('active');
83        $(this).parent().children('ul').slideToggle();
84        $(this).parent().toggleClass('active');
85        return false;
86    });
87
88
89    // Responsive Login Popup
90    $('.res-login-btn').on('click', function () {
91        $('.res-login-popup').addClass('slidein');
92        return false;
93    });
94    $('.popup-clos-btn').on('click', function () {
95        $('.res-login-popup').removeClass('slidein');
96        return false;
97    });
98
99
100    // Humburger menu
101
102    $('.humbrgr-menu-btn').on('click', function () {
103        $('.menus-wraper').addClass('menu-slide');
104
105    });
106
107    $('.close-menu-btn').on('click', function () {
108        $('.menus-wraper').removeClass('menu-slide');
109
110    });
111
112    // search form
113    $('.serch-btn').on('click', function () {
114        $('form.search').addClass('active');
115
116    });
117
118    $('.clos-sform').on('click', function () {
119        $('form.search').removeClass('active');
120
121    });
122
123
124    // sticky header 1
125
126    $(window).scroll(function () {
127        if ($(this).scrollTop() > 1) {
128            $('.header-style2-pos').addClass("sticky animated slideInDown");
129        } else {
130            $('.header-style2-pos').removeClass("sticky animated slideInDown");
131        }
132    });
133
134
135    // sticky header 2
136
137    $(window).scroll(function () {
138        if ($(this).scrollTop() > 1) {
139            $('.header_2.sticky_header, .menu-area.sticky_header').addClass("sticky animated slideInDown");
140        } else {
141            $('.header_2.sticky_header, .menu-area.sticky_header').removeClass("sticky animated slideInDown");
142        }
143    });
144
145
146    // sticky header 3
147
148    $(window).scroll(function () {
149        if ($(this).scrollTop() > 1) {
150            $('.header_3').addClass("sticky animated slideInDown");
151        } else {
152            $('.header_3').removeClass("sticky animated slideInDown");
153        }
154    });
155
156    jQuery(".filter").on("click", function(){
157        jQuery(".adv-search, .theme-layout").addClass("filter-on");
158        return false;
159    });
160    
161    jQuery("html,body").on("click", function(){
162        jQuery(".adv-search, .theme-layout").removeClass("filter-on");  
163    });
164    // header style 1
165
166    /*if ($('.header_1').length > 0) { 
167        $('.page-top').css({"margin-top": "-15.4%", "z-index": "2"});
168    }*/
169
170    /*if ($('.page-top').length > 0) { 
171        $('.header-bg-image').css({"height": "400px"});
172    }*/
173
174    /*
175    	if ($(window).width() > 1380) {
176    	    if ($('.page-top').length > 0) { 
177    		    $('.header-bg-image').css({"height": "400px"});
178    		}
179    	}
180    	else {
181    		if ($('.page-top').length > 0) { 
182    	    	$('.header-bg-image').css({"height": "320px"});
183    	    }
184    	}*/
185
186
187    //parallax
188    if ($.isFunction($.fn.scrolly)) {
189        $('.parallax').scrolly({
190            bgParallax: true
191        });
192    }
193
194
195    //counter for funfacts
196    if ($.isFunction($.fn.counterUp)) {
197        $('.counter').counterUp({
198            delay: 10,
199            time: 1000
200        });
201    }
202
203
204    //chosen select plugin
205    if ($.isFunction($.fn.chosen)) {
206        $("select").chosen();
207    }
208
209    //select plugin
210    if ($.isFunction($.fn.select2)) {
211        $('.theme-select').select2();
212    }
213
214    //===== owl carousel  =====//
215    if ($.isFunction($.fn.owlCarousel)) {
216        $('.gallery-caro').owlCarousel({
217            items: 1,
218            loop: true,
219            margin: 0,
220            autoplay: true,
221            autoplayTimeout: 1500,
222            smartSpeed: 1000,
223            autoplayHoverPause: true,
224            nav: true,
225            dots: false,
226            animateIn: 'fadeIn',
227            animateOut: 'fadeOut',
228            responsiveClass: true,
229            responsive: {
230                0: {
231                    items: 1,
232                },
233                600: {
234                    items: 1,
235
236                },
237                1000: {
238                    items: 1,
239                }
240            }
241
242        });
243
244        $('.news-carousel').owlCarousel({
245            items: 1,
246            loop: true,
247            margin: 0,
248            autoplay: true,
249            autoplayTimeout: 1500,
250            smartSpeed: 1000,
251            autoplayHoverPause: true,
252            nav: true,
253            dots: false,
254            animateIn: 'fadeIn',
255            animateOut: 'fadeOut',
256            responsiveClass: true,
257            responsive: {
258                0: {
259                    items: 1,
260                },
261                600: {
262                    items: 1,
263
264                },
265                1000: {
266                    items: 1,
267                }
268            }
269
270        });
271
272
273        $('.camps-caro').owlCarousel({
274            items: 1,
275            loop: false,
276            margin: 0,
277            autoplay: false,
278            autoplayTimeout: 1500,
279            smartSpeed: 1500,
280            autoplayHoverPause: true,
281            nav: true,
282            dots: false,
283            onInitialized: counter, //When the plugin has initialized.
284            onTranslated: counter, //When the translation of the stage has 
285            responsiveClass: true,
286            responsive: {
287                0: {
288                    items: 1,
289                },
290                600: {
291                    items: 1,
292
293                },
294                1000: {
295                    items: 1,
296                }
297            }
298
299        });
300
301        function counter(event) {
302            // var element = event.target; // DOM element, in this example .owl-carousel
303            // var items = event.item.count; // Number of items
304            // var item = event.item.index + 1; // Position of the current item
305
306            // it loop is true then reset counter from 1
307            // if (item > items) {
308            //     item = item - items
309            // }
310            // $('#camps-info').html("<span>" + item + "</span>" + " / " + items)
311        }
312
313        /*$('.camps-caro').on('changed.owl.carousel', function(e) {
314          if (!e.namespace || e.property.name != 'position') return
315          $('#camps-info').html("<span>"+e.item.index+"</span>" + '/' + e.item.count)
316        });*/
317
318
319        //featured caro
320
321        const $owl1 = $(".owl-1");
322        const $owl2 = $(".owl-2");
323        let flag = false;
324        let duration = 300;
325
326        $owl1
327            .owlCarousel({
328                items: 1,
329                lazyLoad: false,
330                loop: false,
331                margin: 10,
332                nav: false,
333                autoplay: true,
334                dots: false,
335                autoplayTimeout: 2500,
336                smartSpeed: 2000,
337                responsiveClass: true
338            })
339            .on("changed.owl.carousel", function (e) {
340                if (!flag) {
341                    flag = true;
342                 //   console.log(e.item.index);
343                    $owl2
344                        .find(".owl-item")
345                        .removeClass("current")
346                        .eq(e.item.index)
347                        .addClass("current");
348                    if (
349                        $owl2
350                        .find(".owl-item")
351                        .eq(e.item.index)
352                        .hasClass("active")
353                    ) {
354
355                    } else {
356                        $owl2.trigger("to.owl.carousel", [e.item.index, duration, true]);
357                    }
358                    flag = false;
359                }
360            });
361
362        $owl2
363            .on("initialized.owl.carousel", function () {
364                $owl2
365                    .find(".owl-item")
366                    .eq(0)
367                    .addClass("current");
368            })
369            .owlCarousel({
370                items: 3,
371                lazyLoad: false,
372                loop: false,
373                dots: false,
374                margin: 10,
375                nav: false,
376                responsiveClass: true,
377                responsive: {
378                    320: {
379                        items: 2,
380                        nav: false,
381                        dots: false,
382                    },
383                    360: {
384                        items: 2,
385                        nav: false,
386                        dots: false,
387                    },
388                    375: {
389                        items: 2,
390                        nav: false,
391                        dots: false,
392                    },
393                    414: {
394                        items: 2,
395                        nav: false,
396                        dots: false,
397                    },
398                    480: {
399                        items: 2,
400                        nav: false,
401                        dots: false,
402                    },
403                    640: {
404                        items: 3,
405                        dots: false,
406                        nav: false,
407                    },
408                    1000: {
409                        items: 3,
410                        dots: false,
411                        nav: false,
412                    }
413                }
414            })
415            .on("click", ".owl-item", function (e) {
416                e.preventDefault();
417                var number = $(this).index();
418                $owl1.trigger("to.owl.carousel", [number, duration, true]);
419            });
420
421        //services caro
422
423        $('.our-clients').owlCarousel({
424            loop: true,
425            margin: 20,
426            autoplay: false,
427            autoplayTimeout: 1500,
428            smartSpeed: 1000,
429            autoplayHoverPause: true,
430            nav: false,
431            dots: false,
432            responsiveClass: true,
433            responsive: {
434                0: {
435                    items: 1,
436                    nav: false
437                },
438                360: {
439                    items: 2,
440
441                },
442                640: {
443                    items: 2,
444
445                },
446                768: {
447                    items: 3,
448
449                },
450                1000: {
451                    items: 5,
452                }
453            }
454
455        });
456
457        /* media sponsor carousel */
458        $('.media-sponsors').owlCarousel({
459            loop: true,
460            margin: 30,
461            autoplay: false,
462            autoplayTimeout: 1500,
463            smartSpeed: 1000,
464            autoplayHoverPause: true,
465            nav: false,
466            dots: false,
467            responsiveClass: true,
468            responsive: {
469                0: {
470                    items: 2,
471                    nav: false
472                },
473                600: {
474                    items: 4,
475
476                },
477                1000: {
478                    items: 4,
479                }
480            }
481
482        });
483    }
484
485
486    //===== Slick Carousel =====//
487    if ($.isFunction($.fn.slick)) {
488        //=== Speech Nav Carousel ===//
489        $('.speeches-nav-car').slick({
490            slidesToShow: 1,
491            slidesToScroll: 1,
492            dots: false,
493            arrows: true,
494            centerPadding: '0',
495            focusOnSelect: true,
496            vertical: false,
497            infinite: false,
498            prevArrow: "<button type='button' class='slick-prev brd-rd30'><i class='fa fa-long-arrow-left'></i></button>",
499            nextArrow: "<button type='button' class='slick-next brd-rd30'><i class='fa fa-long-arrow-right'></i></button>",
500            responsive: [{
501                    breakpoint: 768,
502                    settings: {
503                        slidesToShow: 1,
504                        slidesToScroll: 1,
505                        arrows: true
506                    }
507                },
508                {
509                    breakpoint: 480,
510                    settings: {
511                        slidesToShow: 1,
512                        slidesToScroll: 1,
513                        arrows: true
514                    }
515                }
516            ]
517        });
518
519        //event carousel  
520        /*$('.slider-for-event').slick({
521        	slidesToShow: 1,
522        	slidesToScroll: 1,
523        	arrows: false,
524        	slide: 'li',
525        	fade: false,
526        	asNavFor: '.slider-nav-event'
527        });*/
528
529        /*$('.slider-nav-event').slick({
530        	slidesToShow: 3,
531        	slidesToScroll: 1,
532        	asNavFor: '.slider-for-event',
533        	dots: false,
534        	arrows: true,
535        	slide: 'li',
536        	vertical: false,
537        	centerMode: true,
538        	centerPadding: '0',
539        	focusOnSelect: true,
540        	responsive: [
541        	{
542        		breakpoint: 769,
543        		settings: {
544        			slidesToShow: 1,
545        			slidesToScroll: 1,
546        			infinite: true,
547        			vertical: false,
548        			centerMode: true,
549        			dots: false,
550        			arrows: true
551        		}
552        	},
553        	{
554        		breakpoint: 641,
555        		settings: {
556        			slidesToShow: 1,
557        			slidesToScroll: 1,
558        			infinite: true,
559        			vertical: true,
560        			centerMode: true,
561        			dots: false,
562        			arrows: true
563        		}
564        	}
565        	]
566        });  */
567
568    }
569
570    // gallery images carousel 
571
572    //---sticky social side bar
573
574    $('.sharing-sidebar').css('opacity', 0);
575    $(window).scroll(function () {
576        if ($(this).scrollTop() > 300) {
577            $('.sharing-sidebar').css('opacity', 1);
578            $('.sharing-sidebar').addClass('animated slideInLeft');
579        } else {
580            $('.sharing-sidebar').removeClass('animated slideInLeft');
581            $('.sharing-sidebar').css('opacity', 0);
582        }
583    });
584
585    //--- bootstrap tooltip	
586    $(function () {
587        $('[data-toggle="tooltip"]').tooltip();
588    });
589
590    //scrollbar plugin
591    if ($.isFunction($.fn.perfectScrollbar)) {
592        $('.responsive-menu').perfectScrollbar();
593    }
594
595    // donation butttons
596    $('.donation-amounts > a').on("click", function () {
597        $('.donation-amounts > a').removeClass('active');
598        $(this).addClass('active');
599        return false;
600
601    });
602
603
604    // Sticky Sidebar & header
605    if ($(window).width() < 769) {
606        jQuery(".sidebar").children().removeClass("stick-widget");
607    }
608
609    if ($.isFunction($.fn.stick_in_parent)) {
610        $('.stick-widget').stick_in_parent({
611            parent: '#page-contents',
612            offset_top: 60,
613        });
614
615    }
616
617
618    //----- popup display on window load
619    function delay() {
620        jQuery(".popup-wraper").fadeIn();
621    }
622
623    window.setTimeout(delay, 2000);
624    jQuery('.wraper-close').on('click', function () {
625        jQuery('.popup-wraper').addClass('closed');
626        return false;
627    });
628    jQuery('.quickpopup').on("click", function () {
629        var this_ = jQuery(this);
630        var productid = this_.data('id');
631        var data = 'action=actavista_ajax&subaction=product_quick_view&id=' + productid;
632        jQuery.ajax({
633            type: 'POST',
634            url: actavista_data.ajaxurl,
635            data: data,
636            beforeSend: function () {
637                this_.children('i').removeClass('fa fa-search');
638                this_.children('i').addClass('fa fa-spinner fa-spin');
639            },
640            success: function (response) {
641                jQuery('#quickview').html(response);
642                jQuery('#quickview').addClass('popup_show');
643                this_.children('i').removeClass('fa fa-spinner fa-spin');
644                this_.children('i').addClass('fa fa-search');
645            }
646        });
647        return false;
648    });
649    jQuery('.close-quickview').on("click", function () {
650        jQuery('#quickview').removeClass('popup_show');
651        return false;
652    });
653
654    //overlay product load more
655    $("#overlay .load-mor a").on("click", function () {
656        var cal_event = "button";
657        var tthis = this;
658        return posts_sets(cal_event, tthis);
659    });
660    $("#overlay #nav-tab li a").on("click", function () {
661        var load_cat = jQuery("#overlay #nav-tab a.active").attr("href");
662        var present_post = jQuery(load_cat + " .fullwidth").children().size();
663        if (present_post == 0) {
664            var cal_event = "tab";
665            return posts_sets(cal_event);
666        }
667    });
668
669
670}); //document ready end
671
672function posts_sets(cal_event, tthis = "") {
673    var load_data = jQuery("#overlay .load-mor > a").attr("data-args");
674    var load_data_q = jQuery("#overlay .load-mor > a").attr("data-q");
675    var load_cat = jQuery("#overlay #nav-tab a.active").attr("href");
676    /*if (cal_event == "button") {
677        var load_data_offset = jQuery(tthis).attr("data-offset");
678    } else {*/
679    var load_data_offset = jQuery(load_cat + " .load-mor a").attr("data-offset");
680    /*}*/
681    var btn_n = jQuery("#overlay .load-mor a").attr("title");
682    var present_post = jQuery(load_cat + " .fullwidth").children().size();
683    var load_max = jQuery(load_cat + " .load-mor a").attr("data-max");
684    jQuery.ajax({
685        type: "POST",
686        url: actavista_data.ajaxurl,
687        data: {
688            action: "actavista_ajax",
689            subaction: "loadmore_overlay_product",
690            data_args: load_data,
691            data_q: load_data_q,
692            data_c: load_cat,
693            btn_n: btn_n,
694            offset: load_data_offset,
695            cal_event: cal_event,
696            max: load_max,
697            post_present: present_post,
698        },
699        beforeSend: function () {
700            jQuery("body").find(".tab-pane").children(".loader").html("<span>LOADING</span><ul class='clouds'><li class='cloud'></li><li class='cloud'></li><li class='cloud'></li><li class='cloud'></li><li class='cloud'></li><li class='cloud'></li><li class='cloud'></li></ul></div>");
701        },
702        success: function (res) {
703            jQuery("body").find(".tab-pane").children(".loader").html('');
704            if (res.data != "") {
705                jQuery("#" + res.tab_id + " .fullwidth").append(res.data);
706                jQuery("#" + res.tab_id + " .load-mor").html(res.button);
707            } else {
708                jQuery("#" + res.tab_id + " .load-mor").html(res.button);
709            }
710            setTimeout(function () {
711                jQuery("#" + res.tab_id + " .fullwidth").isotope("destroy");
712                jQuery("#" + res.tab_id + " .fullwidth").isotope({
713                    masonry: {}
714                });
715            }, 1000);
716        }
717    });
718} 

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.