aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAlex Batista <alexbatista.asb@gmail.com>2015-09-29 21:09:41 -0300
committerAlex Batista <alexbatista.asb@gmail.com>2015-09-29 21:09:41 -0300
commitec119e79a7708931267b41d672e6022861fceeb5 (patch)
treefbe47fa1fce67b5972143eec3e1e93c5354bd9e1 /js
parentc1cb328e19c5bc95d26db0caa21e9ab16561dacc (diff)
downloadfosdem-2018-presentation-ec119e79a7708931267b41d672e6022861fceeb5.tar
fosdem-2018-presentation-ec119e79a7708931267b41d672e6022861fceeb5.tar.gz
UPDATED - Improvement on spaces and indentation
Diffstat (limited to 'js')
-rw-r--r--js/reveal.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 9d4b344..421fa2c 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -2472,19 +2472,17 @@
// Start video playback
var currentVideo = currentBackground.querySelector( 'video' );
if( currentVideo ) {
-
- if(currentVideo.readyState >1){
+ if(currentVideo.readyState > 1){
currentVideo.currentTime = 0;
currentVideo.play();
}
else{
currentVideo.addEventListener("loadeddata", function() {
- currentVideo.currentTime = 0;
- currentVideo.play();
- currentVideo.removeEventListener("loadeddata",function(){return false});
+ currentVideo.currentTime = 0;
+ currentVideo.play();
+ currentVideo.removeEventListener("loadeddata",function(){return false});
});
}
-
}
// Don't transition between identical backgrounds. This