diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2014-09-09 17:51:36 +0200 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2014-09-09 17:51:36 +0200 |
commit | bc2974fef879a273fa5600b9b2e7d1481ebe8afd (patch) | |
tree | 4008d41cee36ea79d73fb67e21b9246f876d839c | |
parent | 2479883d3cdec0a810f95e4fe80696877e5ae227 (diff) | |
download | perl-software-in-gnu-guix-bc2974fef879a273fa5600b9b2e7d1481ebe8afd.tar perl-software-in-gnu-guix-bc2974fef879a273fa5600b9b2e7d1481ebe8afd.tar.gz |
bubble has-light-background to .reveal container
-rw-r--r-- | js/reveal.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/js/reveal.js b/js/reveal.js index ca0dde6..81c100c 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -2463,6 +2463,15 @@ } + // If the slide has a light background, bubble that up as a + // class to .reveal container + if( currentSlide && currentSlide.classList.contains( 'has-light-background' ) ) { + dom.wrapper.classList.add( 'has-light-background' ); + } + else { + dom.wrapper.classList.remove( 'has-light-background' ); + } + // Allow the first background to apply without transition setTimeout( function() { dom.background.classList.remove( 'no-transition' ); |