PageSourceSearch

https://www.bouyguestelecom.fr/statics/banners/scripts/banners.js

js bouyguestelecom.fr collected 2026-09-24 08:37:27 UTC 3,499 bytes, 1 lines download raw bytes

1var BannersScripts=(function(s){"use strict";function l(){document.querySelectorAll("[data-countdown]").forEach(n=>{const c=n,v=c.getAttribute("data-deadline");if(!v)return;const g=new Date(v).getTime(),p=c.querySelector("[data-days]"),S=c.querySelector("[data-hours]"),h=c.querySelector("[data-minutes]"),y=c.querySelector("[data-seconds]");if(!p||!S||!h||!y)return;const w=setInterval(()=>{const E=new Date().getTime();let r=0;g-E>0&&(r=g-E),r<=0&&clearInterval(w),p.innerText=Math.floor(r/864e5).toString(),S.innerText=Math.floor(r%864e5/36e5).toString(),h.innerText=Math.floor(r%36e5/6e4).toString(),y.innerText=Math.floor(r%6e4/1e3).toString()},1e3)})}function k(a){const n=a.closest("[data-details-content]");if(n){const e=n.previousElementSibling;if(e?.matches("[data-details-backdrop]"))return{content:n,backdrop:e};const i=n.closest("[data-banner-id]")?.querySelector(":scope > [data-details-backdrop]");if(i)return{content:n,backdrop:i}}const t=a.closest("[data-details]");if(t){const e=t.nextElementSibling;if(e?.matches("[data-details-backdrop]")&&e.nextElementSibling?.matches("[data-details-content]"))return{content:e.nextElementSibling,backdrop:e};const o=t.closest("[data-banner-id]");if(o){const i=o.querySelector(":scope > [data-details-backdrop]"),c=o.querySelector(":scope > [data-details-content]");if(i&&c)return{content:c,backdrop:i}}}return null}function m(a,n){const t=a.content;if(n)t.style.display="block",t.offsetHeight,a.content.setAttribute("data-active","true"),a.backdrop.setAttribute("data-active","true");else{a.content.removeAttribute("data-active"),a.backdrop.removeAttribute("data-active");const e=()=>{a.content.hasAttribute("data-active")||(t.style.display="none"),t.removeEventListener("transitionend",e)};t.addEventListener("transitionend",e)}}function f(){const a="__detailsInitialized",n=window;n[a]||(n[a]=!0,document.addEventListener("click",t=>{const e=t.target.closest("[data-details-button]");if(!e)return;t.stopPropagation(),t.preventDefault();const o=k(e);if(!o)return;const i=o.content.hasAttribute("data-active");m(o,!i)},!0),document.addEventListener("click",t=>{const e=t.target.closest("[data-details-backdrop]");if(!e)return;t.stopPropagation(),t.preventDefault();const o=e.nextElementSibling?.matches("[data-details-content]")?e.nextElementSibling:e.closest("[data-banner-id]")?.querySelector("[data-details-content]")??null;o&&m({content:o,backdrop:e},!1)},!0))}function L(){}const d=["[data-animco-lame]","[data-animco-pave]","[data-animco-tov]","[data-animco-paysage]","[data-animco-diptyque]","[data-animco-mdt]","[data-animco-bon-plan]","[data-animco-carousel]"].join(",");function b(){if(typeof document>"u")return;const a=new WeakMap;document.addEventListener("touchstart",n=>{const t=n.target.closest(d);if(!t)return;const e=a.get(t);e&&clearTimeout(e),t.classList.add("is-touching")},{passive:!0}),document.addEventListener("touchend",n=>{const t=n.target.closest(d);if(!t)return;const e=setTimeout(()=>t.classList.remove("is-touching"),300);a.set(t,e)},{passive:!0}),document.addEventListener("touchcancel",n=>{const t=n.target.closest(d);if(!t)return;const e=a.get(t);e&&clearTimeout(e),t.classList.remove("is-touching")},{passive:!0})}function u(){f(),l(),b()}return typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",u):u()),s.initAll=u,s.initCountdown=l,s.initDetails=f,s.initLame=L,s.initTouchInteractions=b,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),s})({});

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.