Skip to content

Commit

Permalink
全画面再生ボタンを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
Takayuki Fuwa committed Aug 21, 2016
1 parent 0bfe870 commit 7ac322d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions js/video_main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
$('#btn_fullscreen').on('click', function(event) {
document.getElementsByTagName('video')[0].webkitEnterFullscreen();
if (!!document.getElementsByTagName('video')[0].requestFullScreen) {
document.getElementsByTagName('video')[0].requestFullScreen();
} else if (!!document.getElementsByTagName('video')[0].webkitRequestFullScreen) {
document.getElementsByTagName('video')[0].webkitRequestFullScreen();
} else if (!!document.getElementsByTagName('video')[0].webkitEnterFullscreen) {
document.getElementsByTagName('video')[0].webkitEnterFullscreen();
}
});

0 comments on commit 7ac322d

Please sign in to comment.