From 7ac322d4c8d6258ec6808b7d330eacd2024fc84e Mon Sep 17 00:00:00 2001 From: Takayuki Fuwa Date: Sun, 21 Aug 2016 23:02:30 +0900 Subject: [PATCH] =?UTF-8?q?=E5=85=A8=E7=94=BB=E9=9D=A2=E5=86=8D=E7=94=9F?= =?UTF-8?q?=E3=83=9C=E3=82=BF=E3=83=B3=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/video_main.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 js/video_main.js diff --git a/js/video_main.js b/js/video_main.js new file mode 100644 index 0000000..df808b7 --- /dev/null +++ b/js/video_main.js @@ -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(); + } +}); \ No newline at end of file