Эх сурвалжийг харах

allow fullscreen for background iframes

Hakim El Hattab 8 жил өмнө
parent
commit
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