construction.js 570 B

1234567891011121314
  1. $(function(e) {
  2. "use strict";
  3. var myDate = new Date();
  4. myDate.setDate(myDate.getDate() + 2);
  5. $("#countdown").countdown(myDate, function (event) {
  6. $(this).html(
  7. event.strftime(
  8. '<div class="timer-wrapper"><div class="time">%D</div><span class="text">days</span></div><div class="timer-wrapper"><div class="time">%H</div><span class="text">hrs</span></div><div class="timer-wrapper"><div class="time">%M</div><span class="text">mins</span></div><div class="timer-wrapper"><div class="time">%S</div><span class="text">sec</span></div>'
  9. )
  10. );
  11. });
  12. });