PageSourceSearch

https://plumsteadelectrical.co.za/assets/loggerjs.js?vi=6abf9152

js plumsteadelectrical.co.za collected 2026-10-09 23:30:29 UTC 1,765 bytes, 53 lines download raw bytes

1(function($) {
2    function getLoggerState() {
3        var debugAttr;
4        if (typeof debugAttr === "undefined") {
5            debugAttr = $("html").data("debug");
6        }
7        return typeof debugAttr !== "undefined" ? debugAttr : false;
8    }
9    $.logger = {
10        enable: function() {
11            this._forcedState = true;
12        },
13        disable: function() {
14            this._forcedState = false;
15        },
16        _isEnabled: function() {
17            if (typeof this._forcedState !== "undefined") {
18                return this._forcedState;
19            }
20            return getLoggerState();
21        },
22        log: function() {
23            if (!this._isEnabled()) return;
24            if (window.console && typeof console.log === "function") {
25                console.log.apply(console, arguments);
26            }
27        },
28        info: function() {
29            if (!this._isEnabled()) return;
30            if (window.console && typeof console.info === "function") {
31                console.info.apply(console, arguments);
32            }
33        },
34        debug: function() {
35            if (!this._isEnabled()) return;
36            if (window.console && typeof console.debug === "function") {
37                console.debug.apply(console, arguments);
38            }
39        },
40        warn: function() {
41            if (!this._isEnabled()) return;
42            if (window.console && typeof console.warn === "function") {
43                console.warn.apply(console, arguments);
44            }
45        },
46        error: function() {
47            if (!this._isEnabled()) return;
48            if (window.console && typeof console.error === "function") {
49                console.error.apply(console, arguments);
50            }
51        }
52    };
53})(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.