disable start button unless loaded
This commit is contained in:
		
							parent
							
								
									f5ded75323
								
							
						
					
					
						commit
						e49bbeca49
					
				
					 1 changed files with 11 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -73,7 +73,12 @@
 | 
			
		|||
</script>
 | 
			
		||||
 | 
			
		||||
<main>
 | 
			
		||||
  <a class="link" href="javascript:;" on:click={go}>START</a>
 | 
			
		||||
  <a
 | 
			
		||||
    class="link"
 | 
			
		||||
    class:disabled={!videoReady || !audioReady}
 | 
			
		||||
    href="javascript:;"
 | 
			
		||||
    on:click={go}>START</a
 | 
			
		||||
  >
 | 
			
		||||
 | 
			
		||||
  <div id="player">
 | 
			
		||||
    <h2 title={videoUrl}>Video</h2>
 | 
			
		||||
| 
						 | 
				
			
			@ -113,4 +118,9 @@
 | 
			
		|||
  #audioPlayer {
 | 
			
		||||
    height: 128px;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  .disabled {
 | 
			
		||||
    color: gray;
 | 
			
		||||
    cursor: not-allowed;
 | 
			
		||||
  }
 | 
			
		||||
</style>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue