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/woodmart22/js/scripts/elements/countDownTimer.min.js

1 lines
1.1 KiB

!function(a){woodmartThemeModule.$document.on("wdProductsTabsLoaded wdUpdateWishlist wdShopPageInit",function(){woodmartThemeModule.countDownTimer()}),a.each(["frontend/element_ready/wd_products.default","frontend/element_ready/wd_products_tabs.default","frontend/element_ready/wd_countdown_timer.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.countDownTimer()})}),woodmartThemeModule.countDownTimer=function(){a(".wd-timer").each(function(){var b=a(this);dayjs.extend(window.dayjs_plugin_utc),dayjs.extend(window.dayjs_plugin_timezone);var c=dayjs.tz(b.data("end-date"),b.data("timezone"));b.countdown(c.toDate(),function(a){b.html(a.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>"))})})},a(document).ready(function(){woodmartThemeModule.countDownTimer()})}(jQuery);