PageSourceSearch

https://www.radioplus.pl/media/desktop/zpr_radios_web/js/player_teaser.min.js?__25dcee3a

js radioplus.pl collected 2026-10-02 10:51:07 UTC 1,738 bytes, 11 lines download raw bytes

1let ROOT_MARGIN="300px 0px 0px 0px",API_BASE_URL="https://front-api.grupazprmedia.pl/radios/v1",NOW_PLAYING_API_BASE_URL="https://front-api.grupazprmedia.pl/music/v2",initializeTeaserObserver=()=>{var e=document.querySelector(".widget-player")
2e&&new IntersectionObserver((e,t)=>{e.forEach(e=>{e.isIntersecting&&(handleIntersection(),t.unobserve(e.target))})},{rootMargin:ROOT_MARGIN}).observe(e)},fetchScheduleData=async e=>{try{var t=await fetch(e)
3if(t.ok){var r=await t.json()
4if(Object.keys(r).length)return updateScheduleUI(r),!0}}catch(e){console.error("Schedule fetch error:",e)}return!1},updateScheduleUI=e=>{var t,r,a,n,o=document.querySelector(".widget-player-top")
5o&&(t=e.thumbnail_uri?.replace("-staging","")||"",r=e.name||"",e=e.host||"",a=o.querySelector(".schedule-photo"),n=o.querySelector(".schedule-title"),o=o.querySelector(".schedule-author"),a&&(a.src=t),n&&(n.textContent=r),o)&&(o.textContent=e)},fetchStreamData=async e=>{try{var t=await fetch(e)
6if(t.ok){var r=await t.json()
7if(Object.keys(r).length)return updateStreamUI(r),!0}}catch(e){console.error("Stream fetch error:",e)}return!1},updateStreamUI=e=>{var t,r=document.querySelector(".widget-player-middle__song")
8r&&(e=e.current??e.futures?.[0],t=r.querySelector(".song-title"),r=r.querySelector(".song-author"),t&&(t.textContent=e?.name||""),r)&&(r.textContent=e?getArtistsNames(e.artists):"")}
9function getArtistsNames(e){return Array.isArray(e)&&0!==e.length?e.join(" & "):""}let handleIntersection=()=>{var e=stationUid?`${API_BASE_URL}/current_program/${siteUid}/${stationUid}/`:`${API_BASE_URL}/current_program/${siteUid}/`,t=`${NOW_PLAYING_API_BASE_URL}/now_playing/${streamId}/`
10fetchScheduleData(e),fetchStreamData(t)}
11initializeTeaserObserver()

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.