changeset 255:9cf01b3e75d0

reveal.js: add new configurable options and comments: * Made option "center" configurable. * Added new options "maxScale" and "slideNumber". * Added comments to existing options. Signed-off-by: Dmitry Smirnov <onlyjob@member.fsf.org>
author Dmitry Smirnov <onlyjob@member.fsf.org>
date Tue, 31 Mar 2015 19:40:38 +1100
parents 314660acba5c
children 6d662eb908c9
files default.revealjs
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/default.revealjs	Mon Feb 16 19:57:17 2015 -0800
+++ b/default.revealjs	Tue Mar 31 19:40:38 2015 +1100
@@ -86,10 +86,12 @@
       // Full list of configuration options available here:
       // https://github.com/hakimel/reveal.js#configuration
       Reveal.initialize({
-        controls: true,
-        progress: true,
-        history: true,
-        center: true,
+        controls: true,         // Display controls in the bottom right corner
+        progress: true,         // Display a presentation progress bar
+        history: true,          // Push each slide change to the browser history
+        center: $if(center)$$center$$else$true$endif$,                       // Vertical centering of slides
+        maxScale: $if(maxScale)$$maxScale$$else$1.5$endif$,                  // Bounds for smallest/largest possible content scale
+        slideNumber: $if(slideNumber)$true$else$false$endif$,                // Display the page number of the current slide
         theme: $if(theme)$'$theme$'$else$Reveal.getQueryHash().theme$endif$, // available themes are in /css/theme
         transition: $if(transition)$'$transition$'$else$Reveal.getQueryHash().transition || 'default'$endif$, // default/cube/page/concave/zoom/linear/fade/none