|
@@ -1,5 +1,5 @@
|
|
/*!
|
|
/*!
|
|
- * reveal.js 2.0 r20
|
|
|
|
|
|
+ * reveal.js 2.0 r21
|
|
* http://lab.hakim.se/reveal-js
|
|
* http://lab.hakim.se/reveal-js
|
|
* MIT licensed
|
|
* MIT licensed
|
|
*
|
|
*
|
|
@@ -39,6 +39,9 @@ var Reveal = (function(){
|
|
// Apply a 3D roll to links on hover
|
|
// Apply a 3D roll to links on hover
|
|
rollingLinks: true,
|
|
rollingLinks: true,
|
|
|
|
|
|
|
|
+ // Transition style (see /css/theme)
|
|
|
|
+ theme: 'default',
|
|
|
|
+
|
|
// Transition style
|
|
// Transition style
|
|
transition: 'default', // default/cube/page/concave/linear(2d),
|
|
transition: 'default', // default/cube/page/concave/linear(2d),
|
|
|
|
|
|
@@ -111,6 +114,7 @@ var Reveal = (function(){
|
|
extend( config, options );
|
|
extend( config, options );
|
|
|
|
|
|
// Cache references to DOM elements
|
|
// Cache references to DOM elements
|
|
|
|
+ dom.theme = document.querySelector( '#theme' );
|
|
dom.wrapper = document.querySelector( '.reveal' );
|
|
dom.wrapper = document.querySelector( '.reveal' );
|
|
dom.progress = document.querySelector( '.reveal .progress' );
|
|
dom.progress = document.querySelector( '.reveal .progress' );
|
|
dom.progressbar = document.querySelector( '.reveal .progress span' );
|
|
dom.progressbar = document.querySelector( '.reveal .progress span' );
|
|
@@ -222,6 +226,10 @@ var Reveal = (function(){
|
|
dom.progress.style.display = 'block';
|
|
dom.progress.style.display = 'block';
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if( config.theme && dom.theme ) {
|
|
|
|
+ dom.theme.setAttribute( 'href', 'css/theme/' + config.theme + '.css' );
|
|
|
|
+ }
|
|
|
|
+
|
|
if( config.transition !== 'default' ) {
|
|
if( config.transition !== 'default' ) {
|
|
dom.wrapper.classList.add( config.transition );
|
|
dom.wrapper.classList.add( config.transition );
|
|
}
|
|
}
|