PageSourceSearch

https://cebr.com/wp-content/themes/cebr/js/cookies.js?ver=7.1.2

js cebr.com collected 2026-10-02 03:29:05 UTC 1,933 bytes, 68 lines download raw bytes

1// --- Config --- //
2var purecookieDesc = "The site uses cookies, as explained in out cookie policy. If you agree to our use of cookies, please close this message and continue to use this site."; // Description
3var purecookieButton = "Accept & Close"; // Button text
4// ---        --- //
5
6
7function pureFadeIn(elem, display){
8  var el = document.getElementById(elem);
9  el.style.opacity = 0;
10  el.style.display = display || "block";
11
12  (function fade() {
13    var val = parseFloat(el.style.opacity);
14    if (!((val += .02) > 1)) {
15      el.style.opacity = val;
16      requestAnimationFrame(fade);
17    }
18  })();
19};
20function pureFadeOut(elem){
21  var el = document.getElementById(elem);
22  el.style.opacity = 1;
23
24  (function fade() {
25    if ((el.style.opacity -= .02) < 0) {
26      el.style.display = "none";
27    } else {
28      requestAnimationFrame(fade);
29    }
30  })();
31};
32
33function setCookie(name,value,days) {
34    var expires = "";
35    if (days) {
36        var date = new Date();
37        date.setTime(date.getTime() + (days*24*60*60*1000));
38        expires = "; expires=" + date.toUTCString();
39    }
40    document.cookie = name + "=" + (value || "")  + expires + "; path=/";
41}
42function getCookie(name) {
43    var nameEQ = name + "=";
44    var ca = document.cookie.split(';');
45    for(var i=0;i < ca.length;i++) {
46        var c = ca[i];
47        while (c.charAt(0)==' ') c = c.substring(1,c.length);
48        if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
49    }
50    return null;
51}
52function eraseCookie(name) {   
53    document.cookie = name+'=; Max-Age=-99999999;';  
54}
55
56function cookieConsent() {
57  if (!getCookie('purecookieDismiss')) {
58   
59  pureFadeIn("cookieConsentContainer");
60  }
61}
62
63function purecookieDismiss() {
64  setCookie('purecookieDismiss','1',7);
65  pureFadeOut("cookieConsentContainer");
66}
67
68window.onload = function() { cookieConsent(); };

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.