PageSourceSearch

https://www.arsmusica.be/sites/default/files/js/js_U6f9dVWZRHkVttS…ZRZAthFLRU50adj3IPeuFqabcMrztRI9l6k2QMYhCWj

js arsmusica.be collected 2026-10-02 08:03:36 UTC 6,554 bytes, 3 lines download raw bytes

1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
2(function(document,Drupal){'use strict';Drupal.drimage={};Drupal.drimage.webp=null;Drupal.drimage.checkWebp=function(){if(Drupal.drimage.webp!==null)return;var img=new Image();img.onload=function(){Drupal.drimage.webp=(img.width>0)&&(img.height>0);};img.onerror=function(){Drupal.drimage.webp=false;};img.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA";};Drupal.drimage.findDelayParent=function(el){if(el.parentNode===null)return null;if(el.parentNode.classList&&el.parentNode.classList.contains('js-delay-drimage'))return el.parentNode;return Drupal.drimage.findDelayParent(el.parentNode);};Drupal.drimage.resize=function(size,r,d){if(size[d]===0)return size;var new_size={0:size[0],1:size[1]};new_size[d]=r;var inverse_d=Math.abs(d-1);if(size[inverse_d]===0)return new_size;new_size[inverse_d]=Math.round(new_size[inverse_d]*(new_size[d]/size[d]));return new_size;};Drupal.drimage.fetchData=function(el){var data=JSON.parse(el.getAttribute('data-drimage'));data.upscale=parseInt(data.upscale);data.downscale=parseInt(data.downscale);data.threshold=parseInt(data.threshold);if(!data.lazyload)data.lazyload='lazy';return data;};Drupal.drimage.size=function(el){if(el.offsetWidth===0)return {0:0,1:0};var data=Drupal.drimage.fetchData(el);var size={0:el.offsetWidth,1:0};if(data.image_handling==='aspect_ratio')size[1]=size[0]/data.aspect_ratio.width*data.aspect_ratio.height;if(data.image_handling==='background'&&data.background.size==='cover'){var img=el.querySelectorAll('img');if(img.length>0){var width=parseInt(img[0].getAttribute('width'));var height=parseInt(img[0].getAttribute('height'));var calculated_height=height/width*size[0];if(calculated_height<el.offsetHeight)size[0]=size[0]/calculated_height*el.offsetHeight;}}var multiplier=1;if(data.multiplier===1){multiplier=Number(window.devicePixelRatio);if(isNaN(multiplier)===true||multiplier<=0)multiplier=1;}size[0]=Math.round(size[0]*multiplier);size[1]=Math.round(size[1]*multiplier);if(size[0]<data.upscale)size=Drupal.drimage.resize(size,data.upscale,0);var w=size[0]-data.upscale;var r=(Math.ceil(w/data.threshold)*data.threshold)+data.upscale;if(multiplier>1){var r_alt=(Math.floor(w/data.threshold)*data.threshold)+data.upscale;if(r_alt>=size[0]/multiplier)r=r_alt;}size=Drupal.drimage.resize(size,r,0);if(size[0]>data.downscale)size=Drupal.drimage.resize(size,data.downscale,0);return size;};Drupal.drimage.init=function(context){if(typeof context==='undefined')context=document;var el=context.querySelectorAll('.drimage:not(.is-loading)');if(el.length>0)for(var i=0;i<el.length;i++){var data=Drupal.drimage.fetchData(el[i]);if(data.image_handling==='aspect_ratio'){var img=el[i].querySelectorAll('img');if(img.length>0){var width=parseInt(img[0].getAttribute('width'));var height=width/data.aspect_ratio.width*data.aspect_ratio.height;img[0].setAttribute('height',height);}}Drupal.drimage.renderEl(el[i]);if(data.image_handling==='background')if(!el[i].classList.contains('is-background-image')){el[i].style.backgroundAttachment=data.background.attachment;el[i].style.backgroundPosition=data.background.position;el[i].style.backgroundSize=data.background.size;el[i].classList.add('is-background-image');}}};Drupal.drimage.legacyLazyLoad=function(el,data){var rect=el.getBoundingClientRect();if((rect.top+data.lazy_offset>=0&&rect.top-data.lazy_offset<=(window.innerHeight||document.documentElement.clientHeight))||(rect.bottom+data.lazy_offset>=0&&rect.bottom-data.lazy_offset<=(window.innerHeight||document.documentElement.clientHeight)))return true;return false;};Drupal.drimage.renderEl=function(el){var delay=Drupal.drimage.findDelayParent(el);if(delay===null){var data=Drupal.drimage.fetchData(el);var img=el.querySelector('img');if(data.lazyload==='legacy'){if(!Drupal.drimage.legacyLazyLoad(el,data))return;}else img.setAttribute('loading',data.lazyload);if(isNaN(data.fid)===false&&data.fid%1===0&&Number(data.fid)>0){var size=Drupal.drimage.size(el);var w=Number(el.getAttribute('data-w'));var h=Number(el.getAttribute('data-h'));if(size[0]!==w||size[1]!==h)if(size[0]>0){el.classList.add('is-loading');el.setAttribute('data-w',size[0]);el.setAttribute('data-h',size[1]);var iwc='-';if(data.image_handling==='iwc')iwc=data.iwc.image_style;var imgUrl=data.subdir+'/drimage/'+size[0]+'/'+size[1]+'/'+data.fid+'/'+iwc+data.original_source;if(data.image_handling==='background'){if((data.core_webp||data.imageapi_optimize_webp)&&Drupal.drimage.webp===true)imgUrl=imgUrl+'.webp';if(data.changed)imgUrl=imgUrl+'?t='+data.changed;img.onload=function(){el.classList.remove('is-loading');el.style.backgroundImage='url("'+imgUrl+'")';};img.src=imgUrl;}else{if(data.core_webp||data.imageapi_optimize_webp){var source=el.querySelector('source[data-format="webp"]');if(source)source.setAttribute('srcset',imgUrl+'.webp');}if(data.changed)imgUrl=imgUrl+'?t='+data.changed;img.onload=function(){el.classList.remove('is-loading');};img.src=imgUrl;}}}}};Drupal.behaviors.drimage={attach:function(context){Drupal.drimage.checkWebp();var timer;clearTimeout(timer);timer=setTimeout(Drupal.drimage.init,5,document);addEventListener('resize',function(){clearTimeout(timer);timer=setTimeout(Drupal.drimage.init,100);});addEventListener('scroll',function(){Drupal.drimage.init(document);});}};})(document,Drupal);;
3((Drupal)=>{Drupal.behaviors.lazy={attach(context,settings){const utils={extend(obj,src){Object.keys(src).forEac
3h((key)=>{obj[key]=src[key];});return obj;},once(selector){return (context||document).querySelector(selector);},loadScript(url){if(document.querySelectorAll(`script[src="${url}"]`).length===0){const script=document.createElement('script');const scripts=document.getElementsByTagName('script')[0];script.src=url;script.async=true;scripts.parentNode.insertBefore(script,scripts);}}};if(utils.once('body',context)){const lazysizes=settings.lazy.lazysizes||{};if(!settings.lazy.preferNative){window.lazySizesConfig=window.lazySizesConfig||{};window.lazySizesConfig=utils.extend(window.lazySizesConfig,lazysizes);if(!Object.entries)Object.entries=(obj)=>{const ownProps=Object.keys(obj);let i=ownProps.length;const resArray=new Array(i);while(i--)resArray[i]=[ownProps[i],obj[ownProps[i]]];return resArray;};const min=settings.lazy.minified?'.min':'';Object.entries(lazysizes.plugins).forEach((path)=>{utils.loadScript(`${settings.lazy.libraryPath}/plugins/${path[1]}${min}.js`);});utils.loadScript(`${settings.lazy.libraryPath}/lazysizes${min}.js`);}}}};})(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.