PageSourceSearch

https://mairievendes.fr/wp-content/plugins/responsivevoice-text-to…/build/frontend.js?ver=bf77387ca8046cd2c7da

js mairievendes.fr collected 2026-10-03 02:46:55 UTC 2,832 bytes, 1 lines download raw bytes

1(()=>{document.addEventListener("click",t=>{const e=t.target.closest&&t.target.closest(".responsivevoice-button");e&&(t=>{const e=window.responsiveVoice||null;if(!e)return;if(e.isPlaying())return void e.cancel();const n=t.dataset,o={};n.rvttsRate&&(o.rate=parseFloat(n.rvttsRate)),n.rvttsPitch&&(o.pitch=parseFloat(n.rvttsPitch)),n.rvttsVolume&&(o.volume=parseFloat(n.rvttsVolume)),e.speak(n.rvttsText||"",n.rvttsVoice||void 0,o)})(e)});const t="ResponsiveVoice";let e=null,n=null,o=null,r=null;const s=()=>{clearTimeout(n),clearTimeout(o),r&&(r.button.setAttribute("title",r.title),r=null),e&&e.classList.remove("is-open")};function i(){clearTimeout(o),o=setTimeout(s,200)}const a=([t,e,n])=>.299*t+.587*e+.114*n,l=t=>(t.match(/rgba?\([^)]+\)/g)||[]).map(t=>t.match(/[\d.]+/g).map(Number)).filter(t=>void 0===t[3]||t[3]>0);document.addEventListener("mouseover",s=>{const c=s.target.closest&&s.target.closest(".rvtts-icon");if(!c)return;const d=c.closest(".responsivevoice-button");d&&d.dataset.rvttsBrandUrl&&(clearTimeout(o),clearTimeout(n),n=setTimeout(()=>((n,s)=>{const{rvttsBrandUrl:c,rvttsBrandLabel:d}=s.dataset,u=e||(e=document.createElement("a"),e.className="rvtts-brand-card",e.target="_blank",e.rel="nofollow noopener",e.addEventListener("mouseenter",()=>clearTimeout(o)),e.addEventListener("mouseleave",()=>i()),document.body.appendChild(e),e);u.href=c,((e,n)=>{const o=n.indexOf(t);if(e.textContent="",o<0)return void(e.textContent=n);const r=document.createElement("strong");r.textContent=t,e.append(n.slice(0,o),r,n.slice(o+15))})(u,d),u.dataset.scheme=(t=>{for(let e=t;e;e=e.parentElement){const t=window.getComputedStyle(e),n=l(t.backgroundImage);if(n.length)return n.reduce((t,e)=>t+a(e),0)/n.length<128;const[o]=l(t.backgroundColor);if(o)return a(o)<128;if("none"!==t.backgroundImage&&e.parentElement){const n=window.getComputedStyle(e.parentElement).color,[o]=l(t.color);if(o&&t.color!==n)return a(o)>=128}}return!1})(s.parentElement)?"dark":"light",u.classList.add("is-open");const m=n.getBoundingClientRect(),v=u.getBoundingClientRect(),p=Math.max(8,Math.min(m.left+m.width/2-v.width/2,document.documentElement.clientWidth-v.width-8)),g=(()=>{const t=document.getElementById("wpadminbar");return t?Math.max(0,t.getBoundingClientRect().bottom):0})(),h=m.top-g>=v.height+8||m.top-g>=window.innerHeight-m.bottom;u.dataset.placement=h?"above":"below",u.style.top=h?m.top-v.height-8+"px":`${m.bottom+8}px`,u.style.left=`${p}px`,(t=>{const e=t.getAttribute("title");null!==e&&(r={button:t,title:e},t.removeAttribute("title"))})(s)})(c,d),300))}),document.addEventListener("mouseout",t=>{t.target.closest&&t.target.closest(".rvtts-icon")&&(clearTimeout(n),i())}),document.addEventListener("keydown",t=>{"Escape"===t.key&&s()}),window.addEventListener("scroll",s,{passive:!0}),window.addEventListener("resize",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.