PageSourceSearch

https://www.civs.gouv.fr/sites/civs/files/js/js_PD1rAzz99mLRq-0UJl…d3PJoYJLlWSkO2eKTww7I0miuhCm62YsFF_cD5l3VvU

js civs.gouv.fr collected 2026-10-02 07:25:34 UTC 9,078 bytes, 6 lines download raw bytes

1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
2'use strict';document.addEventListener("DOMContentLoaded",()=>{const notice_block=document.getElementById('notice_info');if(notice_block){const p=notice_block.getElementsByTagName('p')[0];if(p)p.classList.add('fr-notice__title');}const facetsBlock=document.querySelector('.js-facets-links');if(facetsBlock){facetsBlock.classList.add('fr-tags-group','fr-tags-group--condensed');const facetsLinks=document.querySelectorAll(".facet-item a");Array.prototype.forEach.call(facetsLinks,function(link){link.classList.add('fr-tag');});}const tooltips=document.querySelectorAll('.ckeditor-tooltip-text');if(tooltips)Array.prototype.forEach.call(tooltips,function(tooltip){const randomNumber=Math.floor(Math.random()*100);tooltip.removeAttribute('data-tippy-content');tooltip.removeAttribute('data-tooltip-title');const tooltipButton=document.createElement('button');tooltipButton.setAttribute('type','button');tooltipButton.classList.add('fr-btn--tooltip','fr-btn');tooltipButton.textContent=Drupal.t('Information contextuelle');tooltipButton.setAttribute('aria-describedby','tooltip-'+randomNumber);const content=tooltip.getAttribute('data-tooltip-content');const newSpan=document.createElement('span');newSpan.textContent=content;newSpan.classList.add('fr-tooltip','fr-placement');newSpan.setAttribute('role','tooltip');newSpan.setAttribute('aria-hidden','true');newSpan.setAttribute('id','tooltip-'+randomNumber);tooltip.parentNode.insertBefore(tooltipButton,tooltip.nextSibling);tooltipButton.parentNode.insertBefore(newSpan,tooltipButton.nextSibling);});});;
3'use strict';function iframes(){let iframes=document.querySelectorAll('iframe');Array.prototype.forEach.call(iframes,function(iframe,i){if(!iframe.classList.contains('external_iframe')){iframe.removeAttribute('width');iframe.removeAttribute('height');iframe.removeAttribute('frameborder');}});}function sr(){const elements=document.querySelectorAll('.visually-hidden');elements.forEach((element)=>{element.classList.remove('visually-hidden');element.classList.add('fr-sr-only');});}function externalLinks(){if(!document.getElementsByTagName)return;const anchors=document.getElementsByTagName("a");Array.prototype.forEach.call(anchors,function(anchor){let title='';if(anchor.hostname!=window.location.hostname&&anchor.hostname!=''){anchor.setAttribute('rel','external nofollow noreferrer noopener');anchor.setAttribute('target','_blank');anchor.getAttribute('title')?title=anchor.getAttribute('title'):title=anchor.text;anchor.setAttribute('title',title+' - '+Drupal.t('Open in new window'));}});}function addTableScopes(){const tables=document.querySelectorAll('table');tables.forEach((table)=>{const thead=table.querySelector('thead');const tbody=table.querySelector('tbody');if(thead){const headerCells=thead.querySelectorAll('th');headerCells.forEach((th)=>{th.setAttribute('scope','col');});}else{const firstRow=table.querySelector('tr');if(firstRow){const headerCells=firstRow.querySelectorAll('th');headerCells.forEach((th)=>{th.setAttribute('scope','col');});}}if(tbody){const rows=tbody.querySelectorAll('tr');rows.forEach((row)=>{const firstTh=row.querySelector('th');if(firstTh)firstTh.setAttribute('scope','row');});}else{const rows=table.querySelectorAll('tr');for(let i=1;i<rows.length;i++){const firstTh=rows[i].querySelector('th');if(firstTh)firstTh.setAttribute('scope','row');}}});}document.addEventListener("DOMContentLoaded",()=>{externalLinks();sr();iframes();addTableScopes();});;
4(function($,Drupal,drupalSettings){Drupal.behaviors.toc={attach:function(context,settings){const levels=drupalSettings.toc.levels;if(!document.getElementById('fr-summary-title'))sommaire(levels);}};})(jQuery,Drupal,drupalSettings);function slugify(string){return string.normalize('NFKD').toLowerCase().replace(/[^\w\s-]/g,'').trim().replace(/[-\s]+/g,'-');}function sommaire(levels){let nodeContent=document.getElementById('node__body');let headers=nodeContent.querySelectorAll(levels);let tocContainer=document.createElement('div');tocContainer.classList.add('fr-my-2w','fr-container');let currentH2List;if(headers.length>0){let navTableOfContents=document.createElement('nav');navTableOfContents.classList.add('fr-summary','fr-container');navTableOfContents.setAttribute('role','navigation');navTableOfContents.setAttribute('aria-labelledby','fr-summary-title');let titleTableofContents=document.createElement('p');titleTableofContents.classList.add('fr-summary__title');
4titleTableofContents.setAttribute('id','fr-summary-title');titleTableofContents.innerText=Drupal.t('Sommaire');navTableOfContents.append(titleTableofContents);let tableOfContents=document.createElement('ol');tableOfContents.classList.add('fr-summary__list');tableOfContents.setAttribute('id','summary');headers.forEach((header)=>{let listItem=document.createElement('li');let anchor=document.createElement('a');anchor.classList.add('fr-summary__link');anchor.textContent=header.textContent;let slug=slugify(header.textContent);header.id=slug;anchor.href=`#${slug}`;listItem.appendChild(anchor);if(header.nodeName==='H2'){tableOfContents.appendChild(listItem);currentH2Item=listItem;currentH2List=null;}else{if(header.nodeName==='H3')if(currentH2Item){if(!currentH2List){currentH2List=document.createElement('ol');currentH2Item.appendChild(currentH2List);}currentH2List.appendChild(listItem);}else tableOfContents.appendChild(listItem);}});navTableOfContents.append(tableOfContents);tocContainer.append(navTableOfContents);}nodeContent.insertBefore(tocContainer,nodeContent.firstChild);};
5(function($,Drupal,drupalSettings,once){Drupal.behaviors.tarteaucitron_matomo={attach:function(context){once('tarteaucitron_matomo_init','body',context).forEach(function(){tarteaucitron.services.matomo_service={"key":"matomo_service","type":"analytic","name":"Matomo","uri":"https://matomo.org/faq/general/faq_146/","needConsent":drupalSettings.matomo.needConsent?true:false,"cookies":['_pk_ref','_pk_cvar','_pk_id','_pk_ses','_pk_hsr','piwik_ignore','_pk_uid'],"js":function(){"use strict";tarteaucitron.user.matomoId=drupalSettings.matomo.site_id;tarteaucitron.user.matomoHost=drupalSettings.matomo.host;if(tarteaucitron.user.matomoId===undefined)return;window._paq=window._paq||[];window._paq.push(["setSiteId",tarteaucitron.user.matomoId]);window._paq.push(["setTrackerUrl",tarteaucitron.user.matomoHost+"piwik.php"]);window._paq.push(['setSecureCookie',true]);window._paq.push(["setDoNotTrack",1]);window._paq.push(["trackPageView"]);window._paq.push(["setIgnoreClasses",["no-tracking","colorbox"]]);window._paq.push(["enableLinkTracking"]);window._paq.push([function(){var self=this;function getOriginalVisitorCookieTimeout(){var now=new Date(),nowTs=Math.round(now.getTime()/1000),visitorInfo=self.getVisitorInfo();var createTs=parseInt(visitorInfo[2]);var cookieTimeout=33696000;var originalTimeout=createTs+cookieTimeout-nowTs;return originalTimeout;}this.setVisitorCookieTimeout(getOriginalVisitorCookieTimeout());}]);tarteaucitron.addScript(tarteaucitron.user.matomoHost+'piwik.js','','',true,'defer',true);var interval=setInterval(function(){if(typeof Piwik==='undefined')return;clearInterval(interval);Piwik.getTracker();var theCookies=document.cookie.split(';');for(var i=1;i<=theCookies.length;i++){var cookie=theCookies[i-1].split('=');var cookieName=cookie[0].trim();if(cookieName.indexOf('_pk_')===0)tarteaucitron.services.matomo.cookies.push(cookieName);}},100);}};});}};})(jQuery,Drupal,drupalSettings,once);;
6(function($,Drupal,drupalSettings,once){function initYT(){tarteaucitron.services.video_embed_youtube={"key":"video_embed_youtube","type":"video","name":"YouTube","uri":"https://policies.google.com/privacy","needConsent":true,"cookies":['VISITOR_INFO1_LIVE','YSC','PREF','GEUP'],"js":function(){"use strict";tarteaucitron.fallback(['youtube_player'],function(x){$(x).parent().addClass("video-embed-field-responsive-video");var frame_title=tarteaucitron.fixSelfXSS(x.getAttribute("data-title")||x.getAttribute("title")||'Vimeo iframe'),video_id=x.getAttribute("data-videoid"),video_frame,video_allowfullscreen=x.getAttribute("allowfullscreen"),params='theme='+x.getAttribute("theme")+'&rel='+x.getAttribute("rel")+'&controls='+x.getAttribute("controls")+'&showinfo=1&autoplay=0'+'&mute='+x.getAttribute("mute");if(video_id===undefined)return "";$(x).removeAttr("title");$(x).removeAttr("data-videoid");video_frame='<iframe '+'class="fr-responsive-vid__player" title="'+frame_title+'" '+'src="//www.youtube-nocookie.com/embed/'+video_id+'?'+params+'"'+'></iframe>';return video_frame;});},"fallback":function(){"use strict";var id='video_embed_youtube';tarteaucitron.fallback(['youtube_player'],function(elem){$(elem).parent().removeClass("video-embed-field-responsive-video");return tarteaucitron.engage(id);});}};}Drupal.behaviors.video_embed_youtube={attach:function(context){if(typeof tarteaucitron=="undefined")return;once('video_embed_youtube_init','body',context).forEach(function(){initYT();$.fn.updateTTJobs();});}};})(jQuery,Drupal,drupalSettings,once);;

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.