UPDATED - Improvement on spaces and indentation
This commit is contained in:
		
							
								
								
									
										10
									
								
								js/reveal.js
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								js/reveal.js
									
									
									
									
									
								
							@@ -2469,10 +2469,11 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
		if( currentBackground ) {
 | 
							if( currentBackground ) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      // Start video playback
 | 
								// Start video playback
 | 
				
			||||||
      var currentVideo = currentBackground.querySelector( 'video' );
 | 
								var currentVideo = currentBackground.querySelector( 'video' );
 | 
				
			||||||
      if( currentVideo ) {
 | 
								if( currentVideo ) {
 | 
				
			||||||
        if(currentVideo.readyState >1){
 | 
					
 | 
				
			||||||
 | 
									if(currentVideo.readyState >1){
 | 
				
			||||||
					currentVideo.currentTime = 0;
 | 
										currentVideo.currentTime = 0;
 | 
				
			||||||
					currentVideo.play();
 | 
										currentVideo.play();
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
@@ -2483,6 +2484,7 @@
 | 
				
			|||||||
					 currentVideo.removeEventListener("loadeddata",function(){return false});
 | 
										 currentVideo.removeEventListener("loadeddata",function(){return false});
 | 
				
			||||||
					});
 | 
										});
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
 | 
									
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			// Don't transition between identical backgrounds. This
 | 
								// Don't transition between identical backgrounds. This
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user