PageSourceSearch

https://ferimex.sk/frontend/js/showloadingpopup.js?v=1791293614

js ferimex.sk collected 2026-10-08 20:39:50 UTC 2,512 bytes, 95 lines download raw bytes

1$(function () {
2
3    $('.show-loading-popup').on('click', function () {
4        if (!checkForm(this)) {
5            return;
6        }
7        showLoadingPopup();
8    });
9    $('.show-loading-popup').find("a,button").on('click', function () {
10        if (!checkForm(this)) {
11            return;
12        }
13        showLoadingPopup();
14    });
15
16    $('.show-loading-button').on('click', function () {
17        if (checkForm(this)){
18            showLoadingButton(this);
19        }
20    });
21
22
23    $('form').each(function (i, form) {
24        $('button[type="submit"]', form).click(function () {
25            $('.nav.nav-tabs', form).each(function (i, nav) {
26                $(nav).find(">li>a").each(function (i, link) {
27                    var tab = $("#" + $(link).attr('href').substr(1) + '.tab-pane');
28                    var found = false;
29                    $(tab).find('input,textarea,select').each(function (i, elm) {
30                        if (!$(elm).get(0).checkValidity()) {
31                            $(link).click();
32                            found = true;
33                            return false;
34                        }
35                    });
36                    if (found) {
37                        return false;
38                    }
39                })
40            });
41        })
42    });
43});
44
45function checkForm(elm) {
46    var ret = true;
47    $(elm).closest("form").each(function (i, form) {
48        $(form).find('input,textarea,select').each(function (i, elm2) {
49            if (!$(elm2).get(0).checkValidity()) {
50                ret = false;
51            }
52        });
53    });
54    return ret;
55}
56
57function showLoadingPopup(message) {
58    $('#loading_box h2').html("Načítavam obsah");
59    if (message != undefined) {
60        $('#loading_box h2').html(message);
61    }
62    hideLoadingPopup();
63    $.magnificPopup.open({
64        type:      'inline',
65        preloader: false,
66        modal:     true,
67        items:     {
68            src: '#loading_box'
69        },
70        callbacks: {
71            open: function () {
72            }
73        }
74    });
75}
76
77function hideLoadingPopup() {
78    $.magnificPopup.close();
79}
80
81function hasLoadingButton(button) {
82    var $this = $(button);
83    var elm = $this.closest('.elm_loading');
84    return elm.length > 0;
85}
86
87function showLoadingButton(button) {
88    var $this = $(button);
89    $this.closest('.elm_loading').addClass('loading');
90}
91
92function hideLoadingButton(button) {
93    var $this = $(button);
94    $this.closest('.elm_loading').removeClass('loading');
95}

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.