File:  [LON-CAPA] / loncom / html / adm / countdown / jquery.countdown-ru.js
Revision 1.1: download - view: text, annotated - select for diffs
Sun Mar 18 13:51:11 2012 UTC (12 years, 4 months ago) by foxr
Branches: MAIN
CVS tags: version_2_11_0_RC1, HEAD
Add jquery countdown widget to the repository (BZ 5891 resolution will use
this for the timer).

/* http://keith-wood.name/countdown.html
 * Russian initialisation for the jQuery countdown extension
 * Written by Sergey K. (xslade{at}gmail.com) June 2010. */
(function($) {
        $.countdown.regional['ru'] = {
		labels: ['Лет', 'Месяцев', 'Недель', 'Дней', 'Часов', 'Минут', 'Секунд'],
		labels1: ['Год', 'Месяц', 'Неделя', 'День', 'Час', 'Минута', 'Секунда'],
		labels2: ['Года', 'Месяца', 'Недели', 'Дня', 'Часа', 'Минуты', 'Секунды'],
		compactLabels: ['l', 'm', 't', 'd'], compactLabels1: ['r', 'm', 't', 'd'],
		whichLabels: function(amount) {
			var units = amount % 10;
			var tens = Math.floor((amount % 100) / 10);
			return (amount == 1 ? 1 : (units >= 2 && units <= 4 && tens != 1 ? 2 :
				(units == 1 && tens != 1 ? 1 : 0)));
		},
		timeSeparator: ':', isRTL: false};
	$.countdown.setDefaults($.countdown.regional['ru']);
})(jQuery);

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>