PageSourceSearch

https://pinacoteca.org.br/wp-content/themes/pinacoteca-hub/lgpd-cookie/js/functions.js?ver=20250918

js pinacoteca.org.br collected 2026-10-01 12:03:15 UTC 926 bytes, 36 lines download raw bytes

1
2function setBrowserCookie(name, expireNumDays) {
3    var d = new Date();
4    d.setTime(d.getTime() + expireNumDays * 24 * 60 * 60 * 1000);
5    var expires = 'expires=' + d.toUTCString();
6    document.cookie =
7        name + '= true;' + expires + ';path=/';
8}
9
10function getBrowserCookie(name) {
11    var ca = document.cookie.split(';');
12    for (var i = 0; i < ca.length; i++) {
13        var c = ca[i];
14        while (c.charAt(0) == ' ') {
15            c = c.substring(1);
16        }
17        if (c.indexOf(name) == 0) {
18            return name;
19        }
20    }
21    return '';
22}
23
24function store() {
25    setBrowserCookie(LGPDCookieConfig.siteName, LGPDCookieConfig.expiresIn);
26    jQuery('.lgpd-wrapper').fadeOut();
27}
28
29function init() {
30    let cookies = getBrowserCookie(LGPDCookieConfig.siteName);
31    if (cookies !== '' && cookies !== undefined && cookies !== null) {
32        jQuery('.lgpd-wrapper').hide();     
33    }
34}
35
36init();

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.