aboutsummaryrefslogtreecommitdiff
path: root/js/reveal.js
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2013-06-22 19:23:44 -0400
committerHakim El Hattab <hakim.elhattab@gmail.com>2013-06-22 19:23:44 -0400
commitc065705128e902b036be2aa5a7efb06f2b77e4d9 (patch)
treec57ece3becc1dc04dcc4498aabc764a13f4686bd /js/reveal.js
parentc9b179fd856415de42b8a60c650b988cbca39f69 (diff)
downloadfreenode-live-2017-presentation-c065705128e902b036be2aa5a7efb06f2b77e4d9.tar
freenode-live-2017-presentation-c065705128e902b036be2aa5a7efb06f2b77e4d9.tar.gz
background image tweaks
Diffstat (limited to 'js/reveal.js')
-rw-r--r--js/reveal.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/reveal.js b/js/reveal.js
index e95ec74..676122f 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -272,6 +272,7 @@ var Reveal = (function(){
var data = {
background: slide.getAttribute( 'data-background' ),
backgroundSize: slide.getAttribute( 'data-background-size' ),
+ backgroundImage: slide.getAttribute( 'data-background-image' ),
backgroundColor: slide.getAttribute( 'data-background-color' ),
backgroundRepeat: slide.getAttribute( 'data-background-repeat' ),
backgroundPosition: slide.getAttribute( 'data-background-position' ),
@@ -293,6 +294,7 @@ var Reveal = (function(){
// Additional and optional background properties
if( data.backgroundSize ) element.style.backgroundSize = data.backgroundSize;
+ if( data.backgroundImage ) element.style.backgroundImage = 'url("' + data.backgroundImage + '")';
if( data.backgroundColor ) element.style.backgroundColor = data.backgroundColor;
if( data.backgroundRepeat ) element.style.backgroundRepeat = data.backgroundRepeat;
if( data.backgroundPosition ) element.style.backgroundPosition = data.backgroundPosition;