PageSourceSearch

https://cupofig.ru/templates/standart/js/holiday.js

js cupofig.ru collected 2026-10-07 19:42:29 UTC 1,717 bytes, 73 lines download raw bytes

1$(function () {
2	var d = function () {};
3	$(document).delegate(".b-ball_bounce", "mouseenter", function () {
4		b(this);
5		m(this)
6	}).delegate(".b-ball_bounce .b-ball__right", "mouseenter", function (i) {
7		i.stopPropagation();
8		b(this);
9		m(this)
10	});
11	function h(i) {
12		if ($.browser.msie) {
13			return window[i]
14		} else {
15			return document[i]
16		}
17	}
18	var l = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "-", "=", "q", "w", "e", "r", "t", "y", "u", "i", "o", "p", "[", "]", "a", "s", "d", "f", "g", "h", "j", "k", "l", ";", "'", "\\"];
19	var k = ["z", "x", "c", "v", "b", "n", "m", ",", ".", "/"];
20	var g = 36;
21	var a = {};
22	for (var e = 0, c = l.length; e < c; e++) {
23		a[l[e].charCodeAt(0)] = e
24	}
25	for (var e = 0, c = k.length; e < c; e++) {
26		a[k[e].charCodeAt(0)] = e
27	}
28	$(document).keypress(function (j) {
29		var i = $(j.target);
30		if (!i.is("input") && j.which in a) {
31			d(a[j.which])
32		}
33	});
34	function b(n) {
35		if (n.className.indexOf("b-ball__right") > -1) {
36			n = n.parentNode
37		}
38		var i = /b-ball_n(\d+)/.exec(n.className);
39		var j = /b-head-decor__inner_n(\d+)/.exec(n.parentNode.className);
40		if (i && j) {
41			i = parseInt(i[1], 10) - 1;
42			j = parseInt(j[1], 10) - 1;
43			d((i + j * 9) % g)
44		}
45	}
46	function m(j) {
47		var i = $(j);
48		if (j.className.indexOf(" bounce") > -1) {
49			return
50		}
51		i.addClass("bounce");
52
53		function n() {
54			i.removeClass("bounce").addClass("bounce1");
55
56			function o() {
57				i.removeClass("bounce1").addClass("bounce2");
58
59				function p() {
60					i.removeClass("bounce2").addClass("bounce3");
61
62					function q() {
63						i.removeClass("bounce3")
64					}
65					setTimeout(q, 300)
66				}
67				setTimeout(p, 300)
68			}
69			setTimeout(o, 300)
70		}
71		setTimeout(n, 300)
72	}
73});

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.