PageSourceSearch

http://www.territory12.in.ua/life/js/newyear.js

js territory12.in.ua collected 2026-10-09 01:28:53 UTC 2,953 bytes, 96 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
12    function f() {
13        var i = "http://www.territory12.in.ua/life/balls/ny2012.swf";
14        i = i + "?nc=" + (new Date().getTime());
15        swfobject.embedSWF(i, "z-audio__player", "1", "1", "9.0.0", null, {}, {
16            allowScriptAccess: "always",
17            hasPriority: "true"
18        })
19    }
20    function h(i) {
21        if ($.browser.msie) {
22            return window[i]
23        } else {
24            return document[i]
25        }
26    }
27    window.flashInited = function () {
28        d = function (j) {
29            try {
30                h("z-audio__player").playSound(j)
31            } catch (i) {}
32        }
33    };
34    if (window.swfobject) {
35        window.setTimeout(function () {
36            $("body").append('<div class="g-invisible"><div id="z-audio__player"></div></div>');
37            f()
38        }, 100)
39    }
40    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", ";", "'", "\\"];
41    var k = ["z", "x", "c", "v", "b", "n", "m", ",", ".", "/"];
42    var g = 36;
43    var a = {};
44    for (var e = 0, c = l.length; e < c; e++) {
45        a[l[e].charCodeAt(0)] = e
46    }
47    for (var e = 0, c = k.length; e < c; e++) {
48        a[k[e].charCodeAt(0)] = e
49    }
50    $(document).keypress(function (j) {
51        var i = $(j.target);
52        if (!i.is("input") && j.which in a) {
53            d(a[j.which])
54        }
55    });
56
57    function b(n) {
58        if (n.className.indexOf("b-ball__right") > -1) {
59            n = n.parentNode
60        }
61        var i = /b-ball_n(\d+)/.exec(n.className);
62        var j = /b-head-decor__inner_n(\d+)/.exec(n.parentNode.className);
63        if (i && j) {
64            i = parseInt(i[1], 10) - 1;
65            j = parseInt(j[1], 10) - 1;
66            d((i + j * 9) % g)
67        }
68    }
69    function m(j) {
70        var i = $(j);
71        if (j.className.indexOf(" bounce") > -1) {
72            return
73        }
74        i.addClass("bounce");
75
76        function n() {
77            i.removeClass("bounce").addClass("bounce1");
78
79            function o() {
80                i.removeClass("bounce1").addClass("bounce2");
81
82                function p() {
83                    i.removeClass("bounce2").addClass("bounce3");
84
85                    function q() {
86                        i.removeClass("bounce3")
87                    }
88                    setTimeout(q, 300)
89                }
90                setTimeout(p, 300)
91            }
92            setTimeout(o, 300)
93        }
94        setTimeout(n, 300)
95    }
96});

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.