mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-10 04:48:35 +01:00
Update html/poketube.ejs
This commit is contained in:
parent
79b209fabe
commit
93243ed7db
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue