|
@@ -209,6 +209,26 @@ var Reveal = (function(){
|
|
|
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ * Iterates through and decorates slides DOM elements with
|
|
|
+ * appropriate classes.
|
|
|
+ */
|
|
|
+ function setupSlides() {
|
|
|
+
|
|
|
+ var horizontalSlides = toArray( document.querySelectorAll( HORIZONTAL_SLIDES_SELECTOR ) );
|
|
|
+ horizontalSlides.forEach( function( horizontalSlide ) {
|
|
|
+
|
|
|
+ var verticalSlides = toArray( horizontalSlide.querySelectorAll( 'section' ) );
|
|
|
+ verticalSlides.forEach( function( verticalSlide, y ) {
|
|
|
+
|
|
|
+ if( y > 0 ) verticalSlide.classList.add( 'future' );
|
|
|
+
|
|
|
+ } );
|
|
|
+
|
|
|
+ } );
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
* Finds and stores references to DOM elements which are
|
|
|
* required by the presentation. If a required element is
|
|
@@ -438,6 +458,9 @@ var Reveal = (function(){
|
|
|
|
|
|
setupDOM();
|
|
|
|
|
|
+
|
|
|
+ setupSlides();
|
|
|
+
|
|
|
|
|
|
configure();
|
|
|
|