← Back
Editing: themify.script.min.js
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,m,k){a instanceof String&&(a=String(a));for(var g=a.length,l=0;l<g;l++){var p=a[l];if(m.call(k,p,l,a))return{i:l,v:p}}return{i:-1,v:void 0}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(a,m,k){a!=Array.prototype&&a!=Object.prototype&&(a[m]=k.value)};$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a}; $jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(a,m,k,g){if(m){k=$jscomp.global;a=a.split(".");for(g=0;g<a.length-1;g++){var l=a[g];l in k||(k[l]={});k=k[l]}a=a[a.length-1];g=k[a];m=m(g);m!=g&&null!=m&&$jscomp.defineProperty(k,a,{configurable:!0,writable:!0,value:m})}};$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,k){return $jscomp.findInternal(this,a,k).v}},"es6-impl","es3"); $jscomp.polyfill("Number.isFinite",function(a){return a?a:function(a){return"number"!==typeof a?!1:!isNaN(a)&&Infinity!==a&&-Infinity!==a}},"es6-impl","es3");$jscomp.polyfill("Number.isInteger",function(a){return a?a:function(a){return Number.isFinite(a)?a===Math.floor(a):!1}},"es6-impl","es3");var FixedHeader={},LayoutAndFilter={},themifyScript,ThemifySlider,ThemifyMediaElement,qp_max_pages; !function(a){var m=a.event,k={_:0},g=0,l,p;var w=m.special.throttledresize={setup:function(){a(this).on("resize",w.handler)},teardown:function(){a(this).off("resize",w.handler)},handler:function(t,n){var q=this,v=arguments;l=!0;p||(setInterval(function(){g++;(g>w.threshold&&l||n)&&(t.type="throttledresize",m.dispatch.apply(q,v),l=!1,g=0);9<g&&(a(k).stop(),p=!1,g=0)},30),p=!0)},threshold:0}}(jQuery); (function(a){var m=a.event,k;var g=m.special.debouncedresize={setup:function(){a(this).on("resize",g.handler)},teardown:function(){a(this).off("resize",g.handler)},handler:function(a,p){var l=this,t=arguments,n=function(){a.type="debouncedresize";m.dispatch.apply(l,t)};k&&clearTimeout(k);p?n():k=setTimeout(n,g.threshold)},threshold:150}})(jQuery); (function(a){function m(b,c){b&&("function"!==typeof a.fn.isotope?Themify.LoadAsync(themifyScript.themeURI+"/js/jquery.isotope.min.js",function(){c()},null,null,function(){return"undefined"!==typeof a.fn.isotope}):c())}function k(){return a("body").hasClass("touch")}function g(a){a=a.prop("class").split(" ");for(var b=/^tb_section-/i,e=null,h=0;h<a.length;h++)b.test(a[h])&&(e=a[h]);return null==e?"":e.replace("tb_section-","")}function l(){var b=a("body"),c=!1,e=themifyScript.hash.replace("#",""), h=n?v+" > "+q:q,d=n||""==themifyScript.hash.replace("#","")?!0:!1,f=a(h).map(function(){var b=a(this);return(b=n&&b.is('[class*="tb_section-"]')?g(b):b.attr("id"))?b:""});a(v).fullpage({resize:!1,sectionSelector:h,paddingBottom:"78px",scrollOverflow:!0,navigation:!0,lockAnchors:!0,autoScrolling:d,anchors:f,afterRender:function(){d||a.fn.fullpage.setAutoScrolling(!0);var c=a(q+".active",a(v)),e=n&&c.is('[class*="tb_section-"]')?g(c):c.prop("id"),r=a("#main-nav").find('a[href$="#'+e+'"]');setTimeout(function(){a(".section_loader").hide(); "undefined"!==typeof ThemifyBuilderModuleJs&&"undefined"!==typeof y&&y()},1E3);if(n){var u=a("#fp-nav").find("li").get(a(".module_row").length);"undefined"!==typeof u&&u.hide()}0<r.length&&r.closest("li").addClass("current_page_item").siblings().removeClass("current_page_item current-menu-item");b.trigger("themify_onepage_after_render",[c,e])},afterLoad:function(){var d=a(q+".active",a(v)),f=n&&d.is('[class*="tb_section-"]')?g(d):d.prop("id"),r=a("#main-nav").find('a[href$="#'+f+'"]');0<r.length&& r.closest("li").addClass("current_page_item").siblings().removeClass("current_page_item current-menu-item");history.pushState&&f&&(c&&e!==f?history.pushState(null,null,"#"+f):history.replaceState(null,null,"#"+f));c=!0;b.trigger("themify_onepage_afterload",[d,f])},onLeave:function(c,e,d){if(0<b.find("> .mfp-wrap").length)return!1;var f=n?a(v).children(q):a(v).find(q);if(0<f.length&&0<c&&0<e)if("up"===d)for(;c>=e;c--)f.eq(c-1).css("visibility","visible");else for(;c<=e;c++)f.eq(c-1).css("visibility", "visible")}})}function p(b,c){if("undefined"!==typeof a.fn.infinitescroll){var e=parseInt(themifyScript.maxPages);"undefined"!==typeof qp_max_pages&&(e=qp_max_pages);b.infinitescroll({navSelector:"#load-more a:last",nextSelector:"#load-more a:last",itemSelector:c,loadingText:"",donetext:"",loading:{img:themifyScript.loadingImg},maxPage:e,behavior:"auto"!==themifyScript.autoInfinite?"twitter":"",pathParse:function(a){return a.match(/^(.*?)\b\d+\b(?!.*\b\d+\b)(.*?$)/).slice(1)},bufferPx:50,pixelsFromNavToBottom:a("#footerwrap").height(), state:{currPage:themifyScript.currentPage&&Number.isInteger(+themifyScript.currentPage)?+themifyScript.currentPage:1}},function(c,d,f){var h=a(c);a(".newItems").removeClass("newItems");h.addClass("newItems");"reset"===themifyScript.resetFilterOnLoad&&LayoutAndFilter.reset();h.hide().imagesLoaded(function(){h.fadeIn();a(".wp-audio-shortcode, .wp-video-shortcode").not("div").each(function(){var b=a(this);0===b.closest(".mejs-audio").length&&ThemifyMediaElement.init(b)});history.pushState&&!+themifyScript.infiniteURL&& history.pushState(null,null,f);a(".post").contents().find("a:not([class='comment-reply-link'], [id='cancel-comment-reply-link'], .themify_lightbox, .post-content a[href$='jpg'], .post-content a[href$='gif'], .post-content a[href$='png'], .post-content a[href$='JPG'], .post-content a[href$='GIF'], .post-content a[href$='PNG'], .post-content a[target='_new'], .post-content a[target='_blank'])").click(function(){var b=a(this).attr("href");window.parent.location.assign(b);return!1});Themify.InitGallery(); m("object"===typeof b.data("isotope"),function(){b.isotope("appended",h)});b.hasClass("auto_tiles")&&a("body").hasClass("tile_enable")&&b.trigger("infiniteloaded.themify",[h]);LayoutAndFilter.filterActive&&(LayoutAndFilter.enableFilters(),"scroll"===themifyScript.scrollToNewOnLoad&&LayoutAndFilter.restore());a("#infscr-loading").fadeOut("normal");1===e&&a("#load-more, #infscr-loading").remove();a("body").trigger("infiniteloaded.themify",[h]);a(window).trigger("resize")});--e;1<e&&"auto"!==themifyScript.autoInfinite&& a(".load-more-button").show()});"auto"===themifyScript.autoInfinite&&a("#load-more, #load-more a").hide()}}var w=a(".type-section"),t="undefined"!==typeof a.fn.fullpage&&(themifyScript.fullPageScroll?!0:!1)&&0<w.length,n=0===w.length,q=".section-post",v="div:not(.module-layout-part) > #loops-wrapper",A=a("body").hasClass("fixed-header"),y;n&&(t="undefined"!==typeof a.fn.fullpage&&(themifyScript.fullPageScroll?!0:!1)&&0<a(".themify_builder").length&&a("body").hasClass("full-section-scrolling"),q=".module_row", v="div:not(.module-layout-part) > .themify_builder_content");a(q+":hidden").remove();q+=":visible";FixedHeader={headerHeight:0,hasHeaderSlider:!1,headerSlider:!1,$pageWrap:a("#pagewrap"),$headerWrap:a("#headerwrap"),stickyHeader:themifyScript.sticky_header,init:function(){var b=this;b.calculateHeaderHeight();if(A){if(t)a("body").on("themify_onepage_afterload",function(c,h,d){c=0<a(q+".active",a(v)).index();b.activate(c);c&&(c=b.headerHeight,b.calculateHeaderHeight(),c!=b.headerHeight&&b.updatePageOffset())}.bind(b)); else b.activate(!1),a(window).on("scroll touchstart.touchScroll touchmove.touchScroll",function(a){b.activate(!1)}.bind(b));a(window).load(b.updatePageOffset.bind(b)).on("debouncedresize",function(a){a.isTrigger||setTimeout(function(){b.calculateHeaderHeight();b.updatePageOffset()}.bind(b),400)});0<a("#gallery-controller").length&&(b.hasHeaderSlider=!0);if(b.stickyHeader){var c='<img id="sticky_header_logo" src="'+b.stickyHeader.src+'"';b.stickyHeader.imgwidth&&(c+=' width="'+b.stickyHeader.imgwidth+ '"');b.stickyHeader.imgheight&&(c+=' height="'+b.stickyHeader.imgheight+'"');c+="/>";a("#site-logo a").prepend(c)}a("body").on("announcement_bar_position announcement_bar_scroll_on_after announcementBarUpdate",b.calculateHeaderHeight.bind(b))}},activate:function(b){var c=a(window).scrollTop();b||c>=this.headerHeight?!this.$headerWrap.hasClass("fixed-header")&&this.scrollEnabled():this.$headerWrap.hasClass("fixed-header")&&this.scrollDisabled()},scrollDisabled:function(){this.$headerWrap.removeClass("fixed-header"); a("#header").removeClass("header-on-scroll");a("body").removeClass("fixed-header-on");this.$headerWrap.hide();this.$headerWrap.get(0).offsetHeight;this.$headerWrap.show();this.calculateHeaderHeight();this.updatePageOffset();this.triggerHeaderSlider()},scrollEnabled:function(){this.updatePageOffset();this.$headerWrap.addClass("fixed-header");a("#header").addClass("header-on-scroll");a("body").addClass("fixed-header-on");this.triggerHeaderSlider();a(window).trigger("resize")},triggerHeaderSlider:function(){this.hasHeaderSlider&& "object"===typeof this.$headerWrap.data("backstretch")&&(this.$headerWrap.data("backstretch").resize(),a("#gallery-controller .slides").trigger("next"))},calculateHeaderHeight:function(){this.headerHeight=this.$headerWrap.outerHeight(!0);this.updateHeaderOffset()},updateHeaderOffset:function(){var a="fixed"===this.$headerWrap.css("position")?this.$pageWrap.offset().top+"px":"";this.$headerWrap.css("margin-top",a)},updatePageOffset:function(){this.$pageWrap.css("paddingTop",Math.floor(this.headerHeight))}}; FixedHeader.init();ThemifySlider={recalcHeight:function(b,c){var e=[];a.each(b,function(){e.push(a(this).outerHeight(!0))});var h=Math.max.apply(Math,e);c.closest(".carousel-wrap").find(".caroufredsel_wrapper, .slideshow").each(function(){a(this).outerHeight(h)})},didResize:!1,createCarousel:function(b){var c=this;b.each(function(){var b=a(this);b.carouFredSel({responsive:!0,prev:"#"+b.data("id")+" .carousel-prev",next:"#"+b.data("id")+" .carousel-next",pagination:{container:"#"+b.data("id")+" .carousel-pager"}, circular:!0,infinite:!0,swipe:!0,scroll:{items:b.data("scroll"),fx:"scroll",duration:parseInt(b.data("speed"))},auto:{play:"off"!==b.data("autoplay"),timeoutDuration:"off"!==b.data("autoplay")?parseInt(b.data("autoplay")):0},items:{visible:{min:1,max:b.data("visible")?parseInt(b.data("visible")):1},width:222},onCreate:function(e){var d=b.closest(".slideshow-wrap");d.css({visibility:"visible",height:"auto"});a(window).on("throttledresize",function(){c.recalcHeight(e.items,b)});a(window).resize();setTimeout(function(){d.find(".carousel-nav-wrap").css("width", 18*parseInt(d.find(".carousel-pager").find("a").length)+"px")},200)}})})}};LayoutAndFilter={filterActive:!1,init:function(b){a(".post-filter+.loops-wrapper:not(.auto_tiles),.masonry:not(.list-post):not(.auto_tiles), .post-filter+.loops-wrapper .ptb_loops_wrapper",b).prepend('<div class="grid-sizer"></div><div class="gutter-sizer"></div>');Themify.is_builder_active||(this.enableFilters(),this.filterActive=!0);this.filter(b)},enableFilters:function(){var b=a(".post-filter");0<b.find("a").length&&"undefined"!== typeof a.fn.isotope&&b.find("li").each(function(){var b=a(this),e=b.parent().next(),h=b.attr("class").replace(/(current-cat)|(cat-item)|(-)|(active)/g,"").replace(" ","");0===e.find(".post.cat-"+h).length?b.hide():b.show()})},filter:function(b){var c=a(".post-filter",b),e=!a("body").hasClass("rtl");initFilter=function(){c.each(function(){var b=a(this),c={isOriginLeft:e,percentPosition:!0},f=b.next();f.has(".ptb_loops_wrapper").length&&(f.find(".grid-sizer, gutter-sizer").remove(),f=f.find(".ptb_loops_wrapper")); c.masonry={columnWidth:f.children(".grid-sizer").length?".grid-sizer":null,gutter:f.children(".gutter-sizer").length?".gutter-sizer":null};f.hasClass("masonry")||f.imagesLoaded(function(){c.itemSelector=".post";c.layoutMode="fitRows";c.fitRows={gutter:f.children(".gutter-sizer").length?".gutter-sizer":null};f.addClass("masonry-done").isotope(c)});b.addClass("filter-visible").on("click","a",function(d){d.preventDefault();var e=a(this).parent(),r=!1,u=a("body").hasClass("tile_enable")&&f.hasClass("auto_tiles"); e.hasClass("active")?(e.removeClass("active"),!u&&(c.filter=".post")):(e.addClass("active").siblings().removeClass("active"),r=e.attr("class").replace(/(current-cat)|(cat-item)|(-)|(active)/g,"").replace(" ",""),!u&&(c.filter=".cat-"+r));!d.isTrigger&&u&&f.data("themify_tiles")?(d=f.children(".post"),d.show(),r&&d.not(".cat-"+r).hide(),f.data("themify_tiles").update(),setTimeout(function(){a.themify_tiles.resizeParent(f);b.removeClass("filter-disable")},Math.round(1E3*parseFloat(f.css("transition-duration")))+ 100)):f.addClass("masonry-done").imagesLoaded(function(){f.isotope(c);b.removeClass("filter-disable")})})})};if(Themify.is_builder_active)a("body").one("builder_load_module_partial",function(a,b,f){!b&&m(0<c.find("a").length,initFilter)});else m(0<c.find("a").length,initFilter)},scrolling:!1,reset:function(){a(".post-filter").find("li.active").find("a").addClass("previous-active").trigger("click");this.scrolling=!0},restore:function(){var b=a(".newItems").first(),c=this,b=b.offset().top-b.outerHeight(!0)/ 2,e=800;800<=b&&(e=800+Math.abs(b/1E3*100));a("html,body").stop().animate({scrollTop:b},e,function(){c.scrolling=!1})},layout:function(b){var c=a(".loops-wrapper.masonry:not(.list-post)",b);if(0<c.length){var e=function(){c.addClass("masonry-done").isotope({masonry:{columnWidth:".grid-sizer",gutter:".gutter-sizer"},itemSelector:".loops-wrapper > article",isOriginLeft:!a("body").hasClass("rtl")}).isotope("once","layoutComplete",function(){a(window).trigger("resize")})},h=c.children(".loops-wrapper > article").last(); if(h.hasClass("wow"))h.one("webkitAnimationEnd oanimationend msAnimationEnd animationend",function(){setTimeout(e,1E3)});else e()}if("yes"===themifyScript.shop_masonry){var d=a(".woocommerce.archive",b).find("#content").find("ul.products");d.length&&d.imagesLoaded(function(){d.isotope({layoutMode:"fitRows",itemSelector:".product",isOriginLeft:!a("body").hasClass("rtl")}).addClass("masonry-done")})}var f=a(".gallery-wrapper.packery-gallery",b);0<f.length&&f.imagesLoaded(function(){f.isotope({layoutMode:"packery", itemSelector:".item"})})},reLayout:function(){a(".masonry").not(".list-post").each(function(){var b=a(this);"object"===typeof b.data("isotope")&&b.isotope("layout")});var b=a(".gallery-wrapper.packery-gallery");0<b.length&&"object"===typeof b.data("isotope")&&b.isotope("layout");"yes"===themifyScript.shop_masonry&&(b=a(".woocommerce.archive").find("#content").find("ul.products"),b.length&&"object"===typeof b.data("isotope")&&b.isotope("layout"))}};a(document).ready(function(){function b(){var b=0< a(".post-filter+.loops-wrapper,.masonry:not(.list-post)").length||"yes"===themifyScript.shop_masonry&&0<a(".woocommerce.archive").find("#content").find("ul.products").length||0<a(".gallery-wrapper.packery-gallery").length;m(b,function(){LayoutAndFilter.init();c.imagesLoaded().always(function(){LayoutAndFilter.layout()})})}var c=a("body"),e=a("#header"),h=a(".header-icons");if(c.hasClass("header-leftpane")||c.hasClass("header-rightpane"))a(".cart-icon").appendTo(a(".social-widget"));else if(c.hasClass("header-minbar"))a(".cart-icon").appendTo(a(".header-icons")); else a(window).on("throttledresize",function(){h.is(":visible")&&!h.find(".cart-icon").length?a(".cart-icon").appendTo(h):!h.is(":visible")&&h.find(".cart-icon").length&&a(".cart-icon").appendTo(a("#main-nav-wrap"))});var d=a(".header-top-widgets .header-widget").wrap("</p>").parent().html();void 0!=d&&a(".header-top-widgets #headerwrap").prepend("<div class='header-widget-full clearfix'><div class='header-widget-inner'>"+d+"</div></div>");"undefined"!==typeof a.fn.themifyScrollHighlight&&c.themifyScrollHighlight(); if(Themify.is_builder_active)c.one("builder_load_module_partial",function(a,c,d){c||b()});else b();var f=a(".back-top");if(0<f.length){if(!t&&f.hasClass("back-top-float"))a(window).on("scroll touchstart.touchScroll touchmove.touchScroll",function(){10>window.scrollY?f.addClass("back-top-hide"):f.removeClass("back-top-hide")});f.on("click",function(b){b.preventDefault();b.stopPropagation();t?a("#footerwrap").toggleClass("expanded"):a("body,html").animate({scrollTop:0},800)})}k()&&"function"!=typeof a.fn.themifyDropdown&& Themify.LoadAsync(themify_vars.url+"/js/themify.dropdown.js",function(){a("#main-nav").themifyDropdown()});if(c.hasClass("header-minbar")||c.hasClass("header-leftpane"))a("#menu-icon").themifySideMenu({close:"#menu-icon-close",side:"left"}),d=function(){if("undefined"!==typeof a.fn.niceScroll&&!k()){var b=e;c.hasClass("header-minbar")&&(b=a("#mobile-menu"));b.niceScroll();c.on("sidemenushow.themify",function(){setTimeout(function(){b.getNiceScroll().resize()},200)})}},e.length&&("function"!==typeof a.fn.niceScroll? Themify.LoadAsync(themifyScript.themeURI+"/js/jquery.nicescroll.min.js",d,null,null,function(){return"undefined"!==typeof a.fn.niceScroll}):d());else if(c.hasClass("header-slide-out")||c.hasClass("header-rightpane")){if(a("#menu-icon").themifySideMenu({close:"#menu-icon-close",side:"right"}),d=function(){if("undefined"!==typeof a.fn.niceScroll&&!k()){var b=e;c.hasClass("header-slide-out")&&(b=a("#mobile-menu"));b.niceScroll();c.on("sidemenushow.themify",function(){setTimeout(function(){b.getNiceScroll().resize()}, 200)})}},e.length||c.hasClass("header-slide-out"))"function"!==typeof a.fn.niceScroll?Themify.LoadAsync(themifyScript.themeURI+"/js/jquery.nicescroll.min.js",d,null,null,function(){return"undefined"!==typeof a.fn.niceScroll}):d()}else{a("#menu-icon").themifySideMenu({close:"#menu-icon-close"});var g=a('<div class="body-overlay">');c.append(g).on("sidemenushow.themify",function(){g.addClass("body-overlay-on")}).on("sidemenuhide.themify",function(){g.removeClass("body-overlay-on")}).on("click.themify touchend.themify", ".body-overlay",function(){a("#menu-icon").themifySideMenu("hide");a("#cart-icon").themifySideMenu("hide")});a(window).resize(function(){a("#mobile-menu").hasClass("sidemenu-on")&&a("#menu-icon").is(":visible")?g.addClass("body-overlay-on"):g.removeClass("body-overlay-on")})}c.hasClass("header-overlay")||(a("#main-nav li.menu-item-has-children > a, #main-nav li.page_item_has_children > a").after("<span class='child-arrow'></span>"),a("#main-nav li.menu-item-has-children > .child-arrow, #main-nav li.page_item_has_children > .child-arrow").click(function(){a(this).toggleClass("toggle-on"); return!0}));a("#cart-icon").themifySideMenu({panel:"#slide-cart",close:"#cart-icon-close"});a(".highlight-post:odd").addClass("odd");d=function(){"undefined"===typeof a.fn.niceScroll||k()||1200<a(window).width()&&a(".header-horizontal .header-widget, .header-top-bar .header-widget, .boxed-compact .header-widget, .header-stripe .header-widget").niceScroll()};a(".header-horizontal .header-widget, .header-top-bar .header-widget, .boxed-compact .header-widget, .header-stripe .header-widget").length&& ("function"!==typeof a.fn.niceScroll?Themify.LoadAsync(themifyScript.themeURI+"/js/jquery.nicescroll.min.js",d,null,null,function(){return"undefined"!==typeof a.fn.niceScroll}):d());var n=a(".header-horizontal, .header-top-bar, .boxed-compact, .header-stripe").find(".header-widget");0<n.length&&(a(".header-horizontal #main-nav, .header-top-bar #main-nav, .boxed-compact #main-nav, .header-stripe #main-nav").after(a('<a href="#" class="pull-down">')),a(".pull-down").on("click",function(b){k()||("function"!== typeof a.fn.niceScroll?Themify.LoadAsync(themifyScript.themeURI+"/js/jquery.nicescroll.min.js",function(){n.getNiceScroll().resize()},null,null,function(){return"undefined"!==typeof a.fn.niceScroll}):n.getNiceScroll().resize());a("#header").toggleClass("pull-down-close");n.slideToggle("fast",function(){a("#pagewrap").css("paddingTop",a("#headerwrap").outerHeight(!0))});b.preventDefault()}));a(window).resize(function(){if(1200>a(window).width()){var b=a(".header-horizontal .header-widget, .header-top-bar .header-widget, .boxed-compact .header-widget, .header-stripe .header-widget"); b.length&&!k()&&("function"!==typeof a.fn.niceScroll?Themify.LoadAsync(themifyScript.themeURI+"/js/jquery.nicescroll.min.js",function(){b.getNiceScroll().remove()},null,null,function(){return"undefined"!==typeof a.fn.niceScroll}):b.getNiceScroll().remove());b.attr("style","")}});c.on("click",".loops-wrapper.grid4.polaroid .post-image + .post-content, .loops-wrapper.grid3.polaroid .post-image + .post-content, .loops-wrapper.grid2.polaroid .post-image + .post-content, .loops-wrapper.grid4.overlay .post-image + .post-content, .loops-wrapper.grid3.overlay .post-image + .post-content, .loops-wrapper.grid2.overlay .post-image + .post-content", function(){var b=a(this).closest(".post").find("a[data-post-permalink]");b.attr("href")&&!b.hasClass("themify_lightbox")&&(window.location=b.attr("href"))});if(0<a(".loops-wrapper.slider").length){var r=0;a(".loops-wrapper.slider").each(function(){r++;var b=a(this);"undefined"===typeof b.attr("id")&&b.attr("id","loops-wrapper-"+r);var c=b.attr("id");b.addClass("slideshow-wrap");0===b.find(".slideshow").length?b.wrapInner('<div class="slideshow" data-id="'+c+'" data-autoplay="off" data-speed="1000" data-effect="scroll" data-visible="3" />'): b.find(".slideshow").attr("data-id",c)})}0<a(".slideshow").length&&(a.fn.carouFredSel?ThemifySlider.createCarousel(a(".slideshow")):Themify.LoadAsync(themify_vars.url+"/js/carousel.min.js",function(){ThemifySlider.createCarousel(a(".slideshow"))},null,null,function(){return"undefined"!==typeof a.fn.carouFredSel}));var u=a("#headerwrap");c.on("announcement_bar_position announcement_bar_scroll_on_after",function(b,c){a("#pagewrap").css("paddingTop",Math.floor(u.outerHeight(!0)))}).on("announcement_bar_position", function(b,c){if(a(this).hasClass("header-minbar")){var d=u.width();c.css({left:d-Math.abs(parseInt(u.css("left"),10)),right:d-Math.abs(parseInt(u.css("right"),10))})}});var z=0,B=c.hasClass("header-top-bar")||c.hasClass("header-horizontal")||c.hasClass("header-top-widgets")||c.hasClass("boxed-compact")||c.hasClass("header-stripe")||c.hasClass("header-magazine");a(window).resize(function(){B&&(a(window).width()>tf_mobile_menu_trigger_point?a("#main-nav li.has-mega-column > ul, #main-nav li.has-mega-sub-menu > .mega-sub-menu").css("width", a("#header").width()):a("#main-nav li.has-mega-column > ul,#main-nav li.has-mega-sub-menu > .mega-sub-menu").removeAttr("style"));!z&&"function"===typeof x&&a(".mobile_menu_active").length&&("function"!==typeof a.fn.niceScroll?Themify.LoadAsync(themifyScript.themeURI+"/js/jquery.nicescroll.min.js",x,null,null,function(){return"undefined"!==typeof a.fn.niceScroll}):x(),z=1)});a(".header-overlay #main-nav li.menu-item-has-children > a, .header-overlay #main-nav li.page_item_has_children > a").after("<span class='child-arrow'></span>"); a(".header-overlay #main-nav li.menu-item-has-children > .child-arrow, .header-overlay #main-nav li.page_item_has_children > .child-arrow").click(function(){a(this).toggleClass("toggle-on").next("div, ul").toggle("fast");return!0});var x=function(){if("undefined"!==typeof a.fn.niceScroll&&!k()&&c.hasClass("header-overlay")){var b=a("#mobile-menu");b.niceScroll();c.on("sidemenushow.themify",function(){setTimeout(function(){b.getNiceScroll().resize()},200)})}};a(".mobile_menu_active").length&&("function"!== typeof a.fn.niceScroll?Themify.LoadAsync(themifyScript.themeURI+"/js/jquery.nicescroll.min.js",x,null,null,function(){return"undefined"!==typeof a.fn.niceScroll}):x());if(t&&c.hasClass("query-section")){themifyScript.hash=window.location.hash.replace("#","").replace("!/","");"undefined"!==typeof a.fn.themifyScrollHighlight&&(c.on("scrollhighlight.themify",function(b,c){"undefined"!=typeof c&&""!=c&&a("#fp-nav").find("li").eq(a(".tb_section-"+c.replace("#","")).index()).find("a").trigger("click")}), a(window).trigger("scroll"));var p=setInterval(function(){"undefined"!==typeof ThemifyBuilderModuleJs&&(clearInterval(p),y=ThemifyBuilderModuleJs.wowInit,ThemifyBuilderModuleJs.wowInit=function(){})},100);l();c.on("builder_toggle_frontend",function(b,c){"undefined"!==typeof a.fn.fullpage&&(c?(a.fn.fullpage.destroy("all"),a("html,body").css("overflowY","auto")):l())});a(window.frameElement).is("#themify_builder_site_canvas_iframe")&&a.fn.fullpage.destroy("all");c.on("themify_onepage_afterload",function(b, c){tbLocalScript&&tbLocalScript.animationInviewSelectors&&"undefined"!==typeof ThemifyBuilderModuleJs&&ThemifyBuilderModuleJs.wow&&a(tbLocalScript.animationInviewSelectors).each(function(b,d){a(d,c).each(function(){ThemifyBuilderModuleJs.wow.show(this)})})}).on("themify_onepage_afterload themify_onepage_after_render",function(b,c,d){a.fn.waypoint&&Waypoint.refreshAll();"undefined"!==typeof ThemifyBuilderModuleJs&&null!==ThemifyBuilderModuleJs.wow&&"boolean"===typeof ThemifyBuilderModuleJs.wow.scrollHandler()&& ThemifyBuilderModuleJs.wow.scrollHandler()})}else a(".section_loader").hide();if(t)c.on("click",'a[href*="#"]:not(.themify_lightbox)',function(b){var c=a(this).prop("href"),d=c.indexOf("#"),c=-1!=d?c.substring(d+1):"",d=a(".tb_section-"+c);1<c.length&&0<d.length&&"header"!==c&&(d.offset(),0<a(".fixed-header").length&&a("#headerwrap").outerHeight(!0),a.fn.fullpage.moveTo(d.index(q)+1),b.preventDefault())});a(".loops-wrapper.overlay .post").each(function(){a(this).find(".post-image").insertBefore(a(this).find(".post-content"))}); d=function(){"undefined"!==typeof a.fn.ThemifyMegaMenu&&(a(".has-mega-sub-menu").each(function(){a(this).find("> ul").removeAttr("class").wrap('<div class="mega-sub-menu sub-menu" />').after('<div class="mega-menu-posts" />').find("li.menu-item-type-taxonomy").addClass("mega-link")}),a(".has-mega-sub-menu").ThemifyMegaMenu({events:themifyScript.events}))};a(".has-mega-sub-menu").length&&("function"!==typeof a.fn.ThemifyMegaMenu?Themify.LoadAsync(themifyScript.themeURI+"/themify/megamenu/js/themify.mega-menu.js", d):d())});a(window).resize(function(){var b=a("body");b.hasClass("header-menu-split")&&(a("#menu-icon").is(":visible")?0==a(".header-bar").find("#site-logo").length&&a("#site-logo").prependTo(".header-bar"):0===a(".themify-logo-menu-item").find("#site-logo").length&&a(".themify-logo-menu-item").append(a(".header-bar").find("#site-logo")));a(window).width()>tf_mobile_menu_trigger_point&&b.hasClass("header-magazine")&&(clearTimeout(),setTimeout(function(){a("#headerwrap").css({paddingBottom:a(".navbar-wrapper").outerHeight()})}, 400))}).load(function(){function b(){var b=!0,c=f.hasClass("fixed-header");c&&f.removeClass("fixed-header");g.each(function(d){var e=a(this).data("fullwidthvideo");e&&(d={url:e,doLoop:!0,ambient:!0,id:d},b&&c&&(b=!1,d.onload=function(){f.addClass("fixed-header")}),a(this).ThemifyBgVideo(d))})}function c(){m(0<a(".masonry:not(.list-post), .gallery-wrapper.packery-gallery").length||"yes"===themifyScript.shop_masonry&&0<a(".woocommerce.archive #content ul.products").length,function(){d.imagesLoaded(function(){Themify.is_builder_active|| a(window).resize();LayoutAndFilter.reLayout()})})}function e(b){var c=a('<div class="post-tiled tiled-square-small" style="visibility: hidden !important; opacity: 0;" />').appendTo(b.first()),d=themifyScript.tiledata.padding,e=parseFloat(c.width());c.remove();b.each(function(){var b=a(this);a(this).imagesLoaded().always(function(a){b.children(".product").addClass("post");a=b.children(".post");themifyScript.tiledata.padding=b.hasClass("no-gutter")?0:d;b.themify_tiles(themifyScript.tiledata,e);setClasses(a, e)})})}function h(b){a(document).ajaxComplete(function(b,c,d){"POST"===d.type&&d.url.indexOf("wpf_search")&&e(a(".loops-wrapper.auto_tiles"))})}var d=a("body");Themify.is_builder_active||(d.hasClass("woocommerce")&&d.hasClass("archive")?p(a("#content ul.products"),"#content .product"):p(a("#loops-wrapper"),".post"));var f=a("#headerwrap"),g=f.find("[data-fullwidthvideo]");f.data("fullwidthvideo")&&(g=g.add(f));0<g.length&&!k()&&("undefined"===typeof a.fn.ThemifyBgVideo?Themify.LoadAsync(themify_vars.url+ "/js/bigvideo.js",b,null,null,function(){return"undefined"!==typeof a.fn.ThemifyBgVideo}):b());if(Themify.is_builder_active)d.one("builder_load_module_partial",function(a,b,d){b||c()});else c();a(function(a){a("#main-nav li:has(ul), #footer-nav li:has(ul)").on("mouseenter dropdown_open",function(b){window.clearTimeout(a(this).data("edge_menu_t"));var c=a("ul:first",this);b=c.offset().left;var c=c.width(),d=a(window).width();b+c<=d||a(this).addClass("edge")}).on("mouseleave dropdown_close",function(){var b= a(this),c=setTimeout(function(){b.removeClass("edge")},300);b.data("edge_menu_t",c)})});t&&d.hasClass("query-section")&&(d.on("themify_onepage_after_render",function(){a.each(tbLocalScript.animationInviewSelectors,function(b,c){a(c).css("visibility","hidden")});window.location.hash&&setTimeout(function(){var b=themifyScript.hash;if(""!=b&&"#"!=b){var c=n?a(".tb_section-"+b):a("#"+b);0<c.length&&(a.fn.fullpage.moveTo(c.index()+1),"undefined"!==typeof ThemifyBuilderModuleJs&&a(tbLocalScript.animationInviewSelectors).each(function(b, d){a(d,c).addBack().each(function(){ThemifyBuilderModuleJs.wow.show(this)})}))}},1500)}),a(".module_row").css("visibility","visible"));a(document).on("click",".remove-item-js",function(b){b.preventDefault();var c=a(this);b={action:"theme_delete_cart",remove_item:c.attr("data-product-key")};var e=d.find(".ajax_add_to_cart "),f=c.parent().find(".product-title a").attr("href");a.post(woocommerce_params.ajax_url,b,function(b){var g=b.fragments;b=b.cart_hash;0==c.parent().find(".added_to_cart").size()&& c.addClass("added");g&&(a.each(g,function(b,c){a(b).addClass("updating").replaceWith(c)}),a(g["#shopdock-ultra"]).find(".cart-total").length||a("#cart-icon-close").trigger("click"));e.length&&e.each(function(){a(this).hasClass("added")&&a(this).closest(".post-content").find('[href="'+f+'"]').length&&a(this).removeClass("added").siblings(".added_to_cart").remove()});d.trigger("removed_from_cart",[g,b])})});var l=a(".auto_tiles");0<l.length&&d.hasClass("tile_enable")&&("undefined"===typeof Tiles?Themify.LoadAsync(themifyScript.themeURI+ "/js/tiles.min.js",function(){a.fn.themify_tiles?(e(l),h(l)):"undefined"===typeof a.fn.backstretch?Themify.LoadAsync(themify_vars.url+"/js/backstretch.min.js",function(){Themify.LoadAsync(themifyScript.themeURI+"/js/themify-tiles.js",function(){e(l);h(l)},null,null,function(){return"undefined"!==typeof a.fn.themify_tiles})},null,null,function(){return"undefined"!==typeof a.fn.backstretch}):Themify.LoadAsync(themifyScript.themeURI+"/js/themify-tiles.js",function(){e(l);h(l)},null,null,function(){return"undefined"!== typeof a.fn.themify_tiles})},null,null,function(){return"undefined"!==typeof Tiles}):(e(l),h(l)));if(Themify.is_builder_active)d.on("builder_load_module_partial",function(a,b,c){m(b&&0<b.find(".builder-posts-wrap.masonry:not(.list-post)").length,function(){LayoutAndFilter.init(b);d.imagesLoaded().always(function(){LayoutAndFilter.layout(b)})},!0)})})})(jQuery);
Save File
Cancel