PageSourceSearch

https://www.f-initiatives.com/wp-content/cache/minify/e4c31.js?x40102

js f-initiatives.com collected 2026-10-04 05:31:39 UTC 4,872 bytes, 29 lines download raw bytes

1if(!Object.entries){Object.entries=function(obj){var ownProps=Object.keys(obj),i=ownProps.length,resArray=new Array(i);while(i--)
2resArray[i]=[ownProps[i],obj[ownProps[i]]];return resArray;};}
3class CookiesServices{cookies_duration=34128000;youtube_legacy_event='tacyoutube';youtube_new_event='ytv.setup';load_analytics(ua){var self=this;if(!ua)return;window.GoogleAnalyticsObject='ga';window.ga=window.ga||function(){window.ga.q=window.ga.q||[];window.ga.q.push(arguments);};window.ga.l=new Date();this.add_script('//www.google-analytics.com/analytics.js','services-analytics',function(){ga('create',ua,{'cookieExpires':self.cookies_duration});ga('send','pageview');});}
4load_youtube_api(){if(typeof(Event)==='function'){var tacyoutube=new Event(this.youtube_legacy_event);var allowYouTube=new Event(this.youtube_new_event);}else{var tacyoutube=document.createEvent('Event');tacyoutube.initEvent(this.youtube_legacy_event,true,true);var allowYouTube=document.createEvent('Event');allowYouTube.initEvent(this.youtube_new_event,true,true);}
5window.addEventListener("load",function(){window.dispatchEvent(tacyoutube);window.dispatchEvent(allowYouTube);});window.dispatchEvent(tacyoutube);window.dispatchEvent(allowYouTube);}
6init_iframes(){document.querySelectorAll('[data-requires-vendor-consent]').forEach(function(el){var vendor=el.getAttribute('data-requires-vendor-consent');var url=el.getAttribute('data-src');var button_classes=el.getAttribute('data-button-classes')||window.cookies_button_callback_classes;var button_label=el.getAttribute('data-button-label')||window.cookies_button_callback_text;if(!vendor)return;var button=document.createElement('button');if(url){button.type='button';button.setAttribute('class',button_classes);button.setAttribute('data-vendor',vendor);button.innerHTML=button_label;el.appendChild(button);button.addEventListener('click',function(e){e.preventDefault();axeptioSDK.requestConsent(vendor);})}});}
7load_iframes(choices){document.querySelectorAll('[data-requires-vendor-consent]').forEach(el=>{var vendor=el.getAttribute('data-requires-vendor-consent'),url=el.getAttribute('data-src'),iframe=document.createElement('iframe');if(vendor&&url&&choices[vendor]){const button=el.querySelector('button');if(button){button.remove();}
8iframe.type='text/html';iframe.setAttribute('src',url);iframe.setAttribute('frameborder','0');iframe.setAttribute('allowfullscreen','true');if(el.dataset){Object.entries(el.dataset).forEach(([key,value])=>{iframe.setAttribute(key,value)})}
9el.appendChild(iframe);}})}
10add_script(url,id,callback){var script,done=false;script=document.createElement('script');script.type='text/javascript';script.id=(id!==undefined)?id:'';script.defer=true;script.async=false;script.src=url;if(typeof callback==='function'){script.onreadystatechange=script.onload=function(){var state=script.readyState;if(!done&&(!state||/loaded|complete/.test(state))){done=true;callback();}};}
11document.getElementsByTagName('head')[0].appendChild(script);}
12at_least_one_is_refused(choices){var is_refused=false;if(choices){Object.entries(choices).forEach(function(choice){if(choice.length>0&&!choice[1]){is_refused=true;return;}});}
13return is_refused;}
14getAllVendorNames(axeptio){let vendors=[];if(axeptio.config.cookies[0].steps[1].vendors){axeptio.config.cookies[0].steps[1].vendors.forEach(vendor=>{vendors.push(vendor.name);})}
15return vendors;}
16removeCookiesWithPrefix(prefix){if(!prefix){return;}
17const cookies=document.cookie.split(';')
18cookies.forEach(cookie=>{const cookieName=cookie.split('=')[0].trim()
19if(cookieName.startsWith(prefix)){const hostname=window.location.hostname
20const domainParts=hostname.split('.')
21const domains=[hostname,'.'+hostname]
22for(let i=0;i<domainParts.length-1;i++){domains.push('.'+domainParts.slice(i).join('.'))}
23const paths=['/','',window.location.pathname]
24domains.forEach(domain=>{paths.forEach(path=>{document.cookie=`${cookieName}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=${path};`
25document.cookie=`${cookieName}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=${path}; domain=${domain};`})})}})}};document.addEventListener("DOMContentLoaded",function(){window.CookiesServices=new CookiesServices;window.CookiesServices.init_iframes();window.userHaveChosenOnce=false;void 0===window._axcb&&(window._axcb=[]);window._axcb.push(function(axeptio){axeptio.on("cookies:complete",function(choices){if(choices.google_analytics){window.CookiesServices.load_anal
25ytics(window.google_analytics_ua);}
26if(choices.youtube_api){window.CookiesServices.load_youtube_api();}
27window.CookiesServices.load_iframes(choices);if(window.userHaveChosenOnce&&window.CookiesServices.at_least_one_is_refused(choices)){if(window.cookies_clean_prefixes){cookies_clean_prefixes.forEach(prefix=>{window.CookiesServices.removeCookiesWithPrefix(prefix);});}
28window.location.reload();}
29window.userHaveChosenOnce=true;});});});

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.