summaryrefslogtreecommitdiffhomepage
path: root/js/reveal.js
diff options
context:
space:
mode:
authorHakim El Hattab2013-04-11 09:17:12 -0400
committerHakim El Hattab2013-04-11 09:17:20 -0400
commit3999430b81125ce21e402849c54f4203efa80985 (patch)
tree7ef7fbefc69434a97906d9394ecdd18e110154c2 /js/reveal.js
parent25e0fbc050734dc21f9384aa0afd9a3c37c27816 (diff)
parent225662116982f13eb4e91d2c3d94a133c6d1b4ea (diff)
merge mutiplex fragment fix #395
Diffstat (limited to 'js/reveal.js')
-rw-r--r--js/reveal.js11
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 = {};