flipclock timer counter http://flipclockjs.com/
var Utils = {
declOfNum: function declOfNum(number, titles){
var cases = [2, 0, 1, 1, 1, 2];
return titles[ (number%100>4 && number%100<20)? 2 : cases[(number%10<5)?number%10:5] ];
}
};
// Значение в секундах
// Можно скрывать секунду через опцию showSeconds
// параметр true выдает модальное знаечние времени, без него - полное
$('.js-clock').FlipClock(window.clockInterval, {
clockFace: 'DailyCounter',
countdown: true,
callbacks: {
interval: function(){
var time = this.factory.time;
Main.$timeHints.eq(0).text(Utils.declOfNum(time.getDays(), ['день', 'дня','дней']));
Main.$timeHints.eq(1).text(Utils.declOfNum(time.getHours(true), ['час','часа','часов']));
Main.$timeHints.eq(2).text(Utils.declOfNum(time.getMinutes(true), ['минута','минуты','минут']));
}
}
});