1
0
Fork 0

Don't count slides with class .uncounted

This commit is contained in:
lassepe 2019-12-03 17:37:35 -08:00
parent 33bed47dac
commit 773b5115a5
No known key found for this signature in database
GPG Key ID: A0ABCC6D9212D243
1 changed files with 12 additions and 7 deletions

View File

@ -4206,7 +4206,10 @@
if( verticalSlides[j].classList.contains( 'present' ) ) {
break mainLoop;
}
// don't count slides with the "uncounted" class attribute
if( verticalSlides[j].classList.contains( 'uncounted' ) ){
continue;
}
pastCount++;
}
@ -4216,8 +4219,10 @@
break;
}
// Don't count the wrapping section for vertical slides
if( horizontalSlide.classList.contains( 'stack' ) === false ) {
// Don't count the wrapping section for vertical slides and slides marked as
// uncounted
if( horizontalSlide.classList.contains( 'stack' ) === false &&
horizontalSlide.classList.contains( 'uncounted' ) === false ) {
pastCount++;
}
@ -4429,7 +4434,7 @@
*/
function getSlides() {
return toArray( dom.wrapper.querySelectorAll( SLIDES_SELECTOR + ':not(.stack)' ));
return toArray( dom.wrapper.querySelectorAll( SLIDES_SELECTOR + ':not(.stack):not(.uncounted)' ));
}