Advertisement
Guest User

jquery.countdown-pl

a guest
Oct 24th, 2012
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. /* http://keith-wood.name/countdown.html
  2. * Polish initialisation for the jQuery countdown extension
  3. * Written by Pawel Lewtak lewtak@gmail.com (2008) */
  4. (function($) {
  5. $.countdown.regional['pl'] = {
  6. labels: ['lat', 'miesięcy', 'tygodni', 'dni', 'godzin', 'minut', 'sekund'],
  7. labels1: ['rok', 'miesiąc', 'tydzień', 'dzień', 'godzina', 'minuta', 'sekunda'],
  8. labels2: ['lata', 'miesiące', 'tygodnie', 'dni', 'godziny', 'minuty', 'sekundy'],
  9. compactLabels: ['l', 'm', 't', 'd'], compactLabels1: ['r', 'm', 't', 'd'],
  10. whichLabels: function(amount) {
  11. var units = amount % 10;
  12. var tens = Math.floor((amount % 100) / 10);
  13. return (amount == 1 ? 1 : (units >= 2 && units <= 4 && tens != 1 ? 2 : 0));
  14. },
  15. digits: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'],
  16. timeSeparator: ':', isRTL: false};
  17. $.countdown.setDefaults($.countdown.regional['pl']);
  18. })(jQuery);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement