AlkantarClanX12
Current Path : /home/thanudqk/siamfreetour.com/wp-content/themes/digital-download/js/ |
Current File : /home/thanudqk/siamfreetour.com/wp-content/themes/digital-download/js/custom.min.js |
/*! digital-download 1.1.4 2024-10-04 10:07:40 AM */ jQuery(document).ready(function(e){e(".site-header .form-section").on("click",function(){e(".site-header .form-section .form-holder").css("display","block"),e("body").addClass("menu-open")}),e(".form-holder .btn-form-close").on("click",function(){e(".site-header .form-section .form-holder").css("display","none"),e("body").removeClass("menu-open")}),e(".overlay").on("click",function(){e(".site-header .form-section .form-holder").css("display","none"),e("body").removeClass("menu-open")}),e(".site-header .form-section .form-holder").on("click",function(o){o.stopPropagation()});var i,o=e(window).width();o<1025&&(e("#toggle-button").on("click",function(){e("body").addClass("menu-open"),e(".mobile-navigation").addClass("open"),e(".mobile-navigation").addClass("toggled"),e("#mobile-site-navigation .primary-menu-list").addClass("toggled")}),e(".close").on("click",function(){e("body").toggleClass("menu-open"),e(".mobile-navigation").removeClass("open"),e(".mobile-navigation").removeClass("toggled"),e("#mobile-site-navigation .primary-menu-list").removeClass("toggled")}),e(".overlay").on("click",function(){e("body").removeClass("menu-open"),e(".mobile-navigation").removeClass("open"),e(".mobile-navigation").removeClass("toggled"),e("#mobile-site-navigation .primary-menu-list").removeClass("toggled")})),e('<button class="angle-down"><i class="fas fa-chevron-down"></i></button>').insertAfter(e(".mobile-navigation ul .menu-item-has-children > a")),e(".mobile-menu ul li .angle-down").on("click",function(){e(this).next().slideToggle(),e(this).toggleClass("active")}),e("#toggle-button").on("click",function(){e("body").addClass("menu-open"),e(".mobile-navigation").addClass("open"),e(".mobile-navigation").addClass("toggled"),e("#mobile-site-navigation .primary-menu-list").addClass("toggled")}),e(".close").on("click",function(){e("body").removeClass("menu-open"),e(".mobile-navigation").removeClass("open"),e(".mobile-navigation").removeClass("toggled"),e("#mobile-site-navigation .primary-menu-list").removeClass("toggled")}),e(window).on("load, resize",function(){var o=e(window).width();o<1025?e(".overlay").on("click",function(){e("body").removeClass("menu-open"),e(".mobile-navigation").removeClass("open"),e(".mobile-navigation").removeClass("toggled"),e("#mobile-site-navigation .primary-menu-list").removeClass("toggled")}):1025<o&&(e("body").removeClass("menu-open"),e(".mobile-navigation").removeClass("open"),e(".mobile-navigation").removeClass("toggled"),e("#mobile-site-navigation .primary-menu-list").removeClass("toggled"))}),1024<o&&e("#site-navigation ul li a").on("focus",function(){e(this).parents("li").addClass("focus")}).on("blur",function(){e(this).parents("li").removeClass("focus")}),e(".site-header .right .tools .cart").on("click",function(){e(".site-header .right .tools .cart .product-holder").slideToggle()}),0<e(".page-template-portfolio").length&&1==digital_download.is_rtc_active&&(i=e(".item-holder").imagesLoaded(function(){i.isotope({}),e(".filter-button-group").on("click","button",function(){e(".filter-button-group button").removeClass("is-active"),e(this).addClass("is-active");var o=e(this).attr("data-filter");i.isotope({filter:o})})}))});