<div id="njoy-player">
<div class="njoy-brand">
<span class="njoy-logo">nJOY</span>
<span class="njoy-live">● LIVE</span>
</div>
<div class="njoy-info">
<div class="njoy-station">NJOY RADIO</div>
<div id="njoy-track">Η μουσική που αγαπάς</div>
<div class="njoy-status">Η μουσική και η ενημέρωση που αγαπάς</div>
</div>
<button id="njoy-play" aria-label="Play radio">
▶
</button>
<audio id="njoy-audio" preload="none">
<source src="https://i7.streams.ovh:17127/autodj"
type="audio/mpeg">
</audio>
</div>
<style>
#njoy-player {
width:100%;
box-sizing:border-box;
display:flex;
align-items:center;
gap:18px;
padding:17px 22px;
border-radius:12px;
background:linear-gradient(110deg,#151B35,#29204D);
color:#fff;
font-family:Arial,sans-serif;
box-shadow:0 5px 18px rgba(21,27,53,.18);
}
#njoy-player .njoy-brand {
display:flex;
flex-direction:column;
min-width:75px;
gap:5px;
}
#njoy-player .njoy-logo {
font-size:27px;
font-weight:900;
letter-spacing:-1px;
color:#fff;
}
#njoy-player .njoy-live {
font-size:10px;
font-weight:bold;
color:#E34BBD;
}
#njoy-player .njoy-info {
flex:1;
min-width:0;
}
#njoy-player .njoy-station {
font-size:11px;
font-weight:bold;
color:#318BFF;
letter-spacing:1.5px;
margin-bottom:5px;
}
#njoy-player #njoy-track {
font-size:15px;
font-weight:bold;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
#njoy-player .njoy-status {
font-size:11px;
color:#c5c5d7;
margin-top:5px;
}
#njoy-player #njoy-play {
width:52px;
height:52px;
flex-shrink:0;
border:0;
border-radius:50%;
background:linear-gradient(135deg,#783BDB,#318BFF);
color:white;
font-size:21px;
cursor:pointer;
transition:transform .2s;
}
#njoy-player #njoy-play:hover {
transform:scale(1.08);
}
@media(max-width:480px) {
#njoy-player {
padding:13px;
gap:11px;
}
#njoy-player .njoy-logo {
font-size:23px;
}
#njoy-player #njoy-play {
width:46px;
height:46px;
}
}
</style>
<script>
(function(){
const player = document.getElementById('njoy-player');
if (!player || player.dataset.ready) return;
player.dataset.ready = '1';
const audio = player.querySelector('#njoy-audio');
const button = player.querySelector('#njoy-play');
const track = player.querySelector('#njoy-track');
button.addEventListener('click', async function(){
if (audio.paused) {
button.textContent = '…';
try {
await audio.play();
button.textContent = 'Ⅱ';
button.setAttribute('aria-label','Pause radio');
} catch(e) {
button.textContent = '▶';
track.textContent = 'Δεν ήταν δυνατή η σύνδεση';
}
} else {
audio.pause();
button.textContent = '▶';
button.setAttribute('aria-label','Play radio');
}
});
audio.addEventListener('playing',function(){
button.textContent = 'Ⅱ';
});
audio.addEventListener('pause',function(){
button.textContent = '▶';
});
async function updateTrack(){
try {
const response = await fetch(
'https://i7.streams.ovh:17127/status-json.xsl',
{cache:'no-store'}
);
if (!response.ok) return;
const data = await response.json();
let sources = data.icestats.source;
if (!Array.isArray(sources)) sources = [sources];
const source = sources.find(s =>
s && s.title && s.listenurl &&
s.listenurl.includes('autodj')
);
if (source && source.title) {
track.textContent = source.title;
}
} catch(e) {
// Ο player συνεχίζει να λειτουργεί
// ακόμη κι αν δεν διατίθενται metadata.
}
}
updateTrack();
setInterval(updateTrack,20000);
})();
</script> Λουτράκι – Συνεδριάζει το Δημοτικό Συμβούλιο

Την Παρασκευή 27 Νοεμβρίου, στις 17:00, συνεδριάζει το Δημοτικό Συμβούλιο. Στην ημερήσια διάταξη περιλαμβάνονται: njoyradio.gr









