PageSourceSearch

https://loigiaihay.com/themes/js/jupi-float-button.js?v=1790970278

js loigiaihay.com collected 2026-10-02 19:45:16 UTC 1,261 bytes, 40 lines download raw bytes

1(function() {
2    var cookieName = 'jupi_float_closed';
3    var container = document.getElementById('jupi-floating-container');
4    if (!container) return;
5
6    function getCookie(name) {
7        var prefix = name + '=';
8        var parts = document.cookie.split(';');
9        for (var i = 0; i < parts.length; i++) {
10            var part = parts[i];
11            while (part.charAt(0) === ' ') part = part.substring(1);
12            if (part.indexOf(prefix) === 0) return part.substring(prefix.length);
13        }
14        return '';
15    }
16
17    function setCookie(name, value, hours) {
18        var d = new Date();
19        d.setTime(d.getTime() + (hours * 60 * 60 * 1000));
20        document.cookie = name + '=' + value + '; expires=' + d.toUTCString() + '; path=/';
21    }
22
23    window.closeJupiFloat = function(event) {
24        if (event) {
25            event.preventDefault();
26            event.stopPropagation();
27        }
28        setCookie(cookieName, '1', 1);
29        if (container) {
30            container.classList.add('is-hiding');
31            setTimeout(function() {
32                container.style.display = 'none';
33            }, 250);
34        }
35    };
36
37    if (getCookie(cookieName) !== '1') {
38        container.style.display = 'inline-block';
39    }
40})();

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.