!function() { AOS.init({ disable: !1, startEvent: "DOMContentLoaded", initClassName: "aos-init", animatedClassName: "aos-animate", useClassNames: !1, disableMutationObserver: !1, debounceDelay: 50, throttleDelay: 99, offset: 120, delay: 50, duration: 600, easing: "cubic-bezier(0.77, 0, 0.175, 1)", once: !0, mirror: !1, anchorPlacement: "top-bottom" }); var e = document.querySelectorAll(".typed-animation"); 0 < e.length && e.forEach((e => { new Typed(e, { strings: JSON.parse(e.dataset.strings), typeSpeed: 80, backSpeed: 40, backDelay: 3e3, startDelay: 1e3, fadeOut: !0, loop: !0 }); })), new VenoBox({ selector: ".video-play-btn" }); const t = document.querySelector(".pricing-table"); if (t) { e = document.querySelectorAll(".switch-wrapper input"); const n = t.querySelectorAll(".price"); const a = "d-none"; e.forEach((e => { e.addEventListener("input", (function() { n.forEach((e => { e.classList.add(a); })), t.querySelectorAll(".price." + e.id).forEach((e => { e.classList.remove(a); })); })); })); } new Swiper(".review-carousel", { loop: !1, freemode: !0, slidesPerView: 1, spaceBetween: 24, speed: 1e3, autoplay: { delay: 3e3, disableOnInteraction: !0 }, pagination: { el: ".review-carousel-container .swiper-pagination", type: "bullets", clickable: !0 }, breakpoints: { 1: { slidesPerView: 1 }, 768: { slidesPerView: 2 }, 1200: { slidesPerView: 3 } } }), new Swiper(".review-rolling-carousel", { loop: !0, freemode: !0, slidesPerView: 1, spaceBetween: 24, centeredSlides: !1, allowTouchMove: !0, speed: 1e4, autoplay: { delay: 1, disableOnInteraction: !1 }, breakpoints: { 1: { slidesPerView: 1.1 }, 768: { slidesPerView: 2 }, 992: { slidesPerView: 2.5 }, 1200: { slidesPerView: 3 }, 1400: { slidesPerView: 3.5 }, 1600: { slidesPerView: 4 }, 1900: { slidesPerView: 4.5 } } }), new Swiper(".review-rolling-carousel-reversed", { loop: !0, freemode: !0, slidesPerView: 1, spaceBetween: 24, centeredSlides: !1, allowTouchMove: !0, speed: 8e3, autoplay: { delay: 1, reverseDirection: !0, disableOnInteraction: !1 }, breakpoints: { 1: { slidesPerView: 1.1 }, 768: { slidesPerView: 2 }, 992: { slidesPerView: 2.5 }, 1200: { slidesPerView: 3 }, 1400: { slidesPerView: 3.5 }, 1600: { slidesPerView: 4 }, 1900: { slidesPerView: 4.5 } } }); var e = document.querySelector(".navbar:not(.position-static)"); var s = document.querySelector("html"); if (e) { new Headroom(e, { offset: { up: 100, down: 50 }, tolerance: { up: 5, down: 0 }, classes: { initial: "headroom", pinned: "headroom--pinned", unpinned: "headroom--unpinned", top: "headroom--top", notTop: "headroom--not-top", bottom: "headroom--bottom", notBottom: "headroom--not-bottom", frozen: "headroom--frozen" } }).init(); var r = e.classList.contains("on-over"); if (r || (r = e.offsetHeight, s.style.paddingTop = r + "px", s.style.scrollPaddingTop = r + "px"), window.matchMedia("(max-width: 991px)").matches) { const l = e.querySelector(".navbar-collapse"); const d = e.querySelector(".navbar-toggler"); window.addEventListener("scroll", (() => { var e = window.scrollY; "true" === d.getAttribute("aria-expanded") && 0 < e && (l.classList.remove("show"), d.setAttribute("aria-expanded", "false")); })); } } jQuery(document).ready( function($) { if ( $(".genai-swiper-slider").length ) { $('.genai-swiper-slider').each(function () { var container = $(this); const options = $(this).data('swiper-options'); const slider = new Swiper(this, options ); }); } var block_check = $('.nt-single-has-block'); if ( block_check.length ) { $( ".nt-genai-content ul" ).addClass( "nt-genai-content-list" ); $( ".nt-genai-content ol" ).addClass( "nt-genai-content-number-list" ); } $( ".genai-post-content-wrapper>*:last-child" ).addClass( "genai-last-child" ); // add class for bootstrap table $( ".nt-genai-content table, #wp-calendar" ).addClass( "table table-striped" ); $( ".woocommerce-order-received .nt-genai-content table" ).removeClass( "table table-striped" ); // CF7 remove error message $('.wpcf7-response-output').ajaxComplete(function(){ window.setTimeout(function(){ $('.wpcf7-response-output').addClass('display-none'); }, 4000); window.setTimeout(function(){ $('.wpcf7-response-output').removeClass('wpcf7-validation-errors display-none'); $('.wpcf7-response-output').removeAttr('style'); }, 4500); }); // sidebar-widget-toggle $( document.body ).on('click', '.navbar-toggler', function() { $(this).parents('.navbar').toggleClass('active'); }); // sidebar-widget-toggle $( document.body ).on('click', '.nt-sidebar-widget-toggle', function() { var $this = $(this); $this.toggleClass('active'); $this.parents('.nt-sidebar-inner-widget').toggleClass('genai-widget-show genai-widget-hide'); $this.parent().next().slideToggle('fast'); if ( $('.nt-sidebar-inner-wrapper .genai-widget-show').length ) { $this.parents('.nt-sidebar-inner-wrapper').removeClass('all-closed'); } else { $this.parents('.nt-sidebar-inner-wrapper').addClass('all-closed'); } }); $(document.body).on('click','.panel-open',function(e){ e.preventDefault(); var target = $(this).attr('data-target'); $('.page-overlay').attr('data-target',target); $('html,body').addClass('has-overlay'); $(target).addClass('active'); }); $('li.dropdown>a.dropdown-toggle').off('click').on('click',function(e){ e.preventDefault(); var submenu = $(this).next('ul'); $(this).parent('li').siblings().find('.show').removeClass('show'); if ( $(this).hasClass('show') ){ $(this).removeClass('show').addClass('show');; submenu.removeClass('show').addClass('show');; } else { $(this).parent().parent().addClass('show'); $(this).addClass('show').removeClass('show'); submenu.addClass('show').removeClass('show'); } return false; }); $(document.body).on('click','.open-hidden-sidebar',function(e){ e.preventDefault(); if ( $('.shop-content').hasClass('sidebar-close') ) { $('.shop-content').removeClass('sidebar-close'); } else { $('.shop-content').addClass('sidebar-close'); } }); $(document.body).on('click','.panel-close',function(e){ e.preventDefault(); var target = $(this).attr('data-target'); $(target).removeClass('active'); $('html,body').removeClass('has-overlay'); }); $(document.body).on('click','.page-overlay',function(e){ e.preventDefault(); var target = $(this).attr('data-target'); $(target).removeClass('active'); $('html,body').removeClass('has-overlay quick-open'); }); /*============================================= Menu sticky & Scroll to top =============================================*/ if ( genai_vars.backtotop == 'yes' ) { $('').appendTo('body'); $( ".scroll-to-target" ).on("click", function () { var target = $(this).attr("data-target"); // animate $("html, body").animate({scrollTop: $(target).offset().top},1000); return false; }); } }); jQuery(window).on("scroll", function () { var bodyScroll = jQuery(window).scrollTop(); if ( genai_vars.backtotop == 'yes' ) { var offset = 100; if ( jQuery(".scroll-to-target").length ) { if ( jQuery(window).scrollTop() > offset ) { jQuery(".scroll-to-top").addClass('active'); } else if ( jQuery(".scroll-to-top").scrollTop() <= offset ) { jQuery(".scroll-to-top").removeClass('active'); } } } }); jQuery(window).on("load", function () { if ( jQuery(".preloader").length || $("#nt-preloader").length ) { jQuery('.preloader,#nt-preloader').fadeOut(1000); } jQuery("body").addClass("page-loaded"); }); }();