D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
raptqcnr
/
www
/
wp-content
/
themes
/
woodmart
/
js
/
scripts
/
wc
/
Filename :
singleProductTabsSideHidden.min.js
back
Copy
window.jQuery.each(["frontend/element_ready/wd_single_product_tabs.default"],function(e,n){woodmartThemeModule.wdElementorAddAction(n,function(){jQuery.magnificPopup.close(),woodmartThemeModule.singleProductTabsDescHidden()})}),woodmartThemeModule.singleProductTabsDescHidden=function(){var e=window.location.hash,n=window.location.href,o=document.querySelectorAll(".wd-hidden-tab-title"),t=document.querySelector(".tab-title-reviews");o.forEach(function(t){var d=!1;jQuery(t).magnificPopup({type:"inline",removalDelay:600,showCloseBtn:!1,tLoading:woodmart_settings.loading,fixedContentPos:!1,callbacks:{open:function(){var n=this,e=this.content[0],o=e.querySelector(".close-side-hidden");e.classList.contains("wd-opened")||setTimeout(function(){e.classList.add("wd-opened"),t.classList.add("wd-active"),window.dispatchEvent(new Event("wdOpenDescHiddenTab"))},10),d||(d=!0,o&&o.addEventListener("click",function(e){e.preventDefault(),n.close()}))},beforeClose:function(){var e=document.querySelector(".wd-hidden-tab-title.wd-active"),n=document.querySelector(".wd-side-hidden.wd-opened");e&&e.classList.remove("wd-active"),n&&n.classList.remove("wd-opened")}}})}),t&&((0<=e.toLowerCase().indexOf("comment-")||"#reviews"===e||"#tab-reviews"===e||0<n.indexOf("comment-page-")||0<n.indexOf("cpage="))&&t.click(),document.querySelectorAll(".woocommerce-review-link").forEach(function(e){e.addEventListener("click",function(){t.click()})}))},window.addEventListener("load",function(){woodmartThemeModule.singleProductTabsDescHidden()});