Update html/poketube.ejs

This commit is contained in:
ashley 2024-08-11 09:21:23 +00:00
parent 79b209fabe
commit 93243ed7db

View file

@ -633,8 +633,7 @@ background-color: #0000;
document.addEventListener('keydown', function(event) {
const video = document.querySelector('video'); // Adjust if you have a different way to reference your video element
if (document.activeElement === video) {
// Toggle play/pause with the Spacebar
if (event.code === 'Space') {
event.preventDefault(); // Prevent default action, like activating buttons
@ -669,7 +668,7 @@ background-color: #0000;
video.currentTime = time;
}
});
}
const audio = document.getElementById('aud');
// Sync volume between audio and video