gutenberg
3 years ago
gutenbergComponents
3 years ago
autoupdate_banner.js
3 years ago
banner_main.js
3 years ago
circle-progress.js
3 years ago
datatables.min.js
4 years ago
jquery.multi-select.js
4 years ago
jquery.tagsinput.min.js
4 years ago
referral_program.js
3 years ago
sidebar-plugin.js
3 years ago
speed.js
3 years ago
two_admin.js
1 year ago
two_admin_bar.js
4 years ago
two_bf_countdown.js
3 years ago
two_deactivate_plugin.js
3 years ago
two_elementor_editor.js
2 years ago
two_preview.js
3 years ago
two_update_white_label.js
1 year ago
two_white_label.js
2 years ago
two_bf_countdown.js
24 lines
| 1 | var finishedDate = new Date("Nov 29, 2022 00:00:00");//hour-4 our timezone |
| 2 | // var timezoneDiff = countDownDate.getTimezoneOffset() * 60000; |
| 3 | // var finishedDate = new Date(countDownDate.getTime() - timezoneDiff ); |
| 4 | |
| 5 | var x = setInterval(function() { |
| 6 | |
| 7 | var distance = finishedDate - new Date(); |
| 8 | |
| 9 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); |
| 10 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); |
| 11 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); |
| 12 | if (typeof days == 'number') { |
| 13 | jQuery(".two_bfc_days .two_black_friday_countdown_each:nth-child(1)").html(days.toString().padStart(2, '0')[0]); |
| 14 | jQuery(".two_bfc_days .two_black_friday_countdown_each:nth-child(2)").html(days.toString().padStart(2, '0')[1]); |
| 15 | } |
| 16 | if (typeof hours == 'number') { |
| 17 | jQuery(".two_bfc_hours .two_black_friday_countdown_each:nth-child(1)").html(hours.toString().padStart(2, '0')[0]); |
| 18 | jQuery(".two_bfc_hours .two_black_friday_countdown_each:nth-child(2)").html(hours.toString().padStart(2, '0')[1]); |
| 19 | } |
| 20 | if (typeof minutes == 'number') { |
| 21 | jQuery(".two_bfc_minutes .two_black_friday_countdown_each:nth-child(1)").html(minutes.toString().padStart(2, '0')[0]); |
| 22 | jQuery(".two_bfc_minutes .two_black_friday_countdown_each:nth-child(2)").html(minutes.toString().padStart(2, '0')[1]); |
| 23 | } |
| 24 | }, 1000); |