(function(){ function setup(){ if(document.getElementById('uw-music-toggle')) return; const radio = new Audio( 'https://live.underworldfm.com/listen/underworld_radio/radio.mp3' ); radio.volume = 0.65; radio.preload = 'none'; const button = document.createElement('button'); button.id = 'uw-music-toggle'; button.type = 'button'; button.textContent = '▶ LIVE RADIO'; button.style.display = 'none'; document.body.appendChild(button); function playRadio(){ radio.play().catch(function(){ button.textContent = '▶ LIVE RADIO'; }); } radio.addEventListener('playing',function(){ button.textContent = 'Ⅱ LIVE RADIO'; }); radio.addEventListener('pause',function(){ button.textContent = '▶ LIVE RADIO'; }); button.addEventListener('click',function(){ if(radio.paused){ playRadio(); }else{ radio.pause(); } }); const wait = setInterval(function(){ if(!document.getElementById('uw-splash')){ clearInterval(wait); button.style.display = 'block'; playRadio(); } },250); document.addEventListener('click',function(e){ if(e.target.closest( '#uw-radio-hotspot, #drip-radio-hotspot, #dropz-radio-hotspot, #port-radio-hotspot' )){ radio.pause(); } },true); } if(document.readyState === 'complete'){ setup(); }else{ window.addEventListener('load',setup); } })();
(function () { const station = 'http://192.81.208.237/public/underworld_radio'; const splashURL = 'https://res.cloudinary.com/u9wcywlc/video/upload/Underworld_Radio_Red_Rain_Splash.mp4'; function openStation() { window.location.href = station; } function playSplash(event) { event.preventDefault(); event.stopPropagation(); if (document.getElementById('uw-station-splash')) return; const overlay = document.createElement('div'); overlay.id = 'uw-station-splash'; const video = document.createElement('video'); video.src = splashURL; video.playsInline = true; video.controls = false; video.muted = false; video.volume = 1; overlay.appendChild(video); document.body.appendChild(overlay); video.addEventListener('ended', openStation); video.addEventListener('error', openStation); video.play().catch(openStation); } function setup() { const image = document.querySelector('#image02 img'); if (!image) return; const button = document.createElement('button'); button.id = 'uw-radio-hotspot'; button.setAttribute('aria-label', 'Underworld Radio'); document.body.appendChild(button); function alignButton() { const r = image.getBoundingClientRect(); button.style.left = (r.left + window.scrollX + r.width * 0.045) + 'px'; button.style.top = (r.top + window.scrollY + r.height * 0.364) + 'px'; button.style.width = (r.width * 0.445) + 'px'; button.style.height = (r.height * 0.103) + 'px'; } button.addEventListener('click', playSplash); window.addEventListener('resize', alignButton); image.addEventListener('load', alignButton); if (window.ResizeObserver) { new ResizeObserver(alignButton).observe(image); } alignButton(); } if (document.readyState === 'complete') { setup(); } else { window.addEventListener('load', setup); } })();
(function () { const station = 'http://192.81.208.237/public/drip_lord_radio'; const splashURL = 'https://res.cloudinary.com/u9wcywlc/video/upload/Drip_Lord_Radio_Splash_With_Audio.mp4'; function openStation() { window.location.href = station; } function playSplash(event) { event.preventDefault(); event.stopPropagation(); if (document.getElementById('drip-station-splash')) return; const overlay = document.createElement('div'); overlay.id = 'drip-station-splash'; const video = document.createElement('video'); video.src = splashURL; video.playsInline = true; video.controls = false; video.muted = false; video.volume = 1; overlay.appendChild(video); document.body.appendChild(overlay); video.addEventListener('ended', openStation); video.addEventListener('error', openStation); video.play().catch(openStation); } function setup() { const image = document.querySelector('#image02 img'); if (!image) return; const button = document.createElement('button'); button.id = 'drip-radio-hotspot'; button.setAttribute('aria-label', 'Drip Lord Radio'); document.body.appendChild(button); function alignButton() { const r = image.getBoundingClientRect(); button.style.left = (r.left + window.scrollX + r.width * 0.51) + 'px'; button.style.top = (r.top + window.scrollY + r.height * 0.364) + 'px'; button.style.width = (r.width * 0.445) + 'px'; button.style.height = (r.height * 0.103) + 'px'; } button.addEventListener('click', playSplash); window.addEventListener('resize', alignButton); image.addEventListener('load', alignButton); if (window.ResizeObserver) { new ResizeObserver(alignButton).observe(image); } alignButton(); } if (document.readyState === 'complete') { setup(); } else { window.addEventListener('load', setup); } })();
(function () { const station = 'http://192.81.208.237/public/dropz__spillx_'; const splashURL = 'https://res.cloudinary.com/u9wcywlc/video/upload/Dropz_Spillx_Rain_Splash.mp4'; function openStation() { window.location.href = station; } function playSplash(event) { event.preventDefault(); event.stopPropagation(); if (document.getElementById('dropz-station-splash')) return; const overlay = document.createElement('div'); overlay.id = 'dropz-station-splash'; const video = document.createElement('video'); video.src = splashURL; video.playsInline = true; video.controls = false; video.muted = false; video.volume = 1; overlay.appendChild(video); document.body.appendChild(overlay); video.addEventListener('ended', openStation); video.addEventListener('error', openStation); video.play().catch(openStation); } function setup() { const image = document.querySelector('#image02 img'); if (!image) return; const button = document.createElement('button'); button.id = 'dropz-radio-hotspot'; button.setAttribute('aria-label', 'DROPZ & SPILLX Radio'); document.body.appendChild(button); function alignButton() { const r = image.getBoundingClientRect(); button.style.left = (r.left + window.scrollX + r.width * 0.045) + 'px'; button.style.top = (r.top + window.scrollY + r.height * 0.475) + 'px'; button.style.width = (r.width * 0.445) + 'px'; button.style.height = (r.height * 0.103) + 'px'; } button.addEventListener('click', playSplash); window.addEventListener('resize', alignButton); image.addEventListener('load', alignButton); if (window.ResizeObserver) { new ResizeObserver(alignButton).observe(image); } alignButton(); } if (document.readyState === 'complete') { setup(); } else { window.addEventListener('load', setup); } })();
(function () { const station = 'http://192.81.208.237/public/port_city_live_radio'; const splashURL = 'https://res.cloudinary.com/u9wcywlc/video/upload/Port_City_Animated_Water.mp4'; function openStation() { window.location.href = station; } function playSplash(event) { event.preventDefault(); event.stopPropagation(); if (document.getElementById('port-station-splash')) return; const overlay = document.createElement('div'); overlay.id = 'port-station-splash'; const video = document.createElement('video'); video.src = splashURL; video.playsInline = true; video.controls = false; video.muted = false; video.volume = 1; overlay.appendChild(video); document.body.appendChild(overlay); video.addEventListener('ended', openStation); video.addEventListener('error', openStation); video.play().catch(openStation); } function setup() { const image = document.querySelector('#image02 img'); if (!image) return; const button = document.createElement('button'); button.id = 'port-radio-hotspot'; button.setAttribute('aria-label', 'Port City Live Radio'); document.body.appendChild(button); function alignButton() { const r = image.getBoundingClientRect(); button.style.left = (r.left + window.scrollX + r.width * 0.51) + 'px'; button.style.top = (r.top + window.scrollY + r.height * 0.475) + 'px'; button.style.width = (r.width * 0.445) + 'px'; button.style.height = (r.height * 0.103) + 'px'; } button.addEventListener('click', playSplash); window.addEventListener('resize', alignButton); image.addEventListener('load', alignButton); if (window.ResizeObserver) { new ResizeObserver(alignButton).observe(image); } alignButton(); } if (document.readyState === 'complete') { setup(); } else { window.addEventListener('load', setup); } })();
(function () { function setup() { const image = document.querySelector('#image02 img'); if (!image) return; const button = document.createElement('a'); button.id = 'indie-plug-hotspot'; button.href = 'https://app.indieplugmedia.com'; button.target = '_blank'; button.rel = 'noopener noreferrer'; button.setAttribute('aria-label', 'Indie Plug Media'); document.body.appendChild(button); function alignButton() { const r = image.getBoundingClientRect(); button.style.left = (r.left + window.scrollX + r.width * 0.10) + 'px'; button.style.top = (r.top + window.scrollY + r.height * 0.59) + 'px'; button.style.width = (r.width * 0.80) + 'px'; button.style.height = (r.height * 0.09) + 'px'; } window.addEventListener('resize', alignButton); image.addEventListener('load', alignButton); if (window.ResizeObserver) { new ResizeObserver(alignButton).observe(image); } alignButton(); } if (document.readyState === 'complete') { setup(); } else { window.addEventListener('load', setup); } })();
(function(){ const service = document.getElementById( 'uw-interview-service' ); const duration = document.getElementById( 'uw-interview-duration' ); const description = document.getElementById( 'uw-interview-description' ); const total = document.getElementById( 'uw-interview-total' ); function updateOptions(){ duration.innerHTML = ''; let options = []; if(service.value === 'interview'){ options = [ ['15 Minutes',4999], ['30 Minutes',7999], ['45 Minutes',10999], ['60 Minutes',13999] ]; description.textContent = 'Book an interview on your selected radio station.'; }else if(service.value === 'standard'){ for(let h=3;h<=12;h++){ options.push([ h+' Hours', 29997+((h-3)*9999) ]); } description.textContent = 'Three-hour minimum. Additional hours $99.99 each.'; }else{ for(let h=4;h<=12;h++){ options.push([ h===4?'Up to 4 Hours':h+' Hours', 30000+((h-4)*10000) ]); } description.textContent = '$300 for up to four hours. Additional hours $100 each.'; } options.forEach(function(item){ const option = document.createElement('option'); option.textContent = item[0]; option.value = item[1]; duration.appendChild(option); }); calculate(); } function calculate(){ total.textContent = '$'+(Number(duration.value)/100).toFixed(2); } service.addEventListener('change',updateOptions); duration.addEventListener('change',calculate); updateOptions(); })();