Server IP : 162.0.217.223 / Your IP : 216.73.216.168 Web Server : LiteSpeed System : Linux premium269.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : mypckeys ( 1539) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/mypckeys/yeslicense.org/wp-content/themes/woodmart/js/scripts/elements/ |
Upload File : |
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,t){t&&e.querySelectorAll('[class*="wpb_animate"]').forEach(function(e){for(var t,a=Array.from(e.classList),i=0;i<a.length;i++)0<=a[i].indexOf("wd-anim-name_")&&(t=a[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(t)&&e.classList.remove(t)}),e.parentNode.querySelectorAll('[class*="wpb_animate"]').forEach(function(e){for(var t,a=Array.from(e.classList),i=0,n=0;n<a.length;n++)0<=a[n].indexOf("wd-anim-delay_")&&(i=parseInt(a[n].split("_")[1])),0<=a[n].indexOf("wd-anim-name_")&&(t=a[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(t)&&e.classList.remove(t)},i)})},woodmartThemeModule.sliderAnimations=function(){document.querySelectorAll(".wd-slider > .wd-carousel-inner > .wd-carousel").forEach(function(e){function a(e,t=!1){woodmartThemeModule.sliderClearAnimations(e,t),woodmartThemeModule.runAnimations(e,t)}e.querySelectorAll('[class*="wd-animation"]').forEach(function(e){e.classList.add("wd-animation-ready")}),a(e.querySelector(".wd-slide"),!0),e.addEventListener("wdSlideChange",function(t){a(Array.prototype.filter.call(t.target.swiper.wrapperEl.children,e=>t.detail.activeIndex==e.dataset.swiperSlideIndex).shift()||t.target.swiper.wrapperEl.children[t.detail.activeIndex]),woodmartThemeModule.$document.trigger("wood-images-loaded")})})},woodmartThemeModule.runAnimations=function(e,t){e.parentElement.querySelectorAll('[class*="wd-animation"]').forEach(function(e){e.classList.remove("wd-animated")}),e.querySelectorAll('[class*="wd-animation"]').forEach(function(e){var t=0;e.classList.forEach(e=>{e.includes("wd_delay_")&&(t=parseInt(e.split("_")[2]))}),setTimeout(function(){e.classList.add("wd-animated")},t)}),e.querySelectorAll('[class*="wpb_animate"]').forEach(function(e){for(var t=e.classList,a=0,i=0;i<t.length;i++)0<=t[i].indexOf("wd-anim-delay_")&&(a=parseInt(t[i].split("_")[1])),0<=t[i].indexOf("wd-anim-name_")&&t[i].split("_")[1];setTimeout(function(){e.classList.remove("wd-off-anim"),e.classList.add("wpb_start_animation"),e.classList.add("animated")},a)})},woodmartThemeModule.sliderLazyLoad=function(){const e=document.querySelectorAll(".wd-slider > .wd-carousel-inner > .wd-carousel");function a(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){a(e.querySelector(".wd-carousel-wrap").firstElementChild)})}),e.forEach(function(e){e.addEventListener("wdSlideChange",function(t){a(Array.prototype.filter.call(t.target.swiper.wrapperEl.children,e=>t.detail.activeIndex==e.dataset.swiperSlideIndex).shift()||Array.prototype.filter.call(t.target.swiper.wrapperEl.children,e=>e.classList.contains("woodmart-loaded")&&e.nextElementSibling?e.nextElementSibling:null).shift())})})},window.addEventListener("load",function(){woodmartThemeModule.sliderLazyLoad(),woodmartThemeModule.sliderAnimations()});