PageSourceSearch

https://baumschulberatung.org/client/theme/1.0/assets/js/custom.js

js baumschulberatung.org collected 2026-10-05 06:05:24 UTC 17,545 bytes, 653 lines download raw bytes

1(function($) {
2
3    'use strict';
4    // Mean Menu
5    $('.mean-menu').meanmenu({
6        meanScreenWidth: "991"
7    });
8
9    // Sticky, Go To Top JS
10    $(window).on('scroll', function() {
11        // Header Sticky JS
12        if ($(this).scrollTop() >200){
13            $('.navbar-area').addClass("is-sticky");
14        }
15        else{
16            $('.navbar-area').removeClass("is-sticky");
17        };
18    });
19
20    //PRE LOADER
21    $(window).on('load',function(){
22        var preload=$('.preloader');
23        if(preload.length>0){
24            preload.delay(800).fadeOut('slow');
25        }})
26
27
28    //odometer js
29    $('.odometer').appear(function(e) {
30        var odo = $(".odometer");
31        odo.each(function() {
32            var countNumber = $(this).attr("data-count");
33            $(this).html(countNumber);
34        });
35    });
36
37    //AOS animation
38    AOS.init({
39        once: true,
40        disable: function() {
41            var maxWidth = 900;
42            return window.innerWidth < maxWidth;
43        }
44    });
45
46    // Skill
47    jQuery('.skill-bar').each(function() {
48        jQuery(this).find('.progress-content').animate({
49            width:jQuery(this).attr('data-percentage')
50        },2000);
51
52        jQuery(this).find('.progress-number-mark').animate(
53            {left:jQuery(this).attr('data-percentage')},
54            {
55                duration: 2000,
56                step: function(now, fx) {
57                    var data = Math.round(now);
58                    jQuery(this).find('.percent').html(data + '%');
59                }
60            });
61    });
62
63    // Others Option For Responsive JS
64    $(".others-option-for-responsive .dot-menu").on("click", function(){
65        $(".others-option-for-responsive .container .container").toggleClass("active");
66    });
67
68    //banner-slider
69    $('.hero-slider').owlCarousel({
70        loop:true,
71        margin:0,
72        nav:true,
73        dots:false,
74        items:1,
75        autoplay:true,
76        smartSpeed: 1000,
77        animateOut: 'fadeOut',
78        animateIn: 'fadeIn',
79        autoplayHoverPause:false,
80        navText: [
81            '<i class="flaticon-left-arrow-2"></i>',
82            '<i class="flaticon-right-arrow-3"></i>',
83        ],
84    });
85
86    //Project Slider
87    $('.cfs-slider').owlCarousel({
88        loop:true,
89        margin:20,
90        nav:true,
91        dots:false,
92        items:3,
93        autoplay:true,
94        smartSpeed: 1000,
95        autoplayHoverPause:true,
96        navText: [
97            '<i class="flaticon-left-arrow"></i>',
98            '<i class="flaticon-right-arrow"></i>',
99        ],
100        responsive:{
101            0:{
102                items:1,
103            },
104            576:{
105                items:1,
106            },
107            768:{
108                items:2,
109            },
110            992:{
111                items:2,
112            },
113            1200:{
114                items:2,
115            },
116
117        }
118    });
119
120    //Project Slider
121    $('.project-slider').owlCarousel({
122        loop:true,
123        margin:20,
124        nav:true,
125        dots:false,
126        items:3,
127        autoplay:true,
128        smartSpeed: 1000,
129        autoplayHoverPause:true,
130        navContainer: '#owlNavProj',
131        navText: [
132            '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-left" viewBox="0 0 16 16">\n' +
133            '  <path fill-rule="evenodd" d="M15 8a.5.5 0 0 0-.5-.5H2.707l3.147-3.146a.5.5 0 1 0-.708-.708l-4 4a.5.5 0 0 0 0 .708l4 4a.5.5 0 0 0 .708-.708L2.707 8.5H14.5A.5.5 0 0 0 15 8z"/>\n' +
134            '</svg>',
135            '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-right" viewBox="0 0 16 16">\n' +
136            '  <path fill-rule="evenodd" d="M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8z"/>\n' +
137            '</svg>',
138        ],
139        responsive:{
140            0:{
141                items:1,
142            },
143            576:{
144                items:2,
145            },
146            768:{
147                items:3,
148            },
149            992:{
150                items:3,
151            },
152            1200:{
153                items:3,
154            },
155
156        }
157    });
158
159    //Project Slider2
160    $('.project-slider2').owlCarousel({
161        loop:true,
162        margin:20,
163        nav:true,
164        dots:false,
165        items:3,
166        autoplay:true,
167        smartSpeed: 1000,
168        autoplayHoverPause:true,
169        navText: [
170            '<i class="flaticon-left-arrow-2"></i>',
171            '<i class="flaticon-right-arrow-3"></i>',
172        ],
173        responsive:{
174            0:{
175                items:1,
176            },
177            576:{
178                items:1,
179            },
180            768:{
181                items:2,
182            },
183            992:{
184                items:2,
185            },
186            1200:{
187                items:2,
188            },
189
190        }
191    });
192
193    //Project Slider3
194    $('.work-slider').owlCarousel({
195        loop:true,
196        margin:20,
197        nav:true,
198        dots:false,
199        items:2,
200        autoplay:true,
201        smartSpeed: 1000,
202        autoplayHoverPause:true,
203        navText: [
204            '<i class="flaticon-left-arrow-2"></i>',
205            '<i class="flaticon-right-arrow-3"></i>',
206        ],
207        responsive:{
208            0:{
209                items:1,
210            },
211            576:{
212                items:2,
213            },
214            768:{
215                items:2,
216            },
217            992:{
218                items:3,
219            },
220            1200:{
221                items:4,
222            },
223
224        }
225    });
226
227    //Testimonials Slider
228    $('.testimonials-slider').owlCarousel({
229        loop:true,
230        margin:20,
231        nav:true,
232        dots:false,
233        items:2,
234        autoplay:true,
235        smartSpeed: 1000,
236        autoplayHoverPause:true,
237        navText: [
238            '<i class="flaticon-left-arrow-2"></i>',
239            '<i class="flaticon-right-arrow-3"></i>',
240        ],
241        responsive:{
242            0:{
243                items:1,
244            },
245            576:{
246                items:1,
247            },
248            768:{
249                items:1,
250            },
251            992:{
252                items:2,
253            },
254            1200:{
255                items:2,
256            },
257
258        }
259    });
260
261    //Testimonials Slider2
262    $('.testimonials-slider2').owlCarousel({
263        loop:true,
264        margin:10,
265        nav:true,
266        dots:false,
267        autoplay:true,
268        smartSpeed: 1000,
269        autoplayHoverPause:true,
270        navText: [
271            '<i class="flaticon-left-arrow-2"></i>',
272            '<i class="flaticon-right-arrow-3"></i>',
273        ],
274        responsive:{
275            0:{
276                items:1,
277            },
278            768:{
279                items:2,
280            },
281            992:{
282                items:3,
283            },
284            1200:{
285                items:3,
286            },
287
288        }
289    });
290
291    //Partner Slider
292    $('.partner-slider').owlCarousel({
293        loop:true,
294        margin:20,
295        nav:false,
296        dots:false,
297        autoplay:true,
298        smartSpeed: 1000,
299        autoplayHoverPause:true,
300        responsive:{
301            0:{
302                items:2,
303            },
304            576:{
305                items:3,
306            },
307            768:{
308                items:3,
309            },
310            992:{
311                items:4,
312            },
313            1200:{
314                items:5,
315            },
316
317        }
318    });
319
320    //Services-slider
321    $('.services-slider').owlCarousel({
322        loop:true,
323        margin:20,
324        nav:true,
325        dots:false,
326        autoplay:true,
327        smartSpeed: 1000,
328        autoplayHoverPause:true,
329        navText: [
330            '<i class="flaticon-left-arrow-2"></i>',
331            '<i class="flaticon-right-arrow-3"></i>',
332        ],
333        responsive:{
334            0:{
335                items:1,
336            },
337            576:{
338                items:2,
339            },
340            768:{
341                items:3,
342            },
343            992:{
344                items:3,
345            },
346            1200:{
347                items:4,
348            },
349
350        }
351    });
352
353    //Reviews-slider
354    $('.reviews-slider').owlCarousel({
355        loop:true,
356        margin:15,
357        nav:true,
358        center: true,
359        dots:false,
360        autoplay:true,
361        smartSpeed: 1000,
362        autoplayHoverPause:true,
363        navText: [
364            '<i class="flaticon-left-arrow-2"></i>',
365            '<i class="flaticon-right-arrow-3"></i>',
366        ],
367        responsive:{
368            0:{
369                items:1,
370            },
371            576:{
372                items:1,
373            },
374            768:{
375                items:2,
376                center: false,
377            },
378            992:{
379                items:3,
380            },
381            1200:{
382                items:3,
383            },
384
385        }
386    });
387
388    //Parner-slider2
389    $('.partner-slider2').owlCarousel({
390        loop:true,
391        margin:10,
392        nav:false,
393        dots:false,
394        autoplay:true,
395        smartSpeed: 1000,
396        autoplayHoverPause:true,
397        responsive:{
398            0:{
399                items:2,
400            },
401            576:{
402                items:3,
403            },
404            768:{
405                items:4,
406            },
407            992:{
408                items:5,
409            },
410            1200:{
411                items:6,
412            },
413
414        }
415    });
416
417    //Benefits-slider
418    $('.benefits-slider').owlCarousel({
419        loop:true,
420        margin:25,
421        nav:true,
422        dots:false,
423        autoplay:true,
424        smartSpeed: 1000,
425        autoplayHoverPause:true,
426        navText: [
427            '<i class="flaticon-left-arrow-2"></i>',
428            '<i class="flaticon-right-arrow-3"></i>',
429        ],
430        responsive:{
431            0:{
432                items:1,
433            },
434            576:{
435                items:2,
436            },
437            768:{
438                items:2,
439            },
440            992:{
441                items:3,
442            },
443            1200:{
444                items:3,
445            },
446
447        }
448    });
449
450    //Portfolio-slider
451    $('.portfolio-slider').owlCarousel({
452        loop:true,
453        margin:25,
454        nav:true,
455        dots:false,
456        autoplay:true,
457        smartSpeed: 1000,
458        autoplayHoverPause:true,
459        navText: [
460            '<i class="flaticon-left-arrow-2"></i>',
461            '<i class="flaticon-right-arrow-3"></i>',
462        ],
463        responsive:{
464            0:{
465                items:1,
466            },
467            576:{
468                items:1,
469            },
470            768:{
471                items:2,
472            },
473            992:{
474                items:2,
475            },
476            1200:{
477                items:2,
478            },
479
480        }
481    });
482
483    //* magnific popup
484    $(document).ready(function() {
485        $('.popup-youtube, .popup-vimeo, .popup-gmaps').magnificPopup({
486            disableOn: 100,
487            type: 'iframe',
488            mainClass: 'mfp-fade',
489            removalDelay: 160,
490            preloader: false,
491            fixedContentPos: false
492        });
493    });
494
495    $('.popup-gallery').magnificPopup({
496        delegate: 'a',
497        type: 'image',
498        tLoading: 'Loading image #%curr%...',
499        mainClass: 'mfp-img-mobile',
500        gallery: {
501            enabled: true,
502            navigateByImgClick: true,
503            preload: [0,1]
504        },
505        image: {
506            tError: '<a href="%url%">The image #%curr%</a> could not be loaded.',
507            titleSrc: function(item) {
508                return item.el.attr('title') + '<small>by Marsel Van Oosten</small>';
509            }
510        }
511    });
512
513    // MixItUp Shorting
514    $(function(){
515        $('.shorting').mixItUp();
516    });
517
518    // Pricing Switcher
519    let el = document.getElementById('filt-monthly');
520    if(el){
521        let e = document.getElementById("filt-monthly"),
522            d = document.getElementById("filt-yearly"),
523            t = document.getElementById("switcher"),
524            m = document.getElementById("monthly"),
525            y = document.getElementById("yearly");
526        e.addEventListener("click", function(){
527            t.checked = false;
528            e.classList.add("toggler--is-active");
529            d.classList.remove("toggler--is-active");
530            m.classList.remove("hide");
531            y.classList.add("hide");
532        });
533        d.addEventListener("click", function(){
534            t.checked = true;
535            d.classList.add("toggler--is-active");
536            e.classList.remove("toggler--is-active");
537            m.classList.add("hide");
538            y.classList.remove("hide");
539        });
540        t.addEventListener("click", function(){
541            d.classList.toggle("toggler--is-active");
542            e.classList.toggle("toggler--is-active");
543            m.classList.toggle("hide");
544            y.classList.toggle("hide");
545        });
546    }
547
548    // Tabs
549    $('.tab-menu li a').on('click', function(){
550        var target = $(this).attr('data-rel');
551        $('.tab-menu li a').removeClass('active');
552        $(this).addClass('active');
553        $("#"+target).fadeIn('slow').siblings(".tab-box").hide();
554        return false;
555    });
556
557    function callbackFunction (resp) {
558        if (resp.result === "success") {
559            formSuccessSub();
560        }
561        else {
562            formErrorSub();
563        }
564    }
565    function formSuccessSub(){
566        $(".newsletter-form")[0].reset();
567        submitMSGSub(true, "Thank you for subscribing!");
568        setTimeout(function() {
569            $("#validator-newsletter, #validator-newsletter-2").addClass('hide');
570        }, 4000)
571    }
572    function formErrorSub(){
573        $(".newsletter-form").addClass("animated shake");
574        setTimeout(function() {
575            $(".newsletter-form").removeClass("animated shake");
576        }, 1000)
577    }
578    function submitMSGSub(valid, msg){
579        if(valid){
580            var msgClasses = "validation-success";
581        } else {
582            var msgClasses = "validation-danger";
583        }
584        $("#validator-newsletter, #validator-newsletter-2").removeClass().addClass(msgClasses).text(msg);
585    }
586
587    // FAQ Accordion
588    $('.accordion').find('.accordion-title').on('click', function(){
589        $(this).toggleClass('active');
590        $(this).next().slideToggle('fast');
591        $('.accordion-content').not($(this).next()).slideUp('fast');
592        $('.accordion-title').not($(this)).removeClass('active');
593    });
594
595
596    // Count Time
597    function makeTimer() {
598        var endTime = new Date("September 20, 2023 17:00:00 PDT");
599        var endTime = (Date.parse(endTime)) / 1000;
600        var now = new Date();
601        var now = (Date.parse(now) / 1000);
602        var timeLeft = endTime - now;
603        var days = Math.floor(timeLeft / 86400);
604        var hours = Math.floor((timeLeft - (days * 86400)) / 3600);
605        var minutes = Math.floor((timeLeft - (days * 86400) - (hours * 3600 )) / 60);
606        var seconds = Math.floor((timeLeft - (days * 86400) - (hours * 3600) - (minutes * 60)));
607        if (hours < "10") { hours = "0" + hours; }
608        if (minutes < "10") { minutes = "0" + minutes; }
609        if (seconds < "10") { seconds = "0" + seconds; }
610        $("#days").html(days + "<span>Days</span>");
611        $("#hours").html(hours + "<span>Hours</span>");
612        $("#minutes").html(minutes + "<span>Minutes</span>");
613        $("#seconds").html(seconds + "<span>Seconds</span>");
614    }
615    setInterval(function() { makeTimer(); }, 0);
616
617    // Go to Top
618    $(window).on('scroll', function(){
619        var scrolled = $(window).scrollTop();
620        if (scrolled > 300) $('.go-top').addClass('active');
621        if (scrolled < 300) $('.go-top').removeClass('active');
622    });
623    // Click Event
624    $('.go-top').on('click', function() {
625        $("html, body").animate({ scrollTop: "0" },  500);
626    });
627
628})(jQuery);
629try {
630    // function to set a given theme/color-scheme
631    function setTheme(themeName) {
632        localStorage.setItem('irise_theme', themeName);
633        document.documentElement.className = themeName;
634    }
635    // function to toggle between light and dark theme
636    function toggleTheme() {
637        if (localStorage.getItem('irise_theme') === 'theme-dark') {
638            setTheme('theme-light');
639        } else {
640            setTheme('theme-dark');
641        }
642    }
643    // Immediately invoked function to set the theme on initial load
644    (function () {
645        if (localStorage.getItem('irise_theme') === 'theme-dark') {
646            setTheme('theme-dark');
647            document.getElementById('slider').checked = false;
648        } else {
649            setTheme('theme-light');
650            document.getElementById('slider').checked = true;
651        }
652    })();
653} catch (err) {}

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.