Don't count slides with class .uncounted
This commit is contained in:
parent
33bed47dac
commit
773b5115a5
1 changed files with 12 additions and 7 deletions
13
js/reveal.js
13
js/reveal.js
|
@ -4206,7 +4206,10 @@
|
||||||
if( verticalSlides[j].classList.contains( 'present' ) ) {
|
if( verticalSlides[j].classList.contains( 'present' ) ) {
|
||||||
break mainLoop;
|
break mainLoop;
|
||||||
}
|
}
|
||||||
|
// don't count slides with the "uncounted" class attribute
|
||||||
|
if( verticalSlides[j].classList.contains( 'uncounted' ) ){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
pastCount++;
|
pastCount++;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -4216,8 +4219,10 @@
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Don't count the wrapping section for vertical slides
|
// Don't count the wrapping section for vertical slides and slides marked as
|
||||||
if( horizontalSlide.classList.contains( 'stack' ) === false ) {
|
// uncounted
|
||||||
|
if( horizontalSlide.classList.contains( 'stack' ) === false &&
|
||||||
|
horizontalSlide.classList.contains( 'uncounted' ) === false ) {
|
||||||
pastCount++;
|
pastCount++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4429,7 +4434,7 @@
|
||||||
*/
|
*/
|
||||||
function getSlides() {
|
function getSlides() {
|
||||||
|
|
||||||
return toArray( dom.wrapper.querySelectorAll( SLIDES_SELECTOR + ':not(.stack)' ));
|
return toArray( dom.wrapper.querySelectorAll( SLIDES_SELECTOR + ':not(.stack):not(.uncounted)' ));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue