PageSourceSearch

https://www.gbh.fr/themes/custom/gbh/js/lazy-loading.js?v=1

js gbh.fr collected 2026-10-02 17:26:36 UTC 5,118 bytes, 5 lines download raw bytes

1!function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=12)}([,function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));var n=function(t){"loading"!=document.readyState?t():document.addEventListener("DOMContentLoaded",t)}},,,function(t,e){[Element.prototype,Document.prototype,DocumentFragment.prototype].forEach((function(t){t.hasOwnProperty("append")||Object.defineProperty(t,"append",{configurable:!0,enumerable:!0,writable:!0,value:function(){var t=Array.prototype.slice.call(arguments),e=document.createDocumentFragment();t.forEach((function(t){var r=t instanceof Node;e.appendChild(r?t:document.createTextNode(String(t)))})),this.appendChild(e)}})}))},,,,function(t,e,r){
2/*! lozad.js - v1.16.0 - 2020-09-06
3* https://github.com/ApoorvSaxena/lozad.js
4* Copyright (c) 2020 Apoorv Saxena; Licensed MIT */
5t.exports=function(){"use strict";var t="undefined"!=typeof document&&document.documentMode,e={rootMargin:"0px",threshold:0,load:function(e){if("picture"===e.nodeName.toLowerCase()){var r=e.querySelector("img"),n=!1;null===r&&(r=document.createElement("img"),n=!0),t&&e.getAttribute("data-iesrc")&&(r.src=e.getAttribute("data-iesrc")),e.getAttribute("data-alt")&&(r.alt=e.getAttribute("data-alt")),n&&e.append(r)}if("video"===e.nodeName.toLowerCase()&&!e.getAttribute("data-src")&&e.children){for(var o=e.children,a=void 0,i=0;i<=o.length-1;i++)(a=o[i].getAttribute("data-src"))&&(o[i].src=a);e.load()}e.getAttribute("data-poster")&&(e.poster=e.getAttribute("data-poster")),e.getAttribute("data-src")&&(e.src=e.getAttribute("data-src")),e.getAttribute("data-srcset")&&e.setAttribute("srcset",e.getAttribute("data-srcset"));var u=",";if(e.getAttribute("data-background-delimiter")&&(u=e.getAttribute("data-background-delimiter")),e.getAttribute("data-background-image"))e.style.backgroundImage="url('"+e.getAttribute("data-background-image").split(u).join("'),url('")+"')";else if(e.getAttribute("data-background-image-set")){var d=e.getAttribute("data-background-image-set").split(u),c=d[0].substr(0,d[0].indexOf(" "))||d[0];c=-1===c.indexOf("url(")?"url("+c+")":c,1===d.length?e.style.backgroundImage=c:e.setAttribute("style",(e.getAttribute("style")||"")+"background-image: "+c+"; background-image: -webkit-image-set("+d+"); background-image: image-set("+d+")")}e.getAttribute("data-toggle-class")&&e.classList.toggle(e.getAttribute("data-toggle-class"))},loaded:function(){}};function r(t){t.setAttribute("data-loaded",!0)}var n=function(t){return"true"===t.getAttribute("data-loaded")},o=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document;return t instanceof Element?[t]:t instanceof NodeList?t:e.querySelectorAll(t)};return function(){var t,a,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:".lozad",u=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},d=Object.assign({},e,u),c=d.root,l=d.rootMargin,g=d.threshold,s=d.load,f=d.loaded,b=void 0;"undefined"!=typeof window&&window.IntersectionObserver&&(b=new IntersectionObserver((t=s,a=f,function(e,o){e.forEach((function(e){(0<e.intersectionRatio||e.isIntersecting)&&(o.unobserve(e.target),n(e.target)||(t(e.target),r(e.target),a(e.target)))}))}),{root:c,rootMargin:l,threshold:g}));for(var p,m=o(i,c),v=0;v<m.length;v++)(p=m[v]).getAttribute("data-placeholder-background")&&(p.style.background=p.getAttribute("data-placeholder-background"));return{observe:function(){for(var t=o(i,c),e=0;e<t.length;e++)n(t[e])||(b?b.observe(t[e]):(s(t[e]),r(t[e]),f(t[e])))},triggerLoad:function(t){n(t)||(s(t),r(t),f(t))},observer:b}}}()},,,,function(t,e,r){"use strict";r.r(e);r(4),r(13);var n=r(8),o=r.n(n),a=r(1);Object(a.a)((function(){var t=o()(".lozad, .actualite-teaser__vignette img",{rootMargin:"50px"});t.observe(),Drupal.behaviors.lazyLoading={attach:function(e){t.observe()}},window.addEventListener("beforeprint",(function(){for(var e=document.querySelectorAll(".lozad, .actualite-teaser__vignette img"),r=0;r<e.length;r++){var n=e[r];t.triggerLoad(n)}}))}))},function(t,e){[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(t){t.hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})}))}]);

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.