PageSourceSearch

https://www.goldrepublic.com/js/mask.js

js goldrepublic.com collected 2026-09-24 09:35:28 UTC 2,579 bytes, 68 lines download raw bytes

1(function(a) {
2    a.fn.mask = function(c, b, d) {
3        a(this).each(function() {
4            if (b !== undefined && b > 0) {
5                var e = a(this);
6                e.data("_mask_timeout", setTimeout(function() {
7                    a.maskElement(e, c, d);
8                }, b));
9            } else {
10                a.maskElement(a(this), c, d);
11            }
12        });
13    };
14    a.fn.unmask = function() {
15        a(this).each(function() {
16            a.unmaskElement(a(this));
17        });
18    };
19    a.fn.isMasked = function() {
20        return this.hasClass("masked");
21    };
22    a.maskElement = function(d, c, f) {
23        if (d.data("_mask_timeout") !== undefined) {
24            clearTimeout(d.data("_mask_timeout"));
25            d.removeData("_mask_timeout");
26        }
27        if (d.isMasked()) {
28            a.unmaskElement(d);
29        }
30        if (d.css("position") == "static") {
31            d.addClass("masked-relative");
32        }
33        d.addClass("masked");
34        var e = a('<div class="loadmask"></div>');
35        if (navigator.userAgent.toLowerCase().indexOf("msie") > -1) {
36            e.height(d.height() + parseInt(d.css("padding-top")) + parseInt(d.css("padding-bottom")));
37            e.width(d.width() + parseInt(d.css("padding-left")) + parseInt(d.css("padding-right")));
38        }
39        if (navigator.userAgent.toLowerCase().indexOf("msie 6") > -1) {
40            d.find("select").addClass("masked-hidden");
41        }
42        d.append(e);
43        if (c !== undefined) {
44            var b = a('<div class="loadmask-msg" style="display:none;"></div>');
45            b.append("<div>" + c + "</div>");
46            if (f == false) {
47                b.find("div").css({
48                    backgroundImage: "none",
49                    paddingLeft: 10
50                });
51            }
52            d.append(b);
53            b.css("top", Math.round(d.height() / 2 - (b.height() - parseInt(b.css("padding-top")) - parseInt(b.css("padding-bottom"))) / 2) + "px");
54            b.css("left", Math.round(d.width() / 2 - (b.width() - parseInt(b.css("padding-left")) - parseInt(b.css("padding-right"))) / 2) + "px");
55            b.show();
56        }
57    };
58    a.unmaskElement = function(b) {
59        if (b.data("_mask_timeout") !== undefined) {
60            clearTimeout(b.data("_mask_timeout"));
61            b.removeData("_mask_timeout");
62        }
63        b.find(".loadmask-msg,.loadmask").remove();
64        b.removeClass("masked");
65        b.removeClass("masked-relative");
66        b.find("select").removeClass("masked-hidden");
67    };
68})(jQuery);

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.