From 46dd9dd817a7e362afb099d3fcc6e9a97c1ee4d3 Mon Sep 17 00:00:00 2001 From: Eric Weikl Date: Tue, 18 Jun 2013 18:33:03 +0200 Subject: [PATCH 1/7] Create a single fragment event per fragment-index For backward-compatibility, add a new 'fragments' property to the fragmentshown and fragmenthidden events. The 'fragment' property still returns the first fragment. --- js/reveal.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/js/reveal.js b/js/reveal.js index 70c782c..074fd9d 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -1916,11 +1916,11 @@ var Reveal = (function(){ toArray( fragments ).forEach( function( element ) { element.classList.add( 'visible' ); - - // Notify subscribers of the change - dispatchEvent( 'fragmentshown', { fragment: element } ); } ); + // Notify subscribers of the change + dispatchEvent( 'fragmentshown', { fragment: fragments[0], fragments: fragments } ); + updateControls(); return true; } @@ -1950,11 +1950,11 @@ var Reveal = (function(){ toArray( fragments ).forEach( function( f ) { f.classList.remove( 'visible' ); - - // Notify subscribers of the change - dispatchEvent( 'fragmenthidden', { fragment: f } ); } ); + // Notify subscribers of the change + dispatchEvent( 'fragmenthidden', { fragment: fragments[0], fragments: fragments } ); + updateControls(); return true; } From 668f144f38880441abb2faee9c1476c9880ac3b5 Mon Sep 17 00:00:00 2001 From: Shammel Lee Date: Fri, 28 Jun 2013 16:08:40 -0400 Subject: [PATCH 2/7] Updated README.md Added "touch" config property --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 96b7c0e..c56e5c5 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,9 @@ Reveal.initialize({ // Enable keyboard shortcuts for navigation keyboard: true, + // Enable touch events for navigation + touch: true, + // Enable the slide overview mode overview: true, From f0e63c8e7549d21fb9e17e9af705ba7fc7eeb0f0 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Sat, 29 Jun 2013 21:36:11 -0400 Subject: [PATCH 3/7] additional background test --- test/background.html | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/test/background.html b/test/background.html index 9d6a147..da2b947 100644 --- a/test/background.html +++ b/test/background.html @@ -50,10 +50,19 @@ -
+

Background image

+
+
+

Background image

+
+
+

Background image

+
+
+

Background image

data-background-size="100px" data-background-repeat="repeat" data-background-color="#111"
From 01e5a54bb653645441f46a7f533cefde6cce445f Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Sat, 29 Jun 2013 21:42:15 -0400 Subject: [PATCH 4/7] test > examples --- {test => examples}/assets/image1.png | Bin {test => examples}/assets/image2.png | Bin {test => examples}/background.html | 0 {test => examples}/media.html | 0 4 files changed, 0 insertions(+), 0 deletions(-) rename {test => examples}/assets/image1.png (100%) rename {test => examples}/assets/image2.png (100%) rename {test => examples}/background.html (100%) rename {test => examples}/media.html (100%) diff --git a/test/assets/image1.png b/examples/assets/image1.png similarity index 100% rename from test/assets/image1.png rename to examples/assets/image1.png diff --git a/test/assets/image2.png b/examples/assets/image2.png similarity index 100% rename from test/assets/image2.png rename to examples/assets/image2.png diff --git a/test/background.html b/examples/background.html similarity index 100% rename from test/background.html rename to examples/background.html diff --git a/test/media.html b/examples/media.html similarity index 100% rename from test/media.html rename to examples/media.html From b292c6f3f4526ef93ef96cbf4092a86bfadbbc85 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Sat, 29 Jun 2013 21:48:56 -0400 Subject: [PATCH 5/7] add barebones example --- examples/barebones.html | 42 +++++++++++++++++++ examples/{media.html => embedded-media.html} | 13 +----- ...background.html => slide-backgrounds.html} | 5 +-- 3 files changed, 45 insertions(+), 15 deletions(-) create mode 100644 examples/barebones.html rename examples/{media.html => embedded-media.html} (71%) rename examples/{background.html => slide-backgrounds.html} (96%) diff --git a/examples/barebones.html b/examples/barebones.html new file mode 100644 index 0000000..7a1dcee --- /dev/null +++ b/examples/barebones.html @@ -0,0 +1,42 @@ + + + + + + + reveal.js - Barebones + + + + + + +
+ +
+ +
+

Barebones Presentation

+

This example contains the bare minimum includes and markup required to run a reveal.js presentation.

+
+ +
+

No Theme

+

There's no theme included, so it will fall back on browser defaults.

+
+ +
+ +
+ + + + + + + + diff --git a/examples/media.html b/examples/embedded-media.html similarity index 71% rename from examples/media.html rename to examples/embedded-media.html index 6e95606..f3bcae4 100644 --- a/examples/media.html +++ b/examples/embedded-media.html @@ -4,7 +4,7 @@ - reveal.js - Test + reveal.js - Embedded Media @@ -39,17 +39,8 @@ diff --git a/examples/background.html b/examples/slide-backgrounds.html similarity index 96% rename from examples/background.html rename to examples/slide-backgrounds.html index da2b947..fbbdd3a 100644 --- a/examples/background.html +++ b/examples/slide-backgrounds.html @@ -4,7 +4,7 @@ - reveal.js - Test + reveal.js - Slide Backgrounds @@ -87,9 +87,6 @@ // Full list of configuration options available here: // https://github.com/hakimel/reveal.js#configuration Reveal.initialize({ - controls: true, - progress: true, - history: true, center: true, // rtl: true, From ed0af87abd01cbcf5ae19fe422d35269b691674a Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Mon, 1 Jul 2013 10:26:27 -0400 Subject: [PATCH 6/7] update url to setup instructions (closes #520) --- css/theme/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/css/theme/README.md b/css/theme/README.md index b6bcedb..28ded29 100644 --- a/css/theme/README.md +++ b/css/theme/README.md @@ -1,6 +1,6 @@ ## Dependencies -Themes are written using Sass to keep things modular and reduce the need for repeated selectors across files. Make sure that you have the reveal.js development environment including the Grunt dependencies installed before proceding: https://github.com/hakimel/reveal.js#development-environment +Themes are written using Sass to keep things modular and reduce the need for repeated selectors across files. Make sure that you have the reveal.js development environment including the Grunt dependencies installed before proceding: https://github.com/hakimel/reveal.js#full-setup @@ -20,4 +20,4 @@ Declares a set of custom variables that the template file (step 4) expects. Can This is where you override the default theme. Either by specifying variables (see [settings.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/settings.scss) for reference) or by adding full selectors with hardcoded styles. 4. **Include [/css/theme/template/theme.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/theme.scss)** -The template theme file which will generate final CSS output based on the currently defined variables. \ No newline at end of file +The template theme file which will generate final CSS output based on the currently defined variables. From 7d19b4f7ce2ab3fd7880d0f60b1c147d44808f0c Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Tue, 2 Jul 2013 18:42:37 -0400 Subject: [PATCH 7/7] update changelog links --- README.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c56e5c5..04313df 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ reveal.js comes with a broad range of features including [nested slides](https:/ #### More reading: - [Installation](#installation): Step-by-step instructions for getting reveal.js running on your computer. -- [Changelog](https://github.com/hakimel/reveal.js/wiki/Changelog): Up-to-date version history. +- [Changelog](https://github.com/hakimel/reveal.js/releases): Up-to-date version history. - [Examples](https://github.com/hakimel/reveal.js/wiki/Example-Presentations): Presentations created with reveal.js, add your own! - [Browser Support](https://github.com/hakimel/reveal.js/wiki/Browser-Support): Explanation of browser support and fallbacks. @@ -633,7 +633,7 @@ The **basic setup** is for authoring presentations only. The **full setup** give The core of reveal.js is very easy to install. You'll simply need to download a copy of this repository and open the index.html file directly in your browser. -1. Download a copy of reveal.js from +1. Download the latest version of reveal.js from 2. Unzip and replace the example contents in index.html with your own @@ -653,17 +653,22 @@ Some reveal.js features, like external markdown, require that presentations run $ git clone git@github.com:hakimel/reveal.js.git ``` -5. Install dependencies +5. Navigate to the reveal.js folder +``` +$ cd reveal.js +``` + +6. Install dependencies ``` $ npm install ``` -6. Serve the presentation and monitor source files for changes +7. Serve the presentation and monitor source files for changes ``` $ grunt serve ``` -7. Open to view your presentation +8. Open to view your presentation ### Folder Structure