PageSourceSearch

https://abonnement.sillonbelge.be/sites/default/assets/js/js_9kWr4…CZ47QQojAe1f-zk4I2F8_ohbd9pBvDwSRH3_QtL7kOl

js sillonbelge.be collected 2026-10-02 11:15:23 UTC 13,287 bytes, 7 lines download raw bytes

1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
2function accordion(){var questions=document.querySelectorAll('.r-accordion-element .r-accordion--title');questions.forEach(function(question){question.addEventListener('click',function(event){var currentAnswer=this.nextElementSibling;if(currentAnswer&&!currentAnswer.classList.contains('r-collapsible'))return;var isVisible=window.getComputedStyle(currentAnswer).display!=='none';var parentAccordeon=question.closest('.r-accordion--group');var siblingElements=parentAccordeon.querySelectorAll(':scope > .r-accordion-element .r-collapsible');siblingElements.forEach(function(answer){if(answer!==currentAnswer&&window.getComputedStyle(answer).display!=='none'){slideUp(answer);answer.parentElement.classList.remove('-is-open');}});if(!isVisible){slideDown(currentAnswer);this.parentElement.classList.add('-is-open');}else{slideUp(currentAnswer);this.parentElement.classList.remove('-is-open');}});});}function slideDown(element){element.style.removeProperty('display');let display=window.getComputedStyle(element).display;if(display==='none')display='block';element.style.display=display;let height=element.scrollHeight;element.style.height='0';requestAnimationFrame(()=>{element.style.height=height+'px';});setTimeout(()=>{element.style.removeProperty('height');},300);}function slideUp(element){element.style.height=element.scrollHeight+'px';requestAnimationFrame(()=>{element.style.height='0';});setTimeout(()=>{element.style.display='none';element.style.removeProperty('height');},300);}accordion();;
3jQuery(function(){jQuery('#edit-search').keyup(function(){const raw_search_words=jQuery(this).val().split(" ");const searchedStr=jQuery(this).val().trim().normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase();const words=searchedStr.split(" ");let result=false;faq_remove_all_highlights();if(searchedStr.length>2){jQuery('.r-faq-element').each(function(){const elementText=jQuery(this).text().normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase();for(let i=0;i<words.length;i++)if(elementText.includes(words[i])){faq_open_header(jQuery(this));faq_apply_highlight(jQuery(this),raw_search_words[i]);result=true;break;}if(!result)jQuery(this).children('.r-collapsible').slideUp();});if(!result){jQuery('.r-faq-categorie ').hide();jQuery('.r-faq-error-search').show();}else{jQuery('.r-faq-categorie ').show();jQuery('.r-faq-error-search').hide();}}else{jQuery('.r-faq-error-search').hide();jQuery('.r-faq-categorie').show();jQuery('.r-faq-element').each(function(){jQuery(this).show();});}});const hash=jQuery(location).attr('hash');if(hash){jQuery('input#edit-search').val('');jQuery(hash).closest(".r-faq--question").next().slideUp();jQuery(hash).closest(".r-faq--question").slideDown();}else{const searchParams=new URLSearchParams(window.location.search);if(searchParams.has('search'))jQuery('input#edit-search').keyup();}jQuery('#edit-search').click(function(){jQuery('input#edit-search').val('');jQuery('.r-faq-error-search').hide();faq_collapse_all_headers();faq_remove_all_highlights();});});function faq_collapse_all_headers(){jQuery('.r-faq-element').each(function(){jQuery(this).closest(".r-collapsible").slideUp();jQuery(this).children(".r-collapsible").slideUp();});}function faq_open_header(t){t.show();t.children(".r-collapsible").slideDown();t.closest(".r-collapsible").addClass('-is-open');t.closest(".r-collapsible").slideDown();}function faq_remove_all_highlights(){jQuery('.r-faq-highlight').each(function(){jQuery(this).replaceWith(jQuery(this).text());});}function faq_apply_highlight(t,word){t.find('*').each(function(){var bold_html=jQuery(this).html().replace(/(^|>)([^<]*)(<|$)/g,function(_,a,b,c){return a+b.replace(word,'<span class="r-faq-highlight" >'+word+'</span>')+c;});jQuery(this).html(bold_html);});};
4(function($,Drupal){Drupal.behaviors.countdownBehavior={attach:function(context,settings){$('.r-countdown',context).each(function(){if($(this).hasClass('countdown-processed'))return;const $countdown=$(this);$countdown.addClass('countdown-processed');const startDateStr=$countdown.attr('data-start-date');const endDateStr=$countdown.attr('data-end-date');const displayType=$countdown.attr('data-display-type');if(!endDateStr)return;const startDate=startDateStr?new Date(startDateStr):null;const endDate=new Date(endDateStr);const $output=$('<div class="countdown-output"></div>');$countdown.append($output);function updateCountdown(){const now=new Date();if(now<startDate){$output.remove();normalizeCountdownHeights();return;}if(now>=endDate){$output.remove();clearInterval(interval);normalizeCountdownHeights();return;}const distance=endDate-now;const days=Math.floor(distance/(1000*60*60*24));const hours=Math.floor((distance%(1000*60*60*24))/(1000*60*60));const minutes=Math.floor((distance%(1000*60*60))/(1000*60));const seconds=Math.floor((distance%(1000*60))/1000);if(displayType==='text')if(days>0)$output.text(Drupal.formatPlural(days,'@count day remaining','@count days remaining'));else if(hours>0)$output.text(Drupal.formatPlural(hours,'@count hour remaining','@count hours remaining'));else if(minutes>0)$output.text(Drupal.formatPlural(minutes,'@count minute remaining','@count minutes remaining'));else $output.text(Drupal.formatPlural(seconds,'@count second remaining','@count seconds remaining'));else{const twoDigits=(num)=>num.toString().padStart(2,'0');$output.text(`${twoDigits(days)}:${twoDigits(hours)}:${twoDigits(minutes)}:${twoDigits(seconds)}`);}normalizeCountdownHeights();}const interval=setInterval(updateCountdown,1000);updateCountdown();});function normalizeCountdownHeights(){$('.r-offres').each(function(){const $container=$(this);
4const $countdowns=$container.find('.r-countdown.countdown-processed');let hasActiveCountdown=false;$countdowns.each(function(){const $output=$(this).find('.countdown-output');if($output.length&&$output.text().trim()!==''){hasActiveCountdown=true;return false;}});if(hasActiveCountdown)$countdowns.addClass('countdown-has-content');else $countdowns.removeClass('countdown-has-content');});}}};})(jQuery,Drupal);;
5(function($,Drupal){Drupal.behaviors.trackingElementPageClicked={attach:function(context,settings){let selectors='a, .button, .adm-ad-rendered, .internal_ad';if(settings.tracking&&settings.tracking.faqClicks)selectors+=', .r-faq-categorie--header, .r-faq--question';$(once('tracking-element-page-clicked',selectors,context)).on('click',function(){let pushData=getClickData($(this));pushData.event='element_page_clicked';if(typeof (window.pcgEventPush)==='function')window.pcgEventPush(pushData);});}};function getClickData(jQueryElement){if(jQueryElement.hasClass('r-faq-categorie--header')){let label=jQueryElement.find('h3').text().trim();return {clic_category:'FAQ',clic_component:'body',clic_element_name:label,clic_spec:label};}if(jQueryElement.hasClass('r-faq--question')){let questionLabel=jQueryElement.text().trim();let categoryLabel=jQueryElement.closest('.r-faq-categorie').find('.r-faq-categorie--header h3').first().text().trim();return {clic_category:'FAQ',clic_component:'body',clic_element_name:questionLabel,clic_spec:categoryLabel};}return {clic_category:getClickCategory(jQueryElement),clic_component:getParentComponent(jQueryElement),clic_element_name:getElementClosestText(jQueryElement),clic_spec:getClickTitle(jQueryElement)};}function getClickTitle(jqueryElement){if(jqueryElement.parents(".r-box--header").children('.r-offer--title').length>0)return jqueryElement.parents(".r-box--header").children('.r-offer--title').html().trim();return "";}function getParentComponent(jQueryElement){if(jQueryElement.parents('header').length>0)return 'header';else if(jQueryElement.parents('.r-footer').length>0)return 'footer';else if(jQueryElement.parents('.r-carousel').length>0)return 'carousel';else if(jQueryElement.parents('.r-main').length>0)return 'main';else return '';}function getClickCategory(jQueryElement){if(jQueryElement.hasClass('internal_ad'))return 'internal_ad';else if(jQueryElement.hasClass('adm-ad-rendered'))return 'external_ad';else if(jQueryElement.is('a'))return 'navigation';else if(jQueryElement.hasClass('button'))return 'action';else return '';}function getElementClosestText(jQueryElement){let text=jQueryElement.text().trim();if(text.length>0)return text;else{let siblingText='';jQueryElement.siblings().each(function(){let currentText=$(this).text().trim().replace(/(\r\n|\n|\r|\s+)/g," ");if(currentText.length>0){siblingText=currentText;return false;}});if(siblingText.length>0)return siblingText;let parentText=jQueryElement.parent().text().trim().replace(/\s+/g," ");return parentText||'';}}})(jQuery,Drupal);;
6(function($,Drupal){Drupal.behaviors.trackingElementPageVisibility={attach:function(context,settings){var specs={};const observer=new IntersectionObserver((entries)=>{entries.forEach((entry)=>{if(entry.isIntersecting){const $element=$(entry.target);if(!isElementVisible($element))return;var visibility_spec="";let zone=getParentComponent($element);if(zone!=""&&!specs[zone])specs[zone]=1;else specs[zone]++;visibility_spec=zone+"_"+specs[zone];let pushData={visibility_category:getVisibleCategory($element),visibility_component:getParentComponent($element),visibility_element_name:getElementName($element),visibility_spec};pushData.event='element_page_visibility';if(typeof (window.pcgEventPush)==='function')window.pcgEventPush(pushData);observer.unobserve(entry.target);}});},{threshold:0.4});const elements=once('tracking-element-page-visibility','.tracked-block, .adm-ad-rendered, .internal-ad',context);elements.forEach((element)=>{if(isElementPotentiallyVisible($(element)))observer.observe(element);});}};function isElementVisible($element){const el=$element[0];if(!el)return false;if(el.offsetParent===null)return false;const style=window.getComputedStyle(el);if(style.visibility==='hidden'||style.opacity==='0')return false;const rect=el.getBoundingClientRect();if(rect.width===0||rect.height===0)return false;return true;}function isElementPotentiallyVisible($element){return !($element.is(':hidden')||$element.css('display')==='none'||$element.css('visibility')==='hidden'||$element.css('opacity')==='0');}function getVisibleCategory(jQueryElement){if(jQueryElement.hasClass('internal-ad'))return 'internal-ad';else if(jQueryElement.hasClass('adm-ad-rendered'))return 'external_ad';else if(jQueryElement.attr('tracked-block'))return 'tracked-block';else return '';}function getParentComponent(jQueryElement){if(jQueryElement.parents('header').length>0)return 'header';else if(jQueryElement.parents('r-footer').length>0)return 'footer';else if(jQueryElement.parents('.r-offres').length>0)return 'bloc-offres';else if(jQueryElement.parents('.r-carousel').length>0)return 'carousel';else if(jQueryElement.parents('r-main').length>0)return 'main';else return '';}function getElementName(jQueryElement){let classes=jQueryElement.attr('class');if(!classes)return '';
6let match=classes.match(/tracking-element-name--([^\s]+)/);if(match&&match[1])return match[1].replace(/-/g,'_');return '';}})(jQuery,Drupal);;
7(function($,Drupal){function getOfferData(offer){var offerData={'code':'','label':'','type':''};var erpInfoElement=$(offer).find('.erp_info');if(erpInfoElement.length>0){offerData['code']=erpInfoElement.attr('code');offerData['label']=erpInfoElement.attr('label');offerData['type']=erpInfoElement.attr('type');}return offerData;}let isElementInViewport=function(el){const rect=el.getBoundingClientRect();return (rect.top>=0&&rect.left>=0&&rect.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&rect.right<=(window.innerWidth||document.documentElement.clientWidth));};Drupal.behaviors.trackOffersImpressionMain={attach:function(context,settings){$(window).on('load scroll',function(){let offers=$('r-box.r-offre:not([tracked])');$.each(offers,function(id,offer){if(isElementInViewport(offer)){$(offer).attr('tracked','tracked');var offerData=getOfferData(offer);let title=$(offer).find('.r-offer--title')[0].innerText;let number=$(offer).find('span.r-price--number');let cents=$(offer).find('span.r-price--cents');let price='';if(number.length&&cents.length)price=$(number)[0].innerText+$(cents)[0].innerText;let pushData={href:$(offer).find('a').attr('href'),offer_type:offerData['type'],offer_name_back:offerData['label'],offer_name_display:title,offer_code:offerData['code'],offer_price:price,offer_position:(1+parseInt(id))};pushData.event='offer_impression';if(typeof (window.pcgEventPush)==='function')window.pcgEventPush(pushData);}});});}};Drupal.behaviors.trackOffersImpressionComplimentary={attach:function(context,settings){$(window).on('load scroll',function(){let offers=$('article.r-offre--comp:not([tracked])');$.each(offers,function(id,offer){if(isElementInViewport(offer)){$(offer).attr('tracked','tracked');var offerData=getOfferData(offer);let title=$(offer).find('h3.r-article--title')[0].innerText;let pushData={href:$(offer).find('a').attr('href'),offer_type:offerData['type'],offer_name_back:offerData['label'],offer_name_display:title,offer_code:offerData['code'],offer_price:'',offer_position:'bloc_complementaire_'+(1+parseInt(id))};pushData.event='offer_impression';if(typeof (window.pcgEventPush)==='function')window.pcgEventPush(pushData);}});});}};})(jQuery,Drupal);;

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.