AlkantarClanX12

Your IP : 18.117.166.193


Current Path : /home/thanudqk/siamfreetour.com/wp-content/themes/blossom-recipe/js/
Upload File :
Current File : /home/thanudqk/siamfreetour.com/wp-content/themes/blossom-recipe/js/custom.min.js

/*! blossom-recipe 1.3.1 2024-11-13 5:10:23 PM */
jQuery(document).ready(function(a){var t,o=a(window).width();function i(){a(window).width()<768&&a(".instagram-section .popup-gallery").removeClass("photos-10 photos-9 photos-8 photos-7 photos-6 photos-5 photos-4").addClass("photos-3")}t="1"==blossom_recipe_data.rtl,a(".slider-one .banner-slider").length&&a(".slider-one .banner-slider").owlCarousel({items:3,margin:20,loop:!0,dots:!1,nav:!0,autoplay:!0,smartSpeed:500,rtl:t,lazyLoad:!0,autoplayTimeout:2e3,responsive:{0:{items:1},768:{items:2},1025:{items:3}}}),a(".sticky-t-bar").addClass("active"),a(".sticky-t-bar .sticky-bar-content").show(),a(".sticky-t-bar .close").on("click",function(){a(".sticky-t-bar").hasClass("active")?(a(".sticky-t-bar").removeClass("active"),a(".sticky-t-bar .sticky-bar-content").stop(!0,!1,!0).slideUp()):(a(".sticky-t-bar").addClass("active"),a(".sticky-t-bar .sticky-bar-content").stop(!0,!1,!0).slideDown())}),a(window).on("resize load",function(){var t=a(".site").width(),t=parseInt(o)-parseInt(t),t=parseInt(t)/2;a(".custom-background .sticky-t-bar .close").css("right",t)}),a(".header-search > .search-btn").on("click",function(){a(this).siblings(".header-search-form").fadeIn("slow")}),a(".header-search-form").on("click",function(){a(".header-search-form").fadeOut("slow")}),a(window).keyup(function(t){"Escape"==t.key&&a(".header-search-form").fadeOut("slow")}),a(".header-search-form .search-form").on("click",function(t){t.stopPropagation()}),a(".main-navigation ul li.menu-item-has-children").find("> a").after('<button class="submenu-toggle"><i class="fas fa-chevron-down"></i></button>'),a(".main-navigation ul li button.submenu-toggle").on("click",function(){a(this).parent("li.menu-item-has-children").toggleClass("active"),a(this).siblings(".sub-menu").stop(!0,!1,!0).slideToggle()}),a(".main-navigation .toggle-button").on("click",function(){a(".primary-menu-list").animate({width:"toggle"})}),a(".main-navigation .close").on("click",function(){a(".primary-menu-list").animate({width:"toggle"})}),a(".main-navigation ul li a, .main-navigation ul li button").on("focus",function(){a(this).parents("li").addClass("focused")}).on("blur",function(){a(this).parents("li").removeClass("focused")}),a(window).on("scroll",function(){300<a(window).scrollTop()?a("#back-to-top").addClass("show"):a("#back-to-top").removeClass("show")}),a("#back-to-top").on("click",function(){a("html, body").animate({scrollTop:0},600)}),a("#secondary .widget .widget-title, .site-footer .widget .widget-title").wrapInner("<span></span>"),a("figure.post-thumbnail .share-icon").on("click",function(t){a(this).parent(".post-share").toggleClass("active"),t.stopPropagation()}),a("figure.post-thumbnail .social-icon-list").on("click",function(){e.stopPropagation()}),a(window).on("click",function(){a(".post-share").removeClass("active")}),a(".tab-btn").on("click",function(){var t=a(this).attr("id");a(".tab-btn").removeClass("active"),a(this).addClass("active"),a(".tab-content").stop(!0,!1,!0),a(".tab-content").removeClass("active"),a("#"+t+"-content").stop(!0,!1,!0).addClass("active")}),a(".btn-simple").on("click",function(){a(this).addClass("adding-cart");var o=a(this).attr("id");a.ajax({url:blossom_recipe_data.ajax_url,type:"POST",data:"action=blossom_recipe_add_cart_single&product_id="+o,success:function(t){a("#"+o).replaceWith(t)}}).done(function(){var t=a("#cart-"+o).val();a(".cart .number").html(t)})}),a(window).load(i),a(window).resize(i)});