PATH:
home
/
thebhoeo
/
public_html
/
wp-content
/
themes
/
woodmart
/
js
/
scripts
/
menu
!function(o){woodmartThemeModule.menuDropdownsAJAX=function(){function d(d){d.addClass("dropdowns-loading");var e=woodmart_settings.menu_storage_key+"_"+d.attr("id"),a=!1,t=d.find(".dropdown-load-ajax"),n=[];if(t.each(function(){var d=o(this).find(".dropdown-html-placeholder");d.length>0&&n.push(d.data("id"))}),woodmart_settings.ajax_dropdowns_save&&woodmartThemeModule.supports_html5_storage){var s=localStorage.getItem(e);try{a=JSON.parse(s)}catch(l){console.log("cant parse Json",l)}}if(a)r(a);else{if(0===n.length)return d.addClass("dropdowns-loaded"),void d.removeClass("dropdowns-loading");o.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_load_html_dropdowns",ids:n},dataType:"json",method:"POST",success:function(o){if("success"===o.status){if(r(o.data),woodmart_settings.ajax_dropdowns_save&&woodmartThemeModule.supports_html5_storage&&!localStorage.getItem(e))try{localStorage.setItem(e,JSON.stringify(o.data))}catch(l){}}else console.log("loading html dropdowns returns wrong data - ",o.message)},error:function(){console.log("loading html dropdowns ajax error")}})}function r(o){Object.keys(o).forEach(function(e){var a=d.find('[data-id="'+e+'"]');woodmartThemeModule.removeDuplicatedStylesFromHTML(o[e],function(o){a.replaceWith(o),d.addClass("dropdowns-loaded"),setTimeout(function(){d.removeClass("dropdowns-loading")},1e3)},a)}),setTimeout(function(){woodmartThemeModule.$document.trigger("wdLoadDropdownsSuccess")},500)}}window.addEventListener("wdEventStarted",function(){o(".menu").has(".dropdown-load-ajax").each(function(){var e=o(this);e.hasClass("dropdowns-loading")||e.hasClass("dropdowns-loaded")||(woodmartThemeModule.windowWidth<=1024?setTimeout(function(){d(e)},500):d(e))})})},o(document).ready(function(){woodmartThemeModule.menuDropdownsAJAX()})}(jQuery);
[-] searchCatDropdown.min.js
[edit]
[-] menuOverlay.js
[edit]
[-] categoriesMenu.js
[edit]
[-] menuDropdownsAJAX.min.js
[edit]
[-] fullScreenMenu.min.js
[edit]
[-] mobileNavigation.js
[edit]
[-] categoriesMenu.min.js
[edit]
[-] menuSetUp.min.js
[edit]
[-] onePageMenu.js
[edit]
[-] searchCatDropdown.js
[edit]
[-] menuOffsets.js
[edit]
[-] categoriesMenuSideHidden.min.js
[edit]
[-] menuStickyOffsets.js
[edit]
[-] menuSetUp.js
[edit]
[-] onePageMenu.min.js
[edit]
[-] menuOffsets.min.js
[edit]
[-] menuDropdownsAJAX.js
[edit]
[+]
..
[-] menuOverlay.min.js
[edit]
[-] fullScreenMenu.js
[edit]
[-] menuStickyOffsets.min.js
[edit]
[-] moreCategoriesButton.js
[edit]
[-] moreCategoriesButton.min.js
[edit]
[-] categoriesMenuSideHidden.js
[edit]
[-] mobileNavigation.min.js
[edit]