Advertisement
salmancreation

countdown js html mark up

Nov 6th, 2015
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     jQuery(function ($) {
  2.             'use strict';
  3.  
  4.             (function () {
  5.               // Countdown
  6.                 $(function() {
  7.                   var endDate = ["01/26/2016"];
  8.                   $('.tk-countdown .row').countdown({
  9.                     date: endDate,
  10.                     render: function(data) {
  11.                       $(this.el).html('<div><div class="days"><span>' + this.leadingZeros(data.days, 2) + '</span><span>days</span></div><div class="hours"><span>' + this.leadingZeros(data.hours, 2) + '</span><span>hours</span></div></div><div class="tk-countdown-ms"><div class="minutes"><span>' + this.leadingZeros(data.min, 2) + '</span><span>minutes</span></div><div class="seconds"><span>' + this.leadingZeros(data.sec, 2) + '</span><span>seconds</span></div></div>');
  12.                     }
  13.                   });
  14.                 });
  15.             }());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement