aboutsummaryrefslogtreecommitdiff
path: root/js/reveal.js
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2013-11-18 09:13:34 -0500
committerHakim El Hattab <hakim.elhattab@gmail.com>2013-11-18 09:13:39 -0500
commit8550186afce516c4d4eb64103c540edd53a890d3 (patch)
tree1c905d66f1d489c8e56f2115d165c0f58851c921 /js/reveal.js
parentb4e2c97d0c05395fa7ce46ca57dad029f878d088 (diff)
downloadfreenode-live-2017-presentation-8550186afce516c4d4eb64103c540edd53a890d3.tar
freenode-live-2017-presentation-8550186afce516c4d4eb64103c540edd53a890d3.tar.gz
use new fragment nav method from slide()
Diffstat (limited to 'js/reveal.js')
-rw-r--r--js/reveal.js13
1 files changed, 2 insertions, 11 deletions
diff --git a/js/reveal.js b/js/reveal.js
index ed41ce5..dae1c8d 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -1560,16 +1560,7 @@ var Reveal = (function(){
// Show fragment, if specified
if( typeof f !== 'undefined' ) {
- var fragments = sortFragments( currentSlide.querySelectorAll( '.fragment' ) );
-
- toArray( fragments ).forEach( function( fragment, indexf ) {
- if( indexf < f ) {
- fragment.classList.add( 'visible' );
- }
- else {
- fragment.classList.remove( 'visible' );
- }
- } );
+ navigateFragment( f );
}
// Dispatch an event if the slide changed
@@ -2335,7 +2326,7 @@ var Reveal = (function(){
}
if( offset > 0 && fragmentsShown.length ) {
- console.log('hidden');
+ console.log('shown');
dispatchEvent( 'fragmentshown', { fragment: fragmentsShown[0], fragments: fragmentsShown } );
}