PageSourceSearch

https://www.brp.ch/dist/assets/sound-block-RqMZjaO-.js

js brp.ch collected 2026-09-24 20:28:08 UTC 1,089 bytes, 1 lines download raw bytes

1const s=document.querySelectorAll(".sound-block__audio");function a(e){if(!e)return"";const t=Math.floor(e/60),u=Math.floor(e%60);return`${t}:${u.toString().padStart(2,"0")}`}s.forEach(e=>{const t=e.querySelector("audio"),u=e.querySelector("button"),n=e.querySelector(".video-controls-play"),i=e.querySelector(".sound-block__audio-duration");i.textContent=a(t.duration),u.addEventListener("click",()=>{const d=n.getAttribute("aria-pressed")==="true";s.forEach(r=>{if(r===e)return;const o=r.querySelector("audio"),l=r.querySelector(".video-controls-play"),c=r.querySelector(".sound-block__audio-duration");o.paused||(o.pause(),l.setAttribute("aria-pressed","false"),c.textContent=a(o.duration),clearInterval(o.countdownInterval))}),d?(t.pause(),n.setAttribute("aria-pressed","false"),clearInterval(t.countdownInterval)):(t.play(),n.setAttribute("aria-pressed","true"),t.countdownInterval=setInterval(()=>{const r=t.duration-t.currentTime;i.textContent=a(r),(t.ended||r<=0)&&(clearInterval(t.countdownInterval),n.setAttribute("aria-pressed","false"),i.textContent=a(t.duration))},250))})});

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.