diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2012-08-30 00:59:51 -0400 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2012-08-30 00:59:51 -0400 |
commit | 90f343e5bddb663f061a2c2f40eac352b52601b8 (patch) | |
tree | 516f7446bd53e196c39ac81b1e7f8d760834e11c /js/reveal.js | |
parent | e3f3e9defba45889fb9bb4157a1aa3c9951501b3 (diff) | |
download | fosdem-2018-presentation-90f343e5bddb663f061a2c2f40eac352b52601b8.tar fosdem-2018-presentation-90f343e5bddb663f061a2c2f40eac352b52601b8.tar.gz |
add theme config option, add sky theme, fix line-height of <small>
Diffstat (limited to 'js/reveal.js')
-rw-r--r-- | js/reveal.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/js/reveal.js b/js/reveal.js index 9c26f29..31b9bf1 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -1,5 +1,5 @@ /*! - * reveal.js 2.0 r20 + * reveal.js 2.0 r21 * http://lab.hakim.se/reveal-js * MIT licensed * @@ -39,6 +39,9 @@ var Reveal = (function(){ // Apply a 3D roll to links on hover rollingLinks: true, + // Transition style (see /css/theme) + theme: 'default', + // Transition style transition: 'default', // default/cube/page/concave/linear(2d), @@ -111,6 +114,7 @@ var Reveal = (function(){ extend( config, options ); // Cache references to DOM elements + dom.theme = document.querySelector( '#theme' ); dom.wrapper = document.querySelector( '.reveal' ); dom.progress = document.querySelector( '.reveal .progress' ); dom.progressbar = document.querySelector( '.reveal .progress span' ); @@ -222,6 +226,10 @@ var Reveal = (function(){ dom.progress.style.display = 'block'; } + if( config.theme && dom.theme ) { + dom.theme.setAttribute( 'href', 'css/theme/' + config.theme + '.css' ); + } + if( config.transition !== 'default' ) { dom.wrapper.classList.add( config.transition ); } |