Skip to content

Condition: Parent Sections

Listen
${localTime}
`; return row; } function buildScheduleRow(show, stationTimezone) { const row = document.createElement("a"); row.href = `https://www.audacy.com/stations/${stationSlug}`; row.className = "player-item"; const startIso = show.startDateTime; const endIso = show.endDateTime; const startDayLocal = getLocalDateInTimezone(startIso, stationTimezone); const endDayLocal = getLocalDateInTimezone(endIso, stationTimezone); const todayLocal = getTodayInTimezone(stationTimezone); let label = formatTime(startIso, stationTimezone); if (show.isOnNow) { label = "On Air Now"; } else if (startDayLocal !== todayLocal && endDayLocal === todayLocal) { label = `Until ${formatTime(endIso, stationTimezone)}`; } row.innerHTML = ` ${show.showTitle || ''}
${show.showTitle || ""}
${formatTime(startIso, stationTimezone)}
`; return row; } const isNumericValue = (value) => { return typeof value === "string" ? value.trim() !== "" && !isNaN(Number(value.trim())) : typeof value === "number" && !isNaN(value); }; async function loadMusicBar() { let apiUrl = `https://api.audacy.com/experience/v2/stations/${a2Id}/nowplaying?count=${song_count}`; if(isNumericValue(awId)){ apiUrl=`https://api-nowplaying.amperwave.net/api/v1/prtplus/nowplaying/${song_count}/${awId}/nowplaying.json` console.log(apiUrl); } try { const res = await fetch(apiUrl); const data = await res.json(); window.performances = data?.performances || []; document.dispatchEvent(new Event('performances:ready')); if (!window.performances.length) return; const first = window.performances[0]; currentTrackEl.textContent = `${first.artist} - ${first.title}`; if (dropdownTitleEl) dropdownTitleEl.textContent = "Recently Played"; listEl.innerHTML = ""; window.performances.slice(0, 20).forEach(item => { listEl.appendChild(buildMusicRow(item)); }); playerBar.classList.remove("hidden"); } catch (err) { console.error("Now Playing API error:", err); } } async function loadScheduleBar() { const baseDate = new Date(); const startWindow = new Date(baseDate); const endWindow = new Date(baseDate); startWindow.setDate(baseDate.getDate() - 1); endWindow.setDate(baseDate.getDate() + 2); const startDateStr = formatDate(startWindow); const endDateStr = formatDate(endWindow); const apiUrl = `https://api.audacy.com/experience/v2/stations/${stationId}/schedules?startDate=${startDateStr}&endDate=${endDateStr}&timezone=UTC`; try { const res = await fetch(apiUrl); const data = await res.json(); const occurrences = data?.occurrences || []; if (!occurrences.length) return; const stationTimezone = occurrences[0].timezone || timezone || "UTC"; const todayLocal = getTodayInTimezone(stationTimezone); const todaysShows = occurrences .filter(show => { const startDayLocal = getLocalDateInTimezone(show.startDateTime, stationTimezone); const endDayLocal = getLocalDateInTimezone(show.endDateTime, stationTimezone); return startDayLocal === todayLocal || endDayLocal === todayLocal; }) .sort((a, b) => new Date(a.startDateTime) - new Date(b.startDateTime)); if (!todaysShows.length) return; const currentShow = todaysShows.find(show => show.isOnNow) || todaysShows.find(show => { const now = Date.now(); return new Date(show.startDateTime).getTime() now; }) || todaysShows[0]; currentTrackEl.textContent = currentShow.showTitle || ""; if (dropdownTitleEl) dropdownTitleEl.textContent = "Today's Schedule"; listEl.innerHTML = ""; todaysShows.slice(0, 20).forEach(show => { listEl.appendChild(buildScheduleRow(show, stationTimezone)); }); playerBar.classList.remove("hidden"); } catch (err) { console.error("Schedule API error:", err); } } if (stationType === "music") { loadMusicBar(); } else if (stationType === "sports" || stationType === "news") { loadScheduleBar(); } const playerContent = document.querySelector(".player-content"); if (playerContent) { playerContent.addEventListener("click", function () { playerContent.classList.toggle("visible"); }); } });
Search
Please enter at least 3 characters.

Latest Stories

us99

`; container.appendChild(row); }); currentIndex += ITEMS_PER_LOAD; if (currentIndex >= performances.length) { loadMoreBtn.style.display = 'none'; } else { loadMoreBtn.style.display = 'flex'; } } // Initial load (first 13) renderSongs(); });
Brett Eldredge at The Chicago Theatre
Events

Brett Eldredge at The Chicago Theatre

PBR Unleash the Beast
Events

PBR Unleash the Beast

Matt Rife
Events

Matt Rife at United Center on October 25, 2026

Braxton Keith at  Joe's Live
Events

Braxton Keith at  Joe's Live

Graham Barham at Joe's on Weed
Events

Graham Barham at Joe's on Weed

US*99 Presents: Six Man Jam - SOLD OUT
Events

US*99 Presents: Six Man Jam - SOLD OUT