var THEMEMASCOT = {}; (function($) { "use strict"; /* ---------------------------------------------------------------------- */ /* --------------------------- Start Demo Switcher --------------------- */ /* ---------------------------------------------------------------------- */ var showSwitcher = false; var $body = $('body'); var $style_switcher = $('#style-switcher'); if( !$style_switcher.length && showSwitcher ) { $.ajax({ url: "color-switcher/style-switcher.html", success: function (data) { $body.append(data); }, dataType: 'html' }); } /* ---------------------------------------------------------------------- */ /* ----------------------------- En Demo Switcher ---------------------- */ /* ---------------------------------------------------------------------- */ THEMEMASCOT.isRTL = { check: function() { if( $( "html" ).attr("dir") === "rtl" ) { return true; } else { return false; } } }; THEMEMASCOT.isLTR = { check: function() { if( $( "html" ).attr("dir") !== "rtl" ) { return true; } else { return false; } } }; //Hide Loading Box (Preloader) function handlePreloader() { if($('.preloader').length){ $('.preloader').delay(200).fadeOut(500); } } //Update Header Style and Scroll to Top function headerStyle() { if($('.main-header').length){ var windowpos = $(window).scrollTop(); var siteHeader = $('.header-style-one'); var scrollLink = $('.scroll-to-top'); var sticky_header = $('.main-header .sticky-header'); if (windowpos > 100) { sticky_header.addClass("fixed-header animated slideInDown"); scrollLink.fadeIn(300); }else { sticky_header.removeClass("fixed-header animated slideInDown"); scrollLink.fadeOut(300); } if (windowpos > 1) { siteHeader.addClass("fixed-header"); }else { siteHeader.removeClass("fixed-header"); } } } headerStyle(); //Submenu Dropdown Toggle if($('.main-header li.dropdown ul').length){ $('.main-header .navigation li.dropdown').append(''); } //Mobile Nav Hide Show if($('.mobile-menu').length){ var mobileMenuContent = $('.main-header .main-menu .navigation').html(); $('.mobile-menu .navigation').append(mobileMenuContent); $('.sticky-header .navigation').append(mobileMenuContent); $('.mobile-menu .close-btn').on('click', function() { $('body').removeClass('mobile-menu-visible'); }); //Dropdown Button $('.mobile-menu li.dropdown .dropdown-btn').on('click', function() { $(this).prev('ul').slideToggle(500); $(this).toggleClass('active'); }); //Menu Toggle Btn $('.mobile-nav-toggler').on('click', function() { $('body').addClass('mobile-menu-visible'); }); //Menu Toggle Btn $('.mobile-menu .menu-backdrop, .mobile-menu .close-btn').on('click', function() { $('body').removeClass('mobile-menu-visible'); }); } //Header Search if($('.search-btn').length) { $('.search-btn').on('click', function() { $('.main-header').addClass('moblie-search-active'); }); $('.close-search, .search-back-drop').on('click', function() { $('.main-header').removeClass('moblie-search-active'); }); } //Service Block Hover if ($('.service-block').length) { var $service_block = $('.service-block .inner-box'); $($service_block).on('mouseenter', function (e) { $(this).find('.content-box .inner').stop().slideDown(400); return false; }); $($service_block).on('mouseleave', function (e) { $(this).find('.content-box .inner').stop().slideUp(400); return false; }); } //Banner Carousel if ($('.banner-carousel').length) { $('.banner-carousel').owlCarousel({ rtl: THEMEMASCOT.isRTL.check(), animateOut: 'fadeOut', animateIn: 'fadeIn', loop:true, margin:0, nav:true, smartSpeed: 500, autoHeight: true, autoplay: true, autoplayTimeout:10000, navText: [ '', '' ], responsive:{ 0:{ items:1 }, 600:{ items:1 }, 1024:{ items:1 }, } }); } // Projects Carousel if ($('.projects-carousel').length) { $('.projects-carousel').owlCarousel({ rtl: THEMEMASCOT.isRTL.check(), loop:true, margin:30, items:1, smartSpeed: 700, nav: true, navText: ['', ''], responsive:{ 0:{ items:1 }, 590:{ items:2 }, 768:{ items:2 }, 1024:{ items:3 }, 1680:{ items:5 } } }) } // Projects Carousel if ($('.projects-carousel-three').length) { $('.projects-carousel-three').owlCarousel({ rtl: THEMEMASCOT.isRTL.check(), loop:true, margin:30, items:1, smartSpeed: 700, nav: true, responsive:{ 0:{ items:1 }, 590:{ items:2 }, 768:{ items:2 }, 1024:{ items:4 }, 1680:{ items:5 } } }) } // Projects Carousel if ($('.projects-carousel-five').length) { $('.projects-carousel-five').owlCarousel({ rtl: THEMEMASCOT.isRTL.check(), loop:true, margin:30, items:1, smartSpeed: 700, nav: true, responsive:{ 0:{ items:1 }, 590:{ items:2 }, 768:{ items:2 }, 1024:{ items:3 }, 1680:{ items:4 } } }) } // Project Carousel if ($('.projects-carousel-six').length) { $('.projects-carousel-six').owlCarousel({ rtl: THEMEMASCOT.isRTL.check(), loop: false, margin: 30, nav: false, items: 1, smartSpeed: 700, autoplay: true, navText: ['', ''], responsive: { 0: { items: 1 }, 768: { items: 2 }, 1024: { items: 2 }, 1200: { items: 3 }, 1400: { items: 4 }, } }); } // Project Carousel if ($('.projects-carousel-seven').length) { $('.projects-carousel-seven').owlCarousel({ rtl: THEMEMASCOT.isRTL.check(), loop: false, margin: 30, nav: false, items: 1, smartSpeed: 700, autoplay: true, navText: [], responsive: { 0: { items: 1 }, 768: { items: 2 }, 1024: { items: 2 }, 1200: { items: 3 }, 1400: { items: 3 }, } }); } //Services-carousel if ($('.services-carousel').length) { $('.services-carousel').owlCarousel({ rtl: THEMEMASCOT.isRTL.check(), loop: false, margin: 30, nav: false, smartSpeed: 500, autoHeight: true, autoplay: true, autoplayTimeout: 10000, navText: ['', ''], responsive: { 0: { items: 1 }, 768: { items: 2 }, 1024: { items: 2 }, 1200: { items: 3 }, 1400: { items: 3 }, } }); } //Services-carousel Two if ($('.services-carousel-two').length) { var swiper = new Swiper(".services-carousel-two", { slidesPerView: 5, loop: true, spaceBetween: 8, freeMode: true, breakpoints: { 320: { slidesPerView: 2, }, 425: { slidesPerView: 3, }, 600: { slidesPerView: 4, }, 768: { slidesPerView: 5, }, } }); } // Services Carousel if ($('.services-carousel-three').length) { $('.services-carousel-three').owlCarousel({ rtl: THEMEMASCOT.isRTL.check(), loop: false, margin: 10, nav: false, items: 1, smartSpeed: 700, autoplay: true, navText: ['', ''], responsive: { 0: { items: 1 }, 768: { items: 1 }, 1024: { items: 2 }, 1200: { items: 3 }, } }); } // Services Carousel if ($('.services-carousel-six').length) { $('.services-carousel-six').owlCarousel({ rtl: THEMEMASCOT.isRTL.check(), loop: false, margin: 10, nav: false, items: 1, smartSpeed: 700, autoplay: false, navText: ['', ''], responsive: { 0: { items: 1 }, 768: { items: 2 }, 1024: { items: 2 }, 1200: { items: 3 }, } }); } // Testimonial Carousel if ($('.testimonial-carousel').length) { $('.testimonial-carousel').owlCarousel({ rtl: THEMEMASCOT.isRTL.check(), loop: true, margin: 30, nav: true, items: 1, smartSpeed: 700, autoplay: false, navText: ['', ''], responsive: { 0: { items: 1 }, 768: { items: 2 }, 1199: { items: 3 }, } }); } // Testimonial Carousel if ($('.testimonial-carousel-three').length) { $('.testimonial-carousel-three').owlCarousel({ rtl: THEMEMASCOT.isRTL.check(), loop: true, margin: 30, nav: true, items: 1, smartSpeed: 700, autoplay: 5000, navText: ['', ''], responsive: { 0: { items: 1 }, 768: { items: 1 }, 960: { items: 2 }, 1199: { items: 2 }, } }); } // Testimonial Carousel if ($('.testimonial-carousel-six').length) { $('.testimonial-carousel-six').owlCarousel({ rtl: THEMEMASCOT.isRTL.check(), loop: true, margin: 30, nav: true, items: 1, smartSpeed: 700, autoplay: 5000, navText: ['', ''], responsive: { 0: { items: 1 }, 768: { items: 2 }, 800: { items: 2 }, 1199: { items: 3 }, } }); } // Country Carousel if ($('.country-carousel').length) { $('.country-carousel').owlCarousel({ rtl: THEMEMASCOT.isRTL.check(), loop: true, margin: 10, nav: true, items: 1, smartSpeed: 700, autoplay: 5000, nav:false, responsive: { 0: { items: 1 }, 576: { items: 2 }, 768: { items: 3 }, 1024: { items: 5 }, 1200: { items: 6 }, 1400: { items: 6 }, } }); } // Features Carousel if ($('.features-carousel').length) { $('.features-carousel').owlCarousel({ rtl: THEMEMASCOT.isRTL.check(), loop: true, margin: 0, nav: false, items: 1, smartSpeed: 700, autoplay: 5000, navText: ['', ''], responsive: { 0: { items: 1 }, 1023: { items: 2 }, 1700: { items: 3 }, } }); } if ($('.features-carousel-boxed').length) { $('.features-carousel-boxed').owlCarousel({ rtl: THEMEMASCOT.isRTL.check(), loop: true, margin: 0, nav: false, items: 1, smartSpeed: 700, autoplay: 5000, navText: ['', ''], responsive: { 0: { items: 1 }, 1023: { items: 2 }, 1700: { items: 2 }, } }); } //Clients Carousel if ($('.clients-carousel').length) { $('.clients-carousel').owlCarousel({ rtl: THEMEMASCOT.isRTL.check(), loop:true, margin:10, nav:false, smartSpeed: 400, autoplay: true, responsive:{ 0:{ items:1 }, 480:{ items:2 }, 600:{ items:3 }, 768:{ items:4 }, 1023:{ items:5 }, } }); } //Clients Carousel if ($('.clients-carousel-two').length) { $('.clients-carousel-two').owlCarousel({ rtl: THEMEMASCOT.isRTL.check(), loop:true, margin:0, nav:false, smartSpeed: 400, autoplay: true, responsive:{ 0:{ items:1 }, 480:{ items:2 }, 600:{ items:3 }, 768:{ items:4 }, 1023:{ items:6 }, 1399: { items: 8 }, } }); } // Testimonial Carousel if ($('.news-carousel').length) { $('.news-carousel').owlCarousel({ rtl: THEMEMASCOT.isRTL.check(), loop: true, margin: 30, nav: true, items: 1, smartSpeed: 700, autoplay: 5000, navText: ['', ''], responsive: { 0: { items: 1 }, 768: { items: 1 }, 800: { items: 2 }, 1199: { items: 3 }, } }); } //team 1 Carousel if ($('.team-carousel').length) { $('.team-carousel').owlCarousel({ rtl: THEMEMASCOT.isRTL.check(), loop: true, margin: 30, nav: false, smartSpeed: 400, autoplay: false, responsive: { 0: { items: 1 }, 768: { items: 2 }, 1024: { items: 3 }, 1200: { items: 3 }, } }); } //team 10 Carousel if ($('.team-ten-carousel').length) { $('.team-ten-carousel').owlCarousel({ rtl: THEMEMASCOT.isRTL.check(), loop: true, margin: 30, nav: true, smartSpeed: 400, autoplay: true, navText: ['', ''], responsive: { 0: { items: 1 }, 768: { items: 2 }, 1024: { items: 3 }, 1200: { items: 3 }, } }); } // Testinomials Carousel if ($('.testimonial-content').length) { var testimonial_thumbs = new Swiper('.testimonial-thumbs', { spaceBetween: 0, direction: "vertical", loop: false, slidesPerView: 3, breakpoints: { 320: { slidesPerView: 3, }, 600: { slidesPerView: 3, }, } }); var testimonial_content = new Swiper('.testimonial-content', { spaceBetween: 0, effect: 'fade', loop: true, thumbs: { swiper: testimonial_thumbs }, pagination: { el: '.testimonial-pagination', clickable: true, }, }); } //Accordion Box if ($('.accordion-box').length) { $(".accordion-box").on('click', '.acc-btn', function () { var outerBox = $(this).parents('.accordion-box'); var target = $(this).parents('.accordion'); if ($(this).hasClass('active') !== true) { $(outerBox).find('.accordion .acc-btn').removeClass('active '); } if ($(this).next('.acc-content').is(':visible')) { return false; } else { $(this).addClass('active'); $(outerBox).children('.accordion').removeClass('active-block'); $(outerBox).find('.accordion').children('.acc-content').slideUp(300); target.addClass('active-block'); $(this).next('.acc-content').slideDown(300); } }); } //Accordion Box App if ($('.accordion-box-app').length) { $(".accordion-box-app").on('click', '.acc-btn', function () { var outerBox = $(this).parents('.accordion-box-app'); var target = $(this).parents('.accordion'); if ($(this).hasClass('active') !== true) { $(outerBox).find('.accordion .acc-btn').removeClass('active '); } if ($(this).next('.acc-content').is(':visible')) { return false; } else { $(this).addClass('active'); $(outerBox).children('.accordion').removeClass('active-block'); $(outerBox).find('.accordion').children('.acc-content').slideUp(300); target.addClass('active-block'); $(this).next('.acc-content').slideDown(300); } }); } //Fact Counter + Text Count if($('.count-box').length){ $('.count-box').appear(function(){ var $t = $(this), n = $t.find(".count-text").attr("data-stop"), r = parseInt($t.find(".count-text").attr("data-speed"), 10); if (!$t.hasClass("counted")) { $t.addClass("counted"); $({ countNum: $t.find(".count-text").text() }).animate({ countNum: n }, { duration: r, easing: "linear", step: function() { $t.find(".count-text").text(Math.floor(this.countNum)); }, complete: function() { $t.find(".count-text").text(this.countNum); } }); } },{accY: 0}); } if ($('.product-details .bxslider').length) { $('.product-details .bxslider').bxSlider({ nextSelector: '.product-details #slider-next', prevSelector: '.product-details #slider-prev', nextText: '', prevText: '', mode: 'fade', auto: 'true', speed: '700', pagerCustom: '.product-details .slider-pager .thumb-box' }); }; //Tabs Box if ($('.tabs-box').length) { $('.tabs-box .tab-buttons .tab-btn').on('click', function (e) { e.preventDefault(); var target = $($(this).attr('data-tab')); if ($(target).is(':visible')) { return false; } else { target.parents('.tabs-box').find('.tab-buttons').find('.tab-btn').removeClass('active-btn'); $(this).addClass('active-btn'); target.parents('.tabs-box').find('.tabs-content').find('.tab').fadeOut(0); target.parents('.tabs-box').find('.tabs-content').find('.tab').removeClass('active-tab animated fadeIn'); $(target).fadeIn(300); $(target).addClass('active-tab animated fadeIn'); } }); } //Progress Bar if ($('.progress-line').length) { $('.progress-line').appear(function () { var el = $(this); var percent = el.data('width'); $(el).css('width', percent + '%'); }, { accY: 0 }); } //LightBox / Fancybox if($('.lightbox-image').length) { $('.lightbox-image').fancybox({ openEffect : 'fade', closeEffect : 'fade', helpers : { media : {} } }); } // Scroll to a Specific Div if($('.scroll-to-target').length){ $(".scroll-to-target").on('click', function() { var target = $(this).attr('data-target'); // animate $('html, body').animate({ scrollTop: $(target).offset().top }, 0); }); } // Elements Animation if($('.wow').length){ var wow = new WOW( { boxClass: 'wow', // animated element css class (default is wow) animateClass: 'animated', // animation css class (default is animated) offset: 0, // distance to the element when triggering the animation (default is 0) mobile: false, // trigger animations on mobile devices (default is true) live: true // act on asynchronously loaded content (default is true) } ); wow.init(); } // count Bar if ($(".count-bar").length) { $(".count-bar").appear( function () { var el = $(this); var percent = el.data("percent"); $(el).css("width", percent).addClass("counted"); }, { accY: -50 } ); } $(".quantity-box .add").on("click", function () { if ($(this).prev().val() < 999) { $(this) .prev() .val(+$(this).prev().val() + 1); } }); $(".quantity-box .sub").on("click", function () { if ($(this).next().val() > 1) { if ($(this).next().val() > 1) $(this) .next() .val(+$(this).next().val() - 1); } }); //Price Range Slider if($('.price-range-slider').length){ $( ".price-range-slider" ).slider({ range: true, min: 10, max: 99, values: [ 10, 60 ], slide: function( event, ui ) { $( "input.property-amount" ).val( ui.values[ 0 ] + " - " + ui.values[ 1 ] ); } }); $( "input.property-amount" ).val( $( ".price-range-slider" ).slider( "values", 0 ) + " - $" + $( ".price-range-slider" ).slider( "values", 1 ) ); } // Select2 Dropdown $('.custom-select').select2({ minimumResultsForSearch: 7, }); //Distance Range Slider if ($('.distance-range-slider').length) { $(".distance-range-slider").slider({ range: true, min: 0, max: 2000, values: [0, 1500], slide: function (event, ui) { $("input.range-amount").val(ui.values[0] + " - " + ui.values[1]); } }); $("input.range-amount").val($(".distance-range-slider").slider("values", 0) + " - " + $(".distance-range-slider").slider("values", 1)); } //Gallery Filters if($('.filter-list').length){ $('.filter-list').mixItUp({}); } //Custom Data Attributes if($('[data-tm-bg-color]').length){ $('[data-tm-bg-color]').each(function() { $(this).css("cssText", "background-color: " + $(this).data("tm-bg-color") + " !important;"); }); } if($('[data-tm-bg-img]').length){ $('[data-tm-bg-img]').each(function() { $(this).css('background-image', 'url(' + $(this).data("tm-bg-img") + ')'); }); } if($('[data-tm-text-color]').length){ $('[data-tm-text-color]').each(function() { $(this).css('color', $(this).data("tm-text-color")); }); } if($('[data-tm-font-size]').length){ $('[data-tm-font-size]').each(function() { $(this).css('font-size', $(this).data("tm-font-size")); }); } if($('[data-tm-opacity]').length){ $('[data-tm-opacity]').each(function() { $(this).css('opacity', $(this).data("tm-opacity")); }); } if($('[data-tm-height]').length){ $('[data-tm-height]').each(function() { $(this).css('height', $(this).data("tm-height")); }); } if($('[data-tm-width]').length){ $('[data-tm-width]').each(function() { $(this).css('width', $(this).data("tm-width")); }); } if($('[data-tm-border]').length){ $('[data-tm-border]').each(function() { $(this).css('border', $(this).data("tm-border")); }); } if($('[data-tm-border-top]').length){ $('[data-tm-border-top]').each(function() { $(this).css('border-top', $(this).data("tm-border-top")); }); } if($('[data-tm-border-bottom]').length){ $('[data-tm-border-bottom]').each(function() { $(this).css('border-bottom', $(this).data("tm-border-bottom")); }); } if($('[data-tm-border-radius]').length){ $('[data-tm-border-radius]').each(function() { $(this).css('border-radius', $(this).data("tm-border-radius")); }); } if($('[data-tm-z-index]').length){ $('[data-tm-z-index]').each(function() { $(this).css('z-index', $(this).data("tm-z-index")); }); } if($('[data-tm-padding]').length){ $('[data-tm-padding]').each(function() { $(this).css('padding', $(this).data("tm-padding")); }); } if($('[data-tm-padding-top]').length){ $('[data-tm-padding-top]').each(function() { $(this).css('padding-top', $(this).data("tm-padding-top")); }); } if($('[data-tm-padding-right]').length){ $('[data-tm-padding-right]').each(function() { $(this).css('padding-right', $(this).data("tm-padding-right")); }); } if($('[data-tm-padding-bottom]').length){ $('[data-tm-padding-bottom]').each(function() { $(this).css('padding-bottom', $(this).data("tm-padding-bottom")); }); } if($('[data-tm-padding-left]').length){ $('[data-tm-padding-left]').each(function() { $(this).css('padding-left', $(this).data("tm-padding-left")); }); } if($('[data-tm-margin]').length){ $('[data-tm-margin]').each(function() { $(this).css('margin', $(this).data("tm-margin")); }); } if($('[data-tm-margin-top]').length){ $('[data-tm-margin-top]').each(function() { $(this).css('margin-top', $(this).data("tm-margin-top")); }); } if($('[data-tm-margin-right]').length){ $('[data-tm-margin-right]').each(function() { $(this).css('margin-right', $(this).data("tm-margin-right")); }); } if($('[data-tm-margin-bottom]').length){ $('[data-tm-margin-bottom]').each(function() { $(this).css('margin-bottom', $(this).data("tm-margin-bottom")); }); } if($('[data-tm-margin-left]').length){ $('[data-tm-margin-left]').each(function() { $(this).css('margin-left', $(this).data("tm-margin-left")); }); } if($('[data-tm-top]').length){ $('[data-tm-top]').each(function() { $(this).css('top', $(this).data("tm-top")); }); } if($('[data-tm-right]').length){ $('[data-tm-right]').each(function() { $(this).css('right', $(this).data("tm-right")); }); } if($('[data-tm-bottom]').length){ $('[data-tm-bottom]').each(function() { $(this).css('bottom', $(this).data("tm-bottom")); }); } if($('[data-tm-left]').length){ $('[data-tm-left]').each(function() { $(this).css('left', $(this).data("tm-left")); }); } function show_secondary_price(pricing_tables){ pricing_tables.addClass('show-secondary-price'); var pricing_btn = pricing_tables.find('.btn'); var secondary_btn_url = pricing_btn.data("secondary-link"); pricing_btn.attr("href", secondary_btn_url); } function hide_secondary_price(pricing_tables){ pricing_tables.removeClass('show-secondary-price'); var pricing_btn = pricing_tables.find('.btn'); var normal_btn_url = pricing_btn.data("normal-link"); pricing_btn.attr("href", normal_btn_url); } //smart btn var TM_Pricing_Switcher_Smart = function ($scope) { var pricing_smart_switcher = $('.tm-pricing-smart-switcher'); if( pricing_smart_switcher.length > 0 ) { pricing_smart_switcher.find("[data-pricing-trigger]").on("click", function (e) { var $self = $(e.target); $self.toggleClass("secondary-active"); var pricing_tables = $self.parents("section").find(".tm-pricing-table"); if( $self.hasClass( 'secondary-active' ) ) { show_secondary_price(pricing_tables); } else { hide_secondary_price(pricing_tables); } }); } }; //round, flat btn var TM_Pricing_Switcher_Btn = function ($scope) { var pricing_btn_switcher = $('.tm-pricing-smart-switcher-button'); if( pricing_btn_switcher.length > 0 ) { pricing_btn_switcher.find("[data-pricing-trigger]").on("click", function (e) { var target_id = $(this).data('show'); var $self = $(e.target); pricing_btn_switcher.find("[data-pricing-trigger]").removeClass("active"); $(this).addClass("active"); var pricing_tables = $self.parents("section").find(".tm-pricing-table"); if( target_id === "year" ) { show_secondary_price(pricing_tables); } else { hide_secondary_price(pricing_tables); } }); } }; /* ---------------------------------------------------------------------- */ /* ----------- Activate Menu Item on Reaching Different Sections ---------- */ /* ---------------------------------------------------------------------- */ var $onepage_nav = $('.onepage-nav'); var $sections = $('section'); var $window = $(window); function TM_activateMenuItemOnReach() { if( $onepage_nav.length > 0 ) { var cur_pos = $window.scrollTop() + 2; var nav_height = $onepage_nav.outerHeight(); $sections.each(function() { var top = $(this).offset().top - nav_height - 80, bottom = top + $(this).outerHeight(); if (cur_pos >= top && cur_pos <= bottom) { $onepage_nav.find('a').parent().removeClass('current').removeClass('active'); $sections.removeClass('current').removeClass('active'); $onepage_nav.find('a[href="#' + $(this).attr('id') + '"]').parent().addClass('current').addClass('active'); } if (cur_pos <= nav_height && cur_pos >= 0) { $onepage_nav.find('a').parent().removeClass('current').removeClass('active'); $onepage_nav.find('a[href="#header"]').parent().addClass('current').addClass('active'); } }); } } /* ========================================================================== When document is Scrollig, do ========================================================================== */ $(window).on('scroll', function() { headerStyle(); TM_activateMenuItemOnReach(); }); /* ========================================================================== When document is loading, do ========================================================================== */ $(window).on('load', function() { handlePreloader(); TM_Pricing_Switcher_Smart(); TM_Pricing_Switcher_Btn(); }); })(window.jQuery);