Server IP : 162.213.251.212 / Your IP : 3.138.118.211 [ Web Server : LiteSpeed System : Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : allssztx ( 535) PHP Version : 8.1.31 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/allssztx/./www/jollyprecast/wp-content/themes/woodmart/js/scripts/elements/ |
Upload File : |
/* global woodmart_settings */ (function($) { woodmartThemeModule.$document.on('wdProductsTabsLoaded wdSearchFullScreenContentLoaded wdUpdateWishlist wdShopPageInit wdArrowsLoadProducts wdLoadMoreLoadProducts wdRecentlyViewedProductLoaded', function () { woodmartThemeModule.countDownTimer(); }); $.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(index, value) { woodmartThemeModule.wdElementorAddAction(value, function() { woodmartThemeModule.countDownTimer(); }); }); woodmartThemeModule.countDownTimer = function() { $('.wd-timer').each(function() { var $this = $(this); dayjs.extend(window.dayjs_plugin_utc); dayjs.extend(window.dayjs_plugin_timezone); var time = dayjs.tz($this.data('end-date'), $this.data('timezone')); $this.countdown(time.toDate(), function(event) { if ( 'yes' === $this.data('hide-on-finish') && 'finish' === event.type ) { $this.parent().addClass('wd-hide'); } $this.html(event.strftime('' + '<span class="countdown-days"><span class="wd-timer-value">%-D </span><span class="wd-timer-text">' + woodmart_settings.countdown_days + '</span></span> ' + '<span class="countdown-hours"><span class="wd-timer-value">%H </span><span class="wd-timer-text">' + woodmart_settings.countdown_hours + '</span></span> ' + '<span class="countdown-min"><span class="wd-timer-value">%M </span><span class="wd-timer-text">' + woodmart_settings.countdown_mins + '</span></span> ' + '<span class="countdown-sec"><span class="wd-timer-value">%S </span><span class="wd-timer-text">' + woodmart_settings.countdown_sec + '</span></span>')); }); }); }; $(document).ready(function() { woodmartThemeModule.countDownTimer(); }); })(jQuery);