aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2015-03-25 15:48:10 +0100
committerHakim El Hattab <hakim.elhattab@gmail.com>2015-03-25 15:48:14 +0100
commite19931ababbcbb416a3918f68b1f755a4bacaaff (patch)
tree359fcc005c3b0f0d760fd23e6611bdb75eab65e0 /js
parent70ab0ae80b37c077d3ba799b74bca613d049868c (diff)
downloadfreenode-live-2017-presentation-e19931ababbcbb416a3918f68b1f755a4bacaaff.tar
freenode-live-2017-presentation-e19931ababbcbb416a3918f68b1f755a4bacaaff.tar.gz
fix #1170
Diffstat (limited to 'js')
-rw-r--r--js/reveal.js17
1 files changed, 10 insertions, 7 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 8162a17..d9ba333 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -3501,14 +3501,17 @@
// If there are media elements with data-autoplay,
// automatically set the autoSlide duration to the
- // length of that media
- toArray( currentSlide.querySelectorAll( 'video, audio' ) ).forEach( function( el ) {
- if( el.hasAttribute( 'data-autoplay' ) ) {
- if( autoSlide && el.duration * 1000 > autoSlide ) {
- autoSlide = ( el.duration * 1000 ) + 1000;
+ // length of that media. Not applicable if the slide
+ // is divided up into fragments.
+ if( currentSlide.querySelectorAll( '.fragment' ).length === 0 ) {
+ toArray( currentSlide.querySelectorAll( 'video, audio' ) ).forEach( function( el ) {
+ if( el.hasAttribute( 'data-autoplay' ) ) {
+ if( autoSlide && el.duration * 1000 > autoSlide ) {
+ autoSlide = ( el.duration * 1000 ) + 1000;
+ }
}
- }
- } );
+ } );
+ }
// Cue the next auto-slide if:
// - There is an autoSlide value