PageSourceSearch

https://www.tjma.jus.br/js/high-contrast.js?v=1790909125

js tjma.jus.br collected 2026-10-02 02:46:32 UTC 1,290 bytes, 50 lines download raw bytes

1(function () {
2    var Contrast = {
3        storage: 'contrastState',
4        cssClass: 'contrast',
5        cssClassRemove: 'monocromatic',
6        currentState: null,
7        check: checkContrast,
8        getState: getContrastState,
9        setState: setContrastState,
10        toogle: toogleContrast,
11        updateView: updateViewContrast
12    };
13
14    window.toggleContrast = function () { Contrast.toogle(); };
15
16    Contrast.check();
17
18    function checkContrast() {
19        this.updateView();
20    }
21
22    function getContrastState() {
23        return localStorage.getItem(this.storage) === 'true';
24    }
25
26    function setContrastState(state) {
27        localStorage.setItem(this.storage, '' + state);
28        this.currentState = state;
29        this.updateView();
30    }
31
32    function updateViewContrast() {
33        var body = document.body;
34
35        if (this.currentState === null)
36            this.currentState = this.getState();
37
38        if (this.currentState){
39            body.classList.add(this.cssClass);
40            body.classList.remove(this.cssClassRemove);
41        }else{
42            body.classList.remove(this.cssClass);
43            body.classList.remove(this.cssClassRemove);
44        }
45    }
46
47    function toogleContrast() {
48        this.setState(!this.currentState);
49    }
50})();

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.