|
|
@ -1,5 +1,6 @@
|
|
|
|
var track = document.querySelector("track"),
|
|
|
|
function player(element){
|
|
|
|
track_div = document.getElementById("track");
|
|
|
|
var track = element.querySelector("track"),
|
|
|
|
|
|
|
|
track_div = element.querySelector(".track_display");
|
|
|
|
track.addEventListener('cuechange', function () {
|
|
|
|
track.addEventListener('cuechange', function () {
|
|
|
|
let cues = track.track.activeCues; // array of current cues
|
|
|
|
let cues = track.track.activeCues; // array of current cues
|
|
|
|
console.log("cuechange", cues, cues[0].text, cues[0].startTime, cues[0].endTime);
|
|
|
|
console.log("cuechange", cues, cues[0].text, cues[0].startTime, cues[0].endTime);
|
|
|
@ -14,3 +15,7 @@ track.addEventListener('cuechange', function () {
|
|
|
|
playing.classList.add("now_playing");
|
|
|
|
playing.classList.add("now_playing");
|
|
|
|
console.log("playing",playing);
|
|
|
|
console.log("playing",playing);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
player(document.querySelector("#week_02");
|
|
|
|
|
|
|
|
player(document.querySelector("#week_01");
|