소스 검색

allow fullscreen for background iframes

Hakim El Hattab 8 년 전
부모
커밋
3ea7e2ff59
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      js/reveal.js

+ 3 - 0
js/reveal.js

@@ -3122,6 +3122,9 @@
 				// Iframes
 				else if( backgroundIframe ) {
 					var iframe = document.createElement( 'iframe' );
+					iframe.setAttribute( 'allowfullscreen', '' );
+					iframe.setAttribute( 'mozallowfullscreen', '' );
+					iframe.setAttribute( 'webkitallowfullscreen', '' );
 
 					// Only load autoplaying content when the slide is shown to
 					// avoid having it play in the background