Your IP : 18.117.166.217


Current Path : /home/church/public_html/mekhimalachi.org/wp-content/themes/mekhi/js/
Upload File :
Current File : /home/church/public_html/mekhimalachi.org/wp-content/themes/mekhi/js/custom.min.js

"use strict";!function(a){var e,t,n,o,r,i;r=a(".main-navigation"),i=a("<button />",{class:"dropdown-toggle","aria-expanded":!1}).append('<i class="fa-angle-down icon fa"></i>').append(a("<span />",{class:"screen-reader-text",text:refru.expand})),r.find(".menu-item-has-children > a, .page_item_has_children > a").after(i),r.find(".current-menu-ancestor > button").attr("aria-expanded","true").find(".screen-reader-text").text(refru.collapse),r.find(".dropdown-toggle").click(function(e){var t=a(this),n=t.find(".screen-reader-text");e.preventDefault(),t.toggleClass("toggled-on"),t.next(".children, .sub-menu").toggleClass("toggled-on"),t.attr("aria-expanded","false"===t.attr("aria-expanded")?"true":"false"),n.text(n.text()===refru.expand?refru.collapse:refru.expand)}),e=a("#header"),t=e.find(".menu-toggle"),n=e.find(".main-navigation"),o=e.find(".main-navigation > div > ul"),t.length&&(t.attr("aria-expanded","false"),t.on("click.refru",function(){n.toggleClass("toggled-on"),a(this).attr("aria-expanded",n.hasClass("toggled-on"))})),function(){function e(){"none"===a(".menu-toggle").css("display")?(a(document.body).on("touchstart.refru",function(e){a(e.target).closest(".main-navigation li").length||a(".main-navigation li").removeClass("focus")}),o.find(".menu-item-has-children > a, .page_item_has_children > a").on("touchstart.refru",function(e){var t=a(this).parent("li");t.hasClass("focus")||(e.preventDefault(),t.toggleClass("focus"),t.siblings(".focus").removeClass("focus"))})):o.find(".menu-item-has-children > a, .page_item_has_children > a").unbind("touchstart.refru")}o.length&&o.children().length&&("ontouchstart"in window&&(a(window).on("resize.refru",e),e()),o.find("a").on("focus.refru blur.refru",function(){a(this).parents(".menu-item, .page_item").toggleClass("focus")}))}()}(jQuery),jQuery(document).ready(function(o){o(".main-navigation li").on("mouseenter mouseleave",function(e){if(767<o(document).width()&&o("ul",this).length){var t=o("ul:first",this),n=t.offset().left,a=t.width();o("#header").height();n+a<=o("#header").width()?o(this).removeClass("edge"):o(this).addClass("edge")}}),o(".main-navigation .menu > li.menu-item-has-children").hover(function(){576<o(window).width()&&o(this).children(".sub-menu").addClass("animated refruFadeInUp").removeClass("fadeOut")},function(){576<o(window).width()&&o(this).children(".sub-menu").addClass("fadeOut").removeClass("refruFadeInUp")}),o("body").on("click",'#primary-menu > li > a[href^="#"], #secondary-menu > ul > li > a[href^="#"]',function(e){e.preventDefault(),o("html, body").animate({scrollTop:o(o(this).attr("href")).offset().top},1e3)}),setTimeout(function(){o("body").removeClass("pace-running"),o("body").addClass("pace-done")},4e3),o(document).on("lazyloaded",function(e){o(".woocommerce-product-gallery").length&&o(".woocommerce-product-gallery").data("flexslider").resize()}),o(".woocommerce-product-gallery img").on("jetpack-lazy-loaded-image",function(e){o(".woocommerce-product-gallery").length&&(o(".woocommerce-product-gallery").data("flexslider").resize(),setTimeout(function(){o(".woocommerce-product-gallery").data("flexslider").resize()},200))}),o("body").on("click","#header .refru-cart-btn",function(e){e.preventDefault(),window.location.href=o(this).attr("href")}),o("body").on("click",".products .product .product_text .add_to_cart_button.product_type_variable",function(e){e.preventDefault(),window.location.href=o(this).attr("href")}),o(".dropdown-toggle").dropdown(),o('*[data-toggle="tooltip"]').tooltip()});