PageSourceSearch

https://www.arcadja.com/auctions/js/cookie.js

js arcadja.com collected 2026-10-02 10:05:48 UTC 1,158 bytes, 28 lines download raw bytes

1function cookieAuth() {
2    // Imposta la scadenza del cookie (es. 1 anno da oggi)
3    var d = new Date();
4    d.setTime(d.getTime() + (365 * 24 * 60 * 60 * 1000));
5    var expires = "expires=" + d.toUTCString();
6
7    // Crea il cookie (aggiunto SameSite=Lax per standard di sicurezza moderni)
8    document.cookie = "cookieAuthorizing='yes';" + expires + ";path=/;SameSite=Lax";
9
10    // Invece di reindirizzare forzatamente in homepage, nasconde il banner con un'animazione
11    var banner = document.getElementById("arc-cookie-banner");
12    if (banner) {
13        banner.style.opacity = "0";
14        banner.style.transform = "translateY(20px)"; // Lo fa scivolare verso il basso
15
16        // Rimuove fisicamente l'elemento dal layout dopo la transizione (400ms)
17        setTimeout(function() {
18            banner.style.display = "none";
19        }, 400);
20    }
21
22    /*
23     * NOTA: Se per motivi tecnici legati al backend JSF hai *assolutamente* bisogno
24     * che la pagina si ricarichi affinché il server legga subito il cookie,
25     * decommenta la riga qui sotto. Ricaricherà la pagina corrente, non la homepage.
26     */
27    // window.location.reload();
28}

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.