PageSourceSearch

https://freelance.ru/web/js/locales/jquery.timeago.ru.js?v=1790076110

js freelance.ru collected 2026-09-24 08:26:52 UTC 1,505 bytes, 44 lines download raw bytes

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

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.