diff options
author | Alex Batista <alexbatista.asb@gmail.com> | 2015-09-29 21:07:02 -0300 |
---|---|---|
committer | Alex Batista <alexbatista.asb@gmail.com> | 2015-09-29 21:07:02 -0300 |
commit | c1cb328e19c5bc95d26db0caa21e9ab16561dacc (patch) | |
tree | 38d0744c037c967052f8fb88fb2ed7ed5ef4eb82 /js | |
parent | e258db0994a435075b0c94b757abb40adf90aa18 (diff) | |
download | fosdem-2018-presentation-c1cb328e19c5bc95d26db0caa21e9ab16561dacc.tar fosdem-2018-presentation-c1cb328e19c5bc95d26db0caa21e9ab16561dacc.tar.gz |
UPDATED - Improvement on spaces and indentation
Diffstat (limited to 'js')
-rw-r--r-- | js/reveal.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/js/reveal.js b/js/reveal.js index 3758a41..9d4b344 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -2469,10 +2469,11 @@ if( currentBackground ) { - // Start video playback - var currentVideo = currentBackground.querySelector( 'video' ); - if( currentVideo ) { - if(currentVideo.readyState >1){ + // Start video playback + var currentVideo = currentBackground.querySelector( 'video' ); + if( currentVideo ) { + + if(currentVideo.readyState >1){ currentVideo.currentTime = 0; currentVideo.play(); } @@ -2483,6 +2484,7 @@ currentVideo.removeEventListener("loadeddata",function(){return false}); }); } + } // Don't transition between identical backgrounds. This |