|
@@ -1445,13 +1445,14 @@ var Reveal = (function(){
|
|
* index will be for this slide rather than the currently
|
|
* index will be for this slide rather than the currently
|
|
* active one
|
|
* active one
|
|
*
|
|
*
|
|
- * @return {Object} { h: <int>, v: <int> }
|
|
+ * @return {Object} { h: <int>, v: <int>, f: <int> }
|
|
*/
|
|
*/
|
|
function getIndices( slide ) {
|
|
function getIndices( slide ) {
|
|
|
|
|
|
|
|
|
|
var h = indexh,
|
|
var h = indexh,
|
|
- v = indexv;
|
|
+ v = indexv,
|
|
|
|
+ f;
|
|
|
|
|
|
|
|
|
|
if( slide ) {
|
|
if( slide ) {
|
|
@@ -1470,7 +1471,14 @@ var Reveal = (function(){
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- return { h: h, v: v };
|
|
+ if( !slide && currentSlide ) {
|
|
|
|
+ var visibleFragments = currentSlide.querySelectorAll( '.fragment.visible' );
|
|
|
|
+ if( visibleFragments.length ) {
|
|
|
|
+ f = visibleFragments.length;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ return { h: h, v: v, f: f };
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@@ -2050,17 +2058,6 @@ var Reveal = (function(){
|
|
return config;
|
|
return config;
|
|
},
|
|
},
|
|
|
|
|
|
-
|
|
|
|
- getCurrentFragmentIndex : function() {
|
|
|
|
- if( currentSlide ) {
|
|
|
|
- var visibleFragments = currentSlide.querySelectorAll( '.fragment.visible' );
|
|
|
|
-
|
|
|
|
- if( visibleFragments.length ) {
|
|
|
|
- return visibleFragments.length;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
|
|
|
|
getQueryHash: function() {
|
|
getQueryHash: function() {
|
|
var query = {};
|
|
var query = {};
|