diff --git a/js/reveal.js b/js/reveal.js index d5d9cbf..9ea61db 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -2614,7 +2614,7 @@ // Iframes else if ( backgroundIframe ) { var iframe = document.createElement( 'iframe' ); - iframe.setAttribute('src', backgroundIframe); + iframe.setAttribute( 'src', backgroundIframe ); iframe.style.width = '100%'; iframe.style.height = '100%'; iframe.style.maxHeight = '100%'; diff --git a/test/examples/slide-backgrounds.html b/test/examples/slide-backgrounds.html index 25beab9..4e5e406 100644 --- a/test/examples/slide-backgrounds.html +++ b/test/examples/slide-backgrounds.html @@ -64,20 +64,20 @@ -
+

Background image

-
+

Background image

-
+

Background image

-
+

Background image

data-background-size="100px" data-background-repeat="repeat" data-background-color="#111"
@@ -89,6 +89,14 @@

Same background twice (2/2)

+
+

Video background

+
+ +
+

Iframe background

+
+

Same background twice vertical (1/2)