ok
Direktori : /home2/selectio/www/sqarextechnologies.com/assets/js/ |
Current File : //home2/selectio/www/sqarextechnologies.com/assets/js/countdown.js |
(function ($) { 'use strict'; // Time Counter function makeTimer() { var endTime = new Date("14 March 2026"); endTime = (Date.parse(endTime) / 1000); var now = new Date(); now = (Date.parse(now) / 1000); var timeLeft = endTime - now; var days = Math.floor(timeLeft / 86400); var hours = Math.floor((timeLeft - (days * 86400)) / 3600); var minutes = Math.floor((timeLeft - (days * 86400) - (hours * 3600 )) / 60); var seconds = Math.floor((timeLeft - (days * 86400) - (hours * 3600) - (minutes * 60))); if (hours < "10") { hours = "0" + hours; } if (minutes < "10") { minutes = "0" + minutes; } if (seconds < "10") { seconds = "0" + seconds; } $("#days").html(days); $("#hours").html(hours); $("#minutes").html(minutes); $("#seconds").html(seconds); } setInterval(function() { makeTimer(); }, 1000); })(jQuery);