PageSourceSearch

https://ehms.sggw.edu.pl/standard/layout//jq-script.js?ver=8.3916-09-2026

js sggw.edu.pl collected 2026-10-01 11:26:01 UTC 1,279 bytes, 41 lines download raw bytes

1/**
2 * Ten plik powinien zawierać tylko skrypty jquery
3 * z odpowiednim "know-how"
4 * 
5 * Closure jest zrobiony po to, żeby nie nadpisywać
6 * innych funkcji już wbudowanych w ehms
7 * Jedyne co powinno wyjść na zewnątrz to $.fn
8 * 
9 * Przy tworzeniu elementów warto pamiętać o korzystaniu
10 * wyłącznie z klas z prefixem js (camelCase) do query selectorów
11 * np.: flash jsFlash, alert jsAlert, delete-row jsDeleteRow
12 * 
13 * Dodatkowo jeśli jest coś powtarzalne w obrębie danego elementu
14 * powinno się użyć funkcji tzw. handler, żeby nie powielać kodu
15 * np dla selektora jsFlash będzie odpowiednio jsFlashHandler lub inny
16 * w zależności od przeznaczenia
17 */
18(function () {
19    jQuery(document).ready(function ($) {
20        $('.jsFlash').each(function (index, item) {
21            setTimeout(function () {
22                jsFlashFadeOutHandler(item);
23            }, 10000);
24        });
25
26        $('.jsFlash').on('click', function () {
27            jsFlashFadeOutHandler(this);
28        });
29    });
30
31    /**
32     * Fade out handler for flash elements
33     * 
34     * @param {HTMLElement} flash Element to handle
35     */
36    function jsFlashFadeOutHandler(flash) {
37        $(flash).fadeOut(500, function () {
38            $(this).remove();
39        });
40    }
41})();

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.