diff options
Diffstat (limited to 'js/reveal.js')
-rw-r--r-- | js/reveal.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/js/reveal.js b/js/reveal.js index c56ee2b..a0b88ce 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -2050,6 +2050,17 @@ var Reveal = (function(){ return config; }, + // Returns an index (1-based) of the current fragment + getCurrentFragmentIndex : function() { + if( currentSlide ) { + var visibleFragments = currentSlide.querySelectorAll( '.fragment.visible' ); + + if( visibleFragments.length ) { + return visibleFragments.length; + } + } + }, + // Helper method, retrieves query string as a key/value hash getQueryHash: function() { var query = {}; |