PATH:
home
/
thebhoeo
/
.trash
/
woodmart
/
js
/
scripts
/
elements
woodmartThemeModule.$document.on("wdShopPageInit",function(){woodmartThemeModule.sliderAnimations(),woodmartThemeModule.sliderLazyLoad()}),["frontend/element_ready/wd_slider.default"].forEach(function(e){woodmartThemeModule.wdElementorAddAction(e,function(){woodmartThemeModule.sliderAnimations(),woodmartThemeModule.sliderLazyLoad()})}),woodmartThemeModule.sliderClearAnimations=function(e,a){a&&e.querySelectorAll('[class*="wpb_animate"]').forEach(function(e){for(var a,t=Array.from(e.classList),i=0;i<t.length;i++)0<=t[i].indexOf("wd-anim-name_")&&(a=t[i].split("_")[1]);e.classList.contains("wpb_start_animation")&&e.classList.remove("wpb_start_animation"),e.classList.contains("animated")&&e.classList.remove("animated"),e.classList.contains(a)&&e.classList.remove(a)}),e.parentNode.querySelectorAll('[class*="wpb_animate"]').forEach(function(e){for(var a,t=Array.from(e.classList),i=0,n=0;n<t.length;n++)0<=t[n].indexOf("wd-anim-delay_")&&(i=parseInt(t[n].split("_")[1])),0<=t[n].indexOf("wd-anim-name_")&&(a=t[n].split("_")[1]);setTimeout(function(){e.classList.contains("wpb_start_animation")&&e.classList.remove("wpb_start_animation"),e.classList.contains("animated")&&e.classList.remove("animated"),e.classList.contains(a)&&e.classList.remove(a)},i)})},woodmartThemeModule.sliderAnimations=function(){document.querySelectorAll(".wd-slider > .wd-carousel-inner > .wd-carousel").forEach(function(e){function t(e,a=!1){woodmartThemeModule.sliderClearAnimations(e,a),woodmartThemeModule.runAnimations(e,a)}e.querySelectorAll('[class*="wd-animation"]').forEach(function(e){e.classList.add("wd-animation-ready")}),t(e.querySelector(".wd-slide"),!0),e.addEventListener("wdSlideChange",function(a){t(Array.prototype.filter.call(a.target.swiper.wrapperEl.children,e=>a.detail.activeIndex==e.dataset.swiperSlideIndex).shift()||a.target.swiper.wrapperEl.children[a.detail.activeIndex]),woodmartThemeModule.$document.trigger("wood-images-loaded")})})},woodmartThemeModule.runAnimations=function(e,a){e.parentElement.querySelectorAll('[class*="wd-animation"]').forEach(function(e){e.classList.remove("wd-animated"),e.classList.remove("wd-in")}),e.querySelectorAll('[class*="wd-animation"]').forEach(function(e){var a=0;e.classList.forEach(e=>{e.includes("wd_delay_")&&(a=parseInt(e.split("_")[2]))}),setTimeout(function(){e.classList.add("wd-animated"),e.classList.add("wd-in")},a)}),e.querySelectorAll('[class*="wpb_animate"]').forEach(function(e){for(var a=e.classList,t=0,i=0;i<a.length;i++)0<=a[i].indexOf("wd-anim-delay_")&&(t=parseInt(a[i].split("_")[1])),0<=a[i].indexOf("wd-anim-name_")&&a[i].split("_")[1];setTimeout(function(){e.classList.remove("wd-off-anim"),e.classList.add("wpb_start_animation"),e.classList.add("animated")},t)})},woodmartThemeModule.sliderLazyLoad=function(){const e=document.querySelectorAll(".wd-slider > .wd-carousel-inner > .wd-carousel");function t(e){e&&e.nextElementSibling&&e.nextElementSibling.classList.add("woodmart-loaded"),e.classList.add("woodmart-loaded"),e.closest(".wd-carousel").querySelectorAll('[id="'+e.id+'"]').forEach(function(e){e.classList.add("woodmart-loaded")})}window.addEventListener("wdEventStarted",function(){e.forEach(function(e){t(e.querySelector(".wd-carousel-wrap").firstElementChild)})}),e.forEach(function(e){e.addEventListener("wdSlideChange",function(a){t(Array.prototype.filter.call(a.target.swiper.wrapperEl.children,e=>a.detail.activeIndex==e.dataset.swiperSlideIndex).shift()||Array.prototype.filter.call(a.target.swiper.wrapperEl.children,e=>e.classList.contains("woodmart-loaded")&&e.nextElementSibling?e.nextElementSibling:null).shift())})})},window.addEventListener("load",function(){woodmartThemeModule.sliderLazyLoad(),woodmartThemeModule.sliderAnimations()});
[-] view3d.min.js
[edit]
[-] videoPoster.min.js
[edit]
[-] banner.js
[edit]
[-] button.min.js
[edit]
[-] button.js
[edit]
[-] slider.min.js
[edit]
[-] googleMap.js
[edit]
[-] imageGallery.min.js
[edit]
[-] countDownTimer.min.js
[edit]
[-] infoBox.js
[edit]
[-] videoElement.min.js
[edit]
[-] toggle.min.js
[edit]
[-] videoPoster.js
[edit]
[-] compareImages.js
[edit]
[-] imageGallery.js
[edit]
[-] countDownTimer.js
[edit]
[-] accordion.js
[edit]
[-] counter.min.js
[edit]
[-] menuAnchor.js
[edit]
[-] hotSpot.js
[edit]
[-] stickyColumns.min.js
[edit]
[-] offCanvasColumnBtn.js
[edit]
[-] counter.js
[edit]
[-] googleMap.min.js
[edit]
[-] contentPopup.min.js
[edit]
[-] menuAnchor.min.js
[edit]
[-] accordion.min.js
[edit]
[-] compareImages.min.js
[edit]
[-] toggle.js
[edit]
[-] tabs.js
[edit]
[-] buttonShowMore.js
[edit]
[+]
..
[-] offCanvasColumnBtn.min.js
[edit]
[-] tabs.min.js
[edit]
[-] videoElementPopup.min.js
[edit]
[-] videoElementPopup.js
[edit]
[-] stickyColumns.js
[edit]
[-] openStreetMap.min.js
[edit]
[-] stockStatus.min.js
[edit]
[-] hotSpot.min.js
[edit]
[-] stockStatus.js
[edit]
[-] view3d.js
[edit]
[-] slider.js
[edit]
[-] banner.min.js
[edit]
[-] buttonShowMore.min.js
[edit]
[-] videoElement.js
[edit]
[-] infoBox.min.js
[edit]
[-] openStreetMap.js
[edit]
[-] contentPopup.js
[edit]