PageSourceSearch

https://www.auvergne-numerique.fr/wp-content/cache/minify/e4c31.js?x54583

js auvergne-numerique.fr collected 2026-10-08 05:33:53 UTC 4,775 bytes, 27 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(function(el){var vendor=el.getAttribute('data-requires-vendor-consent'),url=el.getAttribute('data-src'),iframe=document.createElement('iframe');if(vendor&&url&&choices[vendor]){var button=el.querySelector('button');if(button)button.remove();iframe.type='text/html';iframe.setAttribute('src',url);iframe.setAttribute('frameborder','0');iframe.setAttribute('allowfullscreen','true');el.appendChild(iframe);}})}
8add_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();}};}
9document.getElementsByTagName('head')[0].appendChild(script);}
10at_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;}});}
11return is_refused;}
12getAllVendorNames(axeptio){let vendors=[];if(axeptio.config.cookies[0].steps[1].vendors){axeptio.config.cookies[0].steps[1].vendors.forEach(vendor=>{vendors.push(vendor.name);})}
13return vendors;}
14removeCookiesWithPrefix(prefix){if(!prefix){return;}
15const cookies=document.cookie.split(';')
16cookies.forEach(cookie=>{const cookieName=cookie.split('=')[0].trim()
17if(cookieName.startsWith(prefix)){const hostname=window.location.hostname
18const domainParts=hostname.split('.')
19const domains=[hostname,'.'+hostname]
20for(let i=0;i<domainParts.length-1;i++){domains.push('.'+domainParts.slice(i).join('.'))}
21const paths=['/','',window.location.pathname]
22domains.forEach(domain=>{paths.forEach(path=>{document.cookie=`${cookieName}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=${path};`
23document.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
23ytics(window.google_analytics_ua);}
24if(choices.youtube_api){window.CookiesServices.load_youtube_api();}
25window.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);});}
26window.location.reload();}
27window.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.