PageSourceSearch

https://www.vitaepensiero.it/js/cookie-consent/create_cookie_with_policy.js

js vitaepensiero.it collected 2026-09-24 09:14:44 UTC 1,387 bytes, 31 lines download raw bytes

1function createCookieWithPolicy(type, name_value, content_value, expires_value, path_value){
2    switch(type){
3        case 'functionality':
4            //console.log('functionality cookies');
5            if( typeof createFunctionalityCookie === "function" ){
6                createFunctionalityCookie( name_value, content_value, expires_value, path_value );
7            }              
8            break;
9        case 'tracking':
10            //console.log('tracking cookies');
11            if( typeof createTrackingCookie === "function" ){
12                createTrackingCookie( name_value, content_value, expires_value, path_value );
13            }            
14            break;   
15        case 'targeting':
16            //console.log('targeting cookies');
17            if( typeof createTargetingCookie === "function" ){
18                createTargetingCookie( name_value, content_value, expires_value, path_value );
19            }
20            break;                      
21        default:
22            if( expires_value === null ){
23                $.cookie(name_value, content_value, { path: path_value });
24            }else if( expires_value === null && path_value === null ){   
25                $.cookie(name_value, content_value); 
26            }else{
27                $.cookie(name_value, content_value, { expires: expires_value, path: path_value });
28            } 
29    }             
30  
31}

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.