1function fetchLiveBroadcast() { 2 // Csak a kezdÅlapon van adásban doboz 3 if (!document.getElementById('live-broadcast-content')) return; 4 5 fetch('https://embed.vrapro.hu/json/?radio=6egls0eefa9a5747eab2dab995b81d8d&plugin=onair') 6 .then(response => response.json()) 7 .then(data => { 8 const onAir = data.onair; 9 const avatar = onAir.avatar && onAir.avatar !== '' ? onAir.avatar : 'assets/images/logosdr.png'; 10 const title = onAir.title || 'Nincs elérhetÅ adat'; 11 const description = onAir.description || 'Nincs elérhetÅ leÃrás'; 12 const user = onAir.user || 'Ismeretlen'; 13 14 const content = ` 15 <div class="card bg-dark text-white shadow-sm"> 16 <div class="card-header text-center"> 17 <img src="${avatar}" alt="Adásban lévÅ avatar" class="rounded-circle img-fluid" style="max-width: 250px;"> 18 </div> 19 <div class="card-body text-center"> 20 <h5 class="card-title">${title}</h5> 21 <p class="card-text">${description}</p> 22 <p class="card-text"><strong>Adásban:</strong> ${user}</p> 23 </div> 24 </div> 25 `; 26 const container = document.getElementById('live-broadcast-content'); 27 if (container) container.innerHTML = content; 28 }) 29 .catch(error => console.error('Error fetching live broadcast data:', error)); 30} 31 32// Fetch data initially and set interval for updates 33fetchLiveBroadcast(); 34setInterval(fetchLiveBroadcast, 10000); // Update every 10 seconds
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.