1document.addEventListener('DOMContentLoaded',function(){if(document.documentElement.lang!=='fr-FR'){const buttons=document.querySelectorAll('.elementor-button-text');buttons.forEach(button=>{if(button.innerHTML.includes("Lire lâarticle")||button.innerHTML.includes("Lire l'article")||button.innerHTML.includes("Voir le quiz")){button.innerHTML=button.innerHTML.replace("Lire lâarticle",'Read');button.innerHTML=button.innerHTML.replace("Lire l'article",'Read');button.innerHTML=button.innerHTML.replace("Voir le quiz",'See quiz')}})} 2let articleTemplateFr=document.querySelector(".elementor-46737.elementor-location-single");let articleTemplateEn=document.querySelector(".elementor-51639.elementor-location-single");let articleTemplate;if(articleTemplateFr){articleTemplate=articleTemplateFr}else if(articleTemplateEn){articleTemplate=articleTemplateEn} 3if(articleTemplate){async function getPostDate(){const websiteUrl=window.location.origin;const classList=articleTemplate.classList;const postClass=[...classList].find(cls=>/^post-\d+$/.test(cls));const postId=postClass?.replace('post-','');if(!postId){return} 4const response=await fetch(websiteUrl+'/wp-json/wp/v2/posts/'+postId);const post=await response.json();const date=new Date(post.date);return date} 5getPostDate().then(date=>{const contentWrapper=articleTemplate.querySelector(".contenu");if(contentWrapper){const bannerContent=contentWrapper.querySelector("div:first-of-type") 6const articleContent=contentWrapper.querySelector("div:nth-of-type(2)") 7if(bannerContent.classList.contains("elementor-widget-shortcode")){bannerContent.classList.add("gl-content-banner")} 8if(articleContent&&!articleContent.firstElementChild.classList.contains("elementor")){contentWrapper.classList.add("gl-content-wrapper")}} 9const contentToModify=document.querySelector('.gl-content-wrapper');if(date){let limitDate=new Date("03/10/2026");if(contentToModify||date.getTime()<limitDate.getTime()){const videos=articleTemplate.querySelectorAll(".wp-block-embed.is-type-video.is-provider-youtube.wp-block-embed-youtube .wp-block-embed__wrapper");videos.forEach(video=>{video.classList.add("gl-video-block")});const titles=articleTemplate.querySelectorAll('h2.wp-block-heading');
9titles.forEach(title=>{title.classList.add('gl-title');if(title.innerHTML.includes("Informations")){let informationsBlock=title.nextElementSibling;const informationContents=informationsBlock.querySelectorAll('p');informationContents.forEach(content=>{if(content.childNodes.length<=1){const childNode=content.nextElementSibling;content.appendChild(childNode)}})}});const galleryBlocks=articleTemplate.querySelectorAll(".wp-block-gallery");galleryBlocks.forEach(gallery=>{gallery.classList.add("gl-gallery-block")});const largeImages=articleTemplate.querySelectorAll(".wp-block-image.aligncenter.size-large.is-resized img[width='682']");if(largeImages.length){largeImages.forEach(image=>{image.classList.add("gl-large-image")})} 10const rightImages=articleTemplate.querySelectorAll("figure.wp-block-image.alignright");if(rightImages){rightImages.forEach(image=>{image.classList.add("gl-right-image")})} 11const heroImage=articleTemplate.querySelectorAll("img");if(heroImage[1].classList.contains("attachment-large")){heroImage[1].classList.add("gl-hero-image")} 12const authorWrapper=articleTemplate.querySelector('.svq-author-section');if(authorWrapper){authorWrapper.classList.add('gl-author-wrapper');authorWrapper.lastElementChild.remove()} 13const btns=articleTemplate.querySelectorAll('.wp-block-buttons');if(btns){btns.forEach(btn=>{btn.classList.add('gl-button')})} 14const moreBlocks=articleTemplate.querySelectorAll('p:has(span[class="wp-rich-text-font-awesome-icon wp-font-awesome-icon"])');if(moreBlocks){moreBlocks.forEach(block=>{block.classList.add('gl-more-block')})} 15const largeBlock=articleTemplate.querySelectorAll('.alignwide');const largeGallery=articleTemplate.querySelectorAll('.wp-block-gallery');if(largeBlock||largeGallery){largeBlock.forEach(gallery=>{gallery.classList.add('gl-large-block')}) 16largeGallery.forEach(gallery=>{if(gallery.childElementCount>=4){gallery.classList.add('gl-large-gallery')}})}}}})} 17let carrouselContainer=document.querySelector('#carrousel-logos');function showLink(el){let link=el.getAttribute('alt');if(link&&(link.startsWith('http')||link.startsWith('https'))){el.style.cursor="pointer"}} 18function addLink(e){let clickedImage=e.target.closest('.swiper-slide-inner img');if(clickedImage){let link=clickedImage.getAttribute("alt");if(link&&(link.startsWith('http')||link.startsWith('https'))){window.open(link,'_blank')}}} 19if(carrouselContainer==null){let carrouselContainers=document.querySelectorAll('.carrousel-logos');carrouselContainers.forEach(function(carrousel){let elements=carrousel.querySelectorAll('.swiper-slide-inner img');elements.forEach(function(element){showLink(element)});carrousel.addEventListener('click',function(e){addLink(e)})})}else{let elements=carrouselContainer.querySelectorAll('.swiper-slide-inner img');elements.forEach(function(element){showLink(element)});carrouselContainer.addEventListener('click',function(e){addLink(e)})} 20let nlForms=document.querySelectorAll('#gl_form_newsletter .elementor-form-fields-wrapper.elementor-labels-above');if(nlForms){nlForms.forEach(form=>{let btnForm=form.querySelector('.elementor-field-type-submit');let acceptanceForm=form.querySelector('.elementor-field-type-acceptance');if(btnForm&&acceptanceForm){form.moveBefore(btnForm,acceptanceForm)}})} 21const bouton=document.querySelector(".gl-quiz-content a.wp-block-button__link.wp-element-button");if(bouton){bouton.classList.add('gl-btn-bottom-quiz')}}) 22;
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.