gugu gaga
This commit is contained in:
parent
23a62d3803
commit
b964a71c7a
@ -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');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user