|
|
|
@ -18,12 +18,18 @@ function liveplayer (elt) {
|
|
|
|
|
old_nowplaying.classList.remove("now_playing");
|
|
|
|
|
}
|
|
|
|
|
var nowplaying = elt.querySelector("#"+d.title);
|
|
|
|
|
var iframe = elt.querySelector("iframe");
|
|
|
|
|
if (nowplaying) {
|
|
|
|
|
console.log("liveplayer: nowplaying", nowplaying);
|
|
|
|
|
nowplaying.classList.add("now_playing");
|
|
|
|
|
} else {
|
|
|
|
|
console.log("liveplayer: warning no div matching title " + d.title);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (iframe&&d.artist){
|
|
|
|
|
iframe.src = d.artist;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}, DELAY_TIME_SECS*1000);
|
|
|
|
|
}
|
|
|
|
|
window.setTimeout(poll, 10000);
|
|
|
|
|