File "tabs.min.js"

Full Path: /home/ycoalition/public_html/blog/wp-content/themes/woodmart/js/scripts/elements/tabs.min.js
File size: 1.09 KB
MIME-type: text/plain
Charset: utf-8

!function(i){i.each(["frontend/element_ready/wd_tabs.default"],function(e,t){woodmartThemeModule.wdElementorAddAction(t,function(){woodmartThemeModule.tabs()})}),woodmartThemeModule.$document.on("wdTabsInit",function(){woodmartThemeModule.tabs()}),woodmartThemeModule.tabs=function(){i(".wd-tabs").each(function(){var e=i(this),t=e.find(".wd-nav-tabs > li"),d=e.find(".wd-tab-content-wrapper > .wd-tab-content"),a="wd-in",n=100;t.on("click",function(e){e.preventDefault();var t=i(this),e=t.index(),o=d.eq(e);o.siblings().removeClass(a),setTimeout(function(){t.siblings().removeClass("wd-active"),o.siblings().removeClass("wd-active")},n),setTimeout(function(){t.addClass("wd-active"),o.siblings().removeClass("wd-active"),o.addClass("wd-active")},n),setTimeout(function(){o.addClass(a),woodmartThemeModule.$document.trigger("resize.vcRowBehaviour"),woodmartThemeModule.$document.trigger("wood-images-loaded")},200)}),i(t[0]).hasClass("wd-active")||e.hasClass("wd-inited")||i(t[0]).trigger("click"),setTimeout(function(){e.addClass("wd-inited")},200)})},i(document).ready(function(){woodmartThemeModule.tabs()})}(jQuery);