Update '12/liveplayer.js'

master
murtaugh 5 years ago
parent cdf8b2e0f1
commit add81ef9b5

@ -29,8 +29,17 @@ function liveplayer (elt) {
console.log("****", iframe, d.artist); console.log("****", iframe, d.artist);
if (iframe&&d.artist){ if (iframe&&d.artist){
iframe.src = d.artist; if ((d.artist.endsWith(".jpg") || d.arts.endsWith(".png")) {
} console.log("IMAGE", d.artist);
iframe.style.backgroundImage: d.artist;
iframe.src = "blank.html";
} else {
console.log("OTHER URL");
iframe.src = d.artist;
}
} else if (iframe) {
iframe.src = "blank.html";
}
}, DELAY_TIME_SECS*1000); }, DELAY_TIME_SECS*1000);

Loading…
Cancel
Save