From 015870ca8af5144ec7e359567df97ac258179068 Mon Sep 17 00:00:00 2001 From: Andrew Dunning Date: Wed, 14 Oct 2015 17:06:16 -0400 Subject: [PATCH 1/2] Use en dash in title; is a void element. --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 0159b7f..1049a85 100644 --- a/index.html +++ b/index.html @@ -4,13 +4,13 @@ - reveal.js - The HTML Presentation Framework + reveal.js – The HTML Presentation Framework - - + + From 2b9d1871c984045cb2df90b22fc5badf9fd042cd Mon Sep 17 00:00:00 2001 From: Andrew Dunning Date: Wed, 14 Oct 2015 18:14:33 -0400 Subject: [PATCH 2/2] Move up Presentation Size section. This brings together all configuration options. --- README.md | 56 +++++++++++++++++++++++++++---------------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index a582549..e001a93 100644 --- a/README.md +++ b/README.md @@ -199,6 +199,34 @@ Reveal.configure({ autoSlide: 5000 }); ``` +### Presentation Size + +All presentations have a normal size, that is the resolution at which they are authored. The framework will automatically scale presentations uniformly based on this size to ensure that everything fits on any given display or viewport. + +See below for a list of configuration options related to sizing, including default values: + +```javascript +Reveal.initialize({ + + ... + + // The "normal" size of the presentation, aspect ratio will be preserved + // when the presentation is scaled to fit different resolutions. Can be + // specified using percentage units. + width: 960, + height: 700, + + // Factor of the display size that should remain empty around the content + margin: 0.1, + + // Bounds for smallest/largest possible scale to apply to content + minScale: 0.2, + maxScale: 1.5 + +}); +``` + + ### Dependencies Reveal.js doesn't _rely_ on any third party scripts to work but a few optional libraries are included by default. These libraries are loaded as dependencies in the order they appear, for example: @@ -249,34 +277,6 @@ Reveal.addEventListener( 'ready', function( event ) { ``` -### Presentation Size - -All presentations have a normal size, that is the resolution at which they are authored. The framework will automatically scale presentations uniformly based on this size to ensure that everything fits on any given display or viewport. - -See below for a list of configuration options related to sizing, including default values: - -```javascript -Reveal.initialize({ - - ... - - // The "normal" size of the presentation, aspect ratio will be preserved - // when the presentation is scaled to fit different resolutions. Can be - // specified using percentage units. - width: 960, - height: 700, - - // Factor of the display size that should remain empty around the content - margin: 0.1, - - // Bounds for smallest/largest possible scale to apply to content - minScale: 0.2, - maxScale: 1.5 - -}); -``` - - ### Auto-sliding Presentations can be configured to progress through slides automatically, without any user input. To enable this you will need to tell the framework how many milliseconds it should wait between slides: