PageSourceSearch

https://www.photoever.extremaalbum.com/.core/.js/listeners.js?rand=970688327

js extremaalbum.com collected 2026-10-05 01:01:28 UTC 3,447 bytes, 115 lines download raw bytes

1
2/*
3 *   LISTENERS
4 *   ============
5 *   AKCJE NASŁUCHIWANIA ZDARZEŃ
6 *   MYSZKI I KLAWIATURY
7 */
8
9var mouseover = [];     // --   TABLICA DLA LISTENERA "MOUSEOVER"
10
11
12
13
14
15/* --   AKCJE PO ZAŁADOWANIU DOKUMENTU   -- */
16
17$(document).ready(function()
18{
19
20    /*
21     *   LISTENER CLASS: ".KEYUP"
22     *   ---------------------------
23     *   KLASA REAGUJĄCA NA ZDARZENIE KLAWIATURY "KEYUP" DLA
24     *   OKREŚLONEGO KLAWISZA I TRIGEROWANEJ AKCJI
25     *   --------------------------------------------
26     *   WYMAGANE ATRYBUTY OBIEKTU:
27     *   - DATA-KEY - NUMER NASŁUCHIWANEGO KLAWISZA
28     *   - DATA-ACTION - TRIGEROWANA AKCJA
29     *   ----------------------------------
30     *   OPCJONALNE:
31     *   - KLASA ".CTRL" I ".SHIFT"
32     */
33
34    $(window).bind("keyup", function(e)
35    {
36        $(".listener.keyup").each(function()
37        {
38            var obj = $(this);
39            var key = obj.data("key");
40            var action = obj.data("action");
41            var ctrl_needed = obj.hasClass("ctrl");
42
43            if (typeof key !== "undefined" && typeof action !== "undefined") {
44                if (ctrl_needed) {
45                    if (e.keyCode === parseInt(key) && ctrl) {
46                        obj.trigger(action);
47                    }
48                }
49                else if (e.keyCode === parseInt(key)) {
50                    obj.trigger(action);
51                }
52            }
53        });
54    });
55
56
57
58
59
60    /*
61     *   LISTENER CLASS: ".MOUSEOVER"
62     *   -------------------------------
63     *   KLASA REJESTRUJĄCA ZDARZENIA MYSZKI "MOUSEENTER" I "MOUSELEAVE"
64     *   LISTENER ZAPISUJE DO TABLICY ID OBIEKTU PO NAJECHANIU NA NIEGO MYSZKĄ
65     *   I USUWA GO Z TABLICY PO ZJECHANIU MYSZKI Z NIEGO
66     */
67
68    $("body").on("mouseenter", ".listener.mouseover", function()
69    {
70        var obj = $(this);
71        var obj_id = obj.attr("id");
72        var obj_class = obj.data("class");
73        if (typeof obj_id !== "undefined") mouseover.push(obj_id);
74        if (typeof obj_class !== "undefined") mouseover.push(obj_class);
75    });
76
77    $("body").on("mouseleave", ".listener.mouseover", function()
78    {
79        var obj = $(this);
80        var obj_id = obj.attr("id");
81        var obj_class = obj.data("class");
82        if (typeof obj_id !== "undefined") mouseover.splice(mouseover.indexOf(obj_id), 1);
83        if (typeof obj_class !== "undefined") mouseover.splice(mouseover.indexOf(obj_class), 1);
84    });
85
86    $(window).bind("click", function()
87    {
88        $(".window-click").each(function()
89        {
90            var obj = $(this);
91            var obj_id = obj.attr("id");
92
93            if (!mouseover.includes(obj_id))
94            {
95                // --   WYJĄTEK DLA OPCJI MODUŁÓW, JEGO WIDOCZNOŚĆ
96                // --   STEROWANA JEST KLASĄ BODY
97                // --   DO UJEDNOLICENIA
98
99                if (obj_id === "view-options") {
100                    if (!is_calendar) {
101                        $("body").removeClass("show-view-options");
102                        $("#view-options").removeClass("toggle");
103                    }
104                } else if (obj_id === "phrases-context-menu") {
105                    freeze_selected = false;
106                    obj.HIDE();
107                } else {
108                    obj.HIDE();
109                }
110            }
111        });
112    });
113
114});
115

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.