aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2017-01-18 10:43:29 +0100
committerHakim El Hattab <hakim.elhattab@gmail.com>2017-01-18 10:43:29 +0100
commit941b86b6c390bf91eeb6b47f12ff8bf830e28b0a (patch)
tree2916787d820d26a2c6082c26e80921aea89533bf /js
parent84090b882f99c1da5b73bbe04a9c74731e71dfc8 (diff)
downloadfreenode-live-2017-presentation-941b86b6c390bf91eeb6b47f12ff8bf830e28b0a.tar
freenode-live-2017-presentation-941b86b6c390bf91eeb6b47f12ff8bf830e28b0a.tar.gz
works with video, defaults to (same as for images)
Diffstat (limited to 'js')
-rw-r--r--js/reveal.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 7f4783e..a59916f 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -884,6 +884,7 @@
// Additional and optional background properties
if( data.backgroundSize ) element.style.backgroundSize = data.backgroundSize;
+ if( data.backgroundSize ) element.setAttribute( 'data-background-size', data.backgroundSize );
if( data.backgroundColor ) element.style.backgroundColor = data.backgroundColor;
if( data.backgroundRepeat ) element.style.backgroundRepeat = data.backgroundRepeat;
if( data.backgroundPosition ) element.style.backgroundPosition = data.backgroundPosition;