فهرست منبع

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