Created
April 24, 2023 17:31
-
-
Save mochki/82237851b53558541fa22810027859a8 to your computer and use it in GitHub Desktop.
simple "extensions", just need these somewhere
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.addEventListener("keydown", e => { | |
if (e.keyCode == 37) { | |
$('video').currentTime = $('video').currentTime - 5; | |
} | |
if (e.keyCode == 39) { | |
$('video').currentTime = $('video').currentTime + 5; | |
} | |
}); | |
// >> | |
// on loads... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment