Template:Home/NowPlaying2: Difference between revisions

Template page
No edit summary
No edit summary
Line 24: Line 24:
var button = document.querySelector("#ytButton");
var button = document.querySelector("#ytButton");
var player = document.querySelector("#video-source");
var player = document.querySelector("#video-source");
var video = document.getElementById('content-video');
button.addEventListener("click", playNext);
button.addEventListener("click", playNext);


Line 30: Line 31:
   shuffledList.push(justPlayedVideo);
   shuffledList.push(justPlayedVideo);
   player.src = shuffledList[0];
   player.src = shuffledList[0];
 
  video.load()
}
}



Revision as of 22:38, 3 August 2023

Now Playing