gugu gaga

This commit is contained in:
x 2025-04-07 08:48:10 +02:00
parent 23a62d3803
commit b964a71c7a

View File

@ -11,7 +11,7 @@ window.requestAnimFrame = (function(){
if(elem = document.querySelector("#my-video")) {
video = new v0ck(elem);
document.addEventListener("keydown", e => {
if(e.key === " " && e.target.tagName !== "INPUT") {
if(e.key === " " && e.target.tagName !== "INPUT" && e.target.tagName !== "TEXTAREA") {
video[video.paused ? 'play' : 'pause']();
document.querySelector('.v0ck_overlay').classList[video.paused ? 'remove' : 'add']('v0ck_hidden');
}