You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
cosmopet.ae/wp-content/themes/woodmart/js/scripts/elements/countDownTimer.min.js

1 lines
1.4 KiB

!function(d){woodmartThemeModule.$document.on("wdProductsTabsLoaded wdSearchFullScreenContentLoaded wdUpdateWishlist wdShopPageInit wdArrowsLoadProducts wdLoadMoreLoadProducts wdRecentlyViewedProductLoaded",function(){woodmartThemeModule.countDownTimer()}),d.each(["frontend/element_ready/wd_products.default","frontend/element_ready/wd_products_tabs.default","frontend/element_ready/wd_countdown_timer.default","frontend/element_ready/wd_single_product_countdown.default","frontend/element_ready/wd_banner.default","frontend/element_ready/wd_banner_carousel.default"],function(n,e){woodmartThemeModule.wdElementorAddAction(e,function(){woodmartThemeModule.countDownTimer()})}),woodmartThemeModule.countDownTimer=function(){d(".wd-timer").each(function(){var e=d(this),n=(dayjs.extend(window.dayjs_plugin_utc),dayjs.extend(window.dayjs_plugin_timezone),dayjs.tz(e.data("end-date"),e.data("timezone")));e.countdown(n.toDate(),function(n){"yes"===e.data("hide-on-finish")&&"finish"===n.type&&e.parent().addClass("wd-hide"),e.html(n.strftime('<span class="countdown-days">%-D <span>'+woodmart_settings.countdown_days+'</span></span> <span class="countdown-hours">%H <span>'+woodmart_settings.countdown_hours+'</span></span> <span class="countdown-min">%M <span>'+woodmart_settings.countdown_mins+'</span></span> <span class="countdown-sec">%S <span>'+woodmart_settings.countdown_sec+"</span></span>"))})})},d(document).ready(function(){woodmartThemeModule.countDownTimer()})}(jQuery);