PageSourceSearch

https://www.kraski-karat.ru/.s/t/1121/ui.js

js kraski-karat.ru collected 2026-10-07 08:31:35 UTC 13,209 bytes, 377 lines download raw bytes

1(function (e) {
2    e.fn.hoverIntent = function (t, n, r) {
3        var i = {
4            interval: 100,
5            sensitivity: 7,
6            timeout: 0
7        };
8        if (typeof t === "object") {
9            i = e.extend(i, t)
10        } else if (e.isFunction(n)) {
11            i = e.extend(i, {
12                over: t,
13                out: n,
14                selector: r
15            })
16        } else {
17            i = e.extend(i, {
18                over: t,
19                out: t,
20                selector: n
21            })
22        }
23        var s, o, u, a;
24        var f = function (e) {
25                s = e.pageX;
26                o = e.pageY
27            };
28        var l = function (t, n) {
29                n.hoverIntent_t = clearTimeout(n.hoverIntent_t);
30                if (Math.abs(u - s) + Math.abs(a - o) < i.sensitivity) {
31                    e(n).off("mousemove.hoverIntent", f);
32                    n.hoverIntent_s = 1;
33                    return i.over.apply(n, [t])
34                } else {
35                    u = s;
36                    a = o;
37                    n.hoverIntent_t = setTimeout(function () {
38                        l(t, n)
39                    }, i.interval)
40                }
41            };
42        var c = function (e, t) {
43                t.hoverIntent_t = clearTimeout(t.hoverIntent_t);
44                t.hoverIntent_s = 0;
45                return i.out.apply(t, [e])
46            };
47        var h = function (t) {
48                var n = jQuery.extend({}, t);
49                var r = this;
50                if (r.hoverIntent_t) {
51                    r.hoverIntent_t = clearTimeout(r.hoverIntent_t)
52                }
53                if (t.type == "mouseenter") {
54                    u = n.pageX;
55                    a = n.pageY;
56                    e(r).on("mousemove.hoverIntent", f);
57                    if (r.hoverIntent_s != 1) {
58                        r.hoverIntent_t = setTimeout(function () {
59                            l(n, r)
60                        }, i.interval)
61                    }
62                } else {
63                    e(r).off("mousemove.hoverIntent", f);
64                    if (r.hoverIntent_s == 1) {
65                        r.hoverIntent_t = setTimeout(function () {
66                            c(n, r)
67                        }, i.timeout)
68                    }
69                }
70            };
71        return this.on({
72            "mouseenter.hoverIntent": h,
73            "mouseleave.hoverIntent": h
74        }, i.selector)
75    }
76})(jQuery);
77jQuery.easing['jswing'] = jQuery.easing['swing'];
78jQuery.extend(jQuery.easing, {
79    def: 'easeOutQuad',
80    swing: function (x, t, b, c, d) {
81        return jQuery.easing[jQuery.easing.def](x, t, b, c, d)
82    },
83    easeInQuad: function (x, t, b, c, d) {
84        return c * (t /= d) * t + b
85    },
86    easeOutQuad: function (x, t, b, c, d) {
87        return -c * (t /= d) * (t - 2) + b
88    },
89    easeInOutQuad: function (x, t, b, c, d) {
90        if ((t /= d / 2) < 1) return c / 2 * t * t + b;
91        return -c / 2 * ((--t) * (t - 2) - 1) + b
92    },
93    easeInCubic: function (x, t, b, c, d) {
94        return c * (t /= d) * t * t + b
95    },
96    easeOutCubic: function (x, t, b, c, d) {
97        return c * ((t = t / d - 1) * t * t + 1) + b
98    },
99    easeInOutCubic: function (x, t, b, c, d) {
100        if ((t /= d / 2) < 1) return c / 2 * t * t * t + b;
101        return c / 2 * ((t -= 2) * t * t + 2) + b
102    },
103    easeInQuart: function (x, t, b, c, d) {
104        return c * (t /= d) * t * t * t + b
105    },
106    easeOutQuart: function (x, t, b, c, d) {
107        return -c * ((t = t / d - 1) * t * t * t - 1) + b
108    },
109    easeInOutQuart: function (x, t, b, c, d) {
110        if ((t /= d / 2) < 1) return c / 2 * t * t * t * t + b;
111        return -c / 2 * ((t -= 2) * t * t * t - 2) + b
112    },
113    easeInQuint: function (x, t, b, c, d) {
114        return c * (t /= d) * t * t * t * t + b
115    },
116    easeOutQuint: function (x, t, b, c, d) {
117        return c * ((t = t / d - 1) * t * t * t * t + 1) + b
118    },
119    easeInOutQuint: function (x, t, b, c, d) {
120        if ((t /= d / 2) < 1) return c / 2 * t * t * t * t * t + b;
121        return c / 2 * ((t -= 2) * t * t * t * t + 2) + b
122    },
123    easeInSine: function (x, t, b, c, d) {
124        return -c * Math.cos(t / d * (Math.PI / 2)) + c + b
125    },
126    easeOutSine: function (x, t, b, c, d) {
127        return c * Math.sin(t / d * (Math.PI / 2)) + b
128    },
129    easeInOutSine: function (x, t, b, c, d) {
130        return -c / 2 * (Math.cos(Math.PI * t / d) - 1) + b
131    },
132    easeInExpo: function (x, t, b, c, d) {
133        return (t == 0) ? b : c * Math.pow(2, 10 * (t / d - 1)) + b
134    },
135    easeOutExpo: function (x, t, b, c, d) {
136        return (t == d) ? b + c : c * (-Math.pow(2, -10 * t / d) + 1) + b
137    },
138    easeInOutExpo: function (x, t, b, c, d) {
139        if (t == 0) return b;
140        if (t == d) return b + c;
141        if ((t /= d / 2) < 1) return c / 2 * Math.pow(2, 10 * (t - 1)) + b;
142        return c / 2 * (-Math.pow(2, -10 * --t) + 2) + b
143    },
144    easeInCirc: function (x, t, b, c, d) {
145        return -c * (Math.sqrt(1 - (t /= d) * t) - 1) + b
146    },
147    easeOutCirc: function (x, t, b, c, d) {
148        return c * Math.sqrt(1 - (t = t / d - 1) * t) + b
149    },
150    easeInOutCirc: function (x, t, b, c, d) {
151        if ((t /= d / 2) < 1) return -c / 2 * (Math.sqrt(1 - t * t) - 1) + b;
152        return c / 2 * (Math.sqrt(1 - (t -= 2) * t) + 1) + b
153    },
154    easeInElastic: function (x, t, b, c, d) {
155        var s = 1.70158;
156        var p = 0;
157        var a = c;
158        if (t == 0) return b;
159        if ((t /= d) == 1) return b + c;
160        if (!p) p = d * .3;
161        if (a < Math.abs(c)) {
162            a = c;
163            var s = p / 4
164        } else var s = p / (2 * Math.PI) * Math.asin(c / a);
165        return -(a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b
166    },
167    easeOutElastic: function (x, t, b, c, d) {
168        var s = 1.70158;
169        var p = 0;
170        var a = c;
171        if (t == 0) return b;
172        if ((t /= d) == 1) return b + c;
173        if (!p) p = d * .3;
174        if (a < Math.abs(c)) {
175            a = c;
176            var s = p / 4
177        } else var s = p / (2 * Math.PI) * Math.asin(c / a);
178        return a * Math.pow(2, -10 * t) * Math.sin((t * d - s) * (2 * Math.PI) / p) + c + b
179    },
180    easeInOutElastic: function (x, t, b, c, d) {
181        var s = 1.70158;
182        var p = 0;
183        var a = c;
184        if (t == 0) return b;
185        if ((t /= d / 2) == 2) return b + c;
186        if (!p) p = d * (.3 * 1.5);
187        if (a < Math.abs(c)) {
188            a = c;
189            var s = p / 4
190        } else var s = p / (2 * Math.PI) * Math.asin(c / a);
191        if (t < 1) return -.5 * (a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b;
192        return a * Math.pow(2, -10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p) * .5 + c + b
193    },
194    easeInBack: function (x, t, b, c, d, s) {
195        if (s == undefined) s = 1.70158;
196        return c * (t /= d) * t * ((s + 1) * t - s) + b
197    },
198    easeOutBack: function (x, t, b, c, d, s) {
199        if (s == undefined) s = 1.70158;
200        return c * ((t = t / d - 1) * t * ((s + 1) * t + s) + 1) + b
201    },
202    easeInOutBack: function (x, t, b, c, d, s) {
203        if (s == undefined) s = 1.70158;
204        if ((t /= d / 2) < 1) return c / 2 * (t * t * (((s *= (1.525)) + 1) * t - s)) + b;
205        return c / 2 * ((t -= 2) * t * (((s *= (1.525)) + 1) * t + s) + 2) + b
206    },
207    easeInBounce: function (x, t, b, c, d) {
208        return c - jQuery.easing.easeOutBounce(x, d - t, 0, c, d) + b
209    },
210    easeOutBounce: function (x, t, b, c, d) {
211        if ((t /= d) < (1 / 2.75)) {
212            return c * (7.5625 * t * t) + b
213        } else if (t < (2 / 2.75)) {
214            return c * (7.5625 * (t -= (1.5 / 2.75)) * t + .75) + b
215        } else if (t < (2.5 / 2.75)) {
216            return c * (7.5625 * (t -= (2.25 / 2.75)) * t + .9375) + b
217        } else {
218            return c * (7.5625 * (t -= (2.625 / 2.75)) * t + .984375) + b
219        }
220    },
221    easeInOutBounce: function (x, t, b, c, d) {
222        if (t < d / 2) return jQuery.easing.easeInBounce(x, t * 2, 0, c, d) * .5 + b;
223        return jQuery.easing.easeOutBounce(x, t * 2 - d, 0, c, d) * .5 + c * .5 + b
224    }
225});
226(function (a) {
227    a.fn.extend({
228        actual: function (b, k) {
229            var c, d, h, g, f, j, e, i;
230            if (!this[b]) {
231                throw '$.actual => The jQuery method "' + b + '" you called does not exist'
232            }
233            h = a.extend({
234                absolute: false,
235                clone: false,
236                includeMargin: undefined
237            }, k);
238            d = this;
239            if (h.clone === true) {
240                e = function () {
241                    d = d.filter(":first").clone().css({
242                        position: "absolute",
243                        top: -1000
244                    }).appendTo("body")
245                };
246                i = function () {
247                    d.remove()
248                }
249            } else {
250                e = function () {
251                    c = d.parents().andSelf().filter(":hidden");
252                    g = h.absolute === true ? {
253                        position: "absolute",
254                        visibility: "hidden",
255                        display: "block"
256                    } : {
257                        visibility: "hidden",
258                        display: "block"
259                    };
260                    f = [];
261                    c.each(function () {
262                        var m = {},
263                            l;
264                        for (l in g) {
265                            m[l] = this.style[l];
266                            this.style[l] = g[l]
267                        }
268                        f.push(m)
269                    })
270                };
271                i = function () {
272                    c.each(function (m) {
273                        var n = f[m],
274                            l;
275                        for (l in g) {
276                            this.style[l] = n[l]
277                        }
278                    })
279                }
280            }
281            e();
282            j = /(outer)/g.test(b) ? d[b](h.includeMargin) : d[b]();
283            i();
284            return j
285        }
286    })
287})(jQuery);
288$('li,a', '.sidebox ul.cat-tree').removeAttr('id').removeAttr('ondblclick').removeAttr('class');
289$('.sidebox ul.cat-tree li,.sidebox .gTable').each(function () {
290    var $this = $(this);
291    $this.html($this.html().replace(/&nbsp;/g, ''))
292});
293$('.sidebox ul.cat-tree:first').addClass('ut-menu ut-vmenu');
294$('.sidebox ul.cat-tree').removeAttr('style').removeClass('cat-tree');
295$(function ($) {
296    function $ulight(parent, url, hlclass) {
297        var ls = $(parent).find("a").get(),
298            o = null,
299            l = 0;
300        for (var j in ls) {
301            if (ls[j].href && url.indexOf(ls[j].href) >= 0) {
302                if (!o || l < ls[j].href.length) {
303                    o = ls[j];
304                    l = ls[j].href.length
305                }
306            }
307        }
308        if (o) $(o).addClass(hlclass)
309    }
310    $ulight($('#catmenu')[0], document.location.href + '/', 'current-item');
311    var parentLi = $('#catmenu ul li:has(ul)').addClass('item-parent');
312    if (!$('#catmenu').hasClass('nav-mobi')) {
313        var config = {
314            interval: 0,
315            over: function () {
316                $('> ul', this).animate({
317                    visibility: 'toggle',
318                    opacity: 'toggle'
319                }, 200)
320            },
321            timeout: 100,
322            out: function () {
323                $('> ul', this).animate({
324                    visibility: 'toggle',
325                    opacity: 'toggle'
326                }, 200)
327            }
328        };
329        parentLi.hoverIntent(config)
330    }
331});
332$(function ($) {
333    var sdLi = $('.sidebox ul li:has(ul)').addClass('item-parent');
334    $(sdLi).each(function () {
335        $(this).prepend('<em>+</em>');
336        $('em', this).css('top', $(this).actual('outerHeight') / 2 - $('em', this).actual('outerHeight') / 2)
337    });
338    $('> em', sdLi).click(function () {
339        if ($(this).siblings('ul').is(':hidden') == true) {
340            $(this).siblings('ul').slideDown(500, 'easeOutExpo');
341            $(this).text('-')
342        } else {
343            $(this).siblings('ul').slideUp(500, 'easeInExpo');
344            $(this).text('+')
345        }
346    });
347    var config = {
348        interval: 0,
349        over: function () {
350            $(this).prev().addClass('hover')
351        },
352        timeout: 0,
353        out: function () {
354            $(this).prev().removeClass('hover')
355        }
356    };
357    $('> a', sdLi).hoverIntent(config)
358});
359$(function ($) {
360    var schB = $('#sch-box .schQuery input');
361    var schV = schB.val();
362    schB.bind('click', function () {
363        if ($(this).val() == schV) {
364            $(this).val('')
365        }
366    });
367    schB.bind('blur', function () {
368        if ($(this).val() == '') {
369            $(this).val(schV)
370        }
371    });
372    $('.site-n a').click(function (e) {
373        if ($(e.target).hasClass('uz-signs')) {
374            e.preventDefault()
375        }
376    })
377});

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.