Update '12/player.js'

master
barkaiavital 5 years ago
parent a00b5ee712
commit abcb3e7b9b

@ -6,6 +6,10 @@ track.addEventListener('cuechange', function () {
var d = JSON.parse(cues[0].text);
console.log("d",d);
track_div.innerHTML = d.title;
var old = document.querySelector(".now_playing");
if (old) {
old.classList.remove("now_playing");
}
var playing = document.getElementById(d.title);
playing.classList.add("now_playing");
console.log("playing",playing);

Loading…
Cancel
Save