PageSourceSearch

https://gorodlip.ru/static/js/jquery.timeago.ru.js

js gorodlip.ru collected 2026-10-02 17:41:39 UTC 1,215 bytes, 34 lines download raw bytes

1// Russian
2(function() {
3  function numpf(n, f, s, t) {
4    // f - 1, 21, 31, ...
5    // s - 2-4, 22-24, 32-34 ...
6    // t - 5-20, 25-30, ...
7    var n10 = n % 10;
8    if ( (n10 == 1) && ( (n == 1) || (n > 20) ) ) {
9      return f;
10    } else if ( (n10 > 1) && (n10 < 5) && ( (n > 20) || (n < 10) ) ) {
11      return s;
12    } else {
13      return t;
14    }
15  }
16
17  jQuery.timeago.settings.strings = {
18    prefixAgo: null,
19    prefixFromNow: "через",
20    suffixAgo: "назад",
21    suffixFromNow: null,
22    seconds: "меньше минуты",
23    minute: "минуту",
24    minutes: function(value) { return numpf(value, "%d минута", "%d минуты", "%d минут"); },
25    hour: "час",
26    hours: function(value) { return numpf(value, "%d час", "%d часа", "%d часов"); },
27    day: "день",
28    days: function(value) { return numpf(value, "%d день", "%d дня", "%d дней"); },
29    month: "месяц",
30    months: function(value) { return numpf(value, "%d месяц", "%d месяца", "%d месяцев"); },
31    year: "год",
32    years: function(value) { return numpf(value, "%d год", "%d года", "%d лет"); }
33  };
34})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.