Commit e4b1e058 by Ernie Park

enable space bar to pause video

--HG--
branch : templates-ernie-video-spacebar
parent feb383fd
......@@ -70,3 +70,11 @@ $("#video_control").click(function(){
$(this).removeClass().addClass("play");
}
});
// space bar to pause video
$(".video-wrapper").keyup(function(e){
active = document.activeElement;
if (e.which == 32) {
e.preventDefault();
$("#video_control").click();
}
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment