Update '12/liveplayer.js'

master
murtaugh 5 years ago
parent 66b8818e07
commit d023845aed

@ -1,4 +1,4 @@
function liveplayer (elt) {
function liveplayer (elt, iframe) {
var last_timestamp,
DELAY_TIME_SECS = 5,
originalsrc= iframe ? iframe.src : '';
@ -19,7 +19,6 @@ 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");
@ -40,7 +39,7 @@ function liveplayer (elt) {
iframe.src = d.artist;
}
} else if (iframe) {
iframe.src = "resources_04.html";
iframe.src = originalsrc;
}

Loading…
Cancel
Save