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>
|
</script>
|
||||||
|
|
||||||
<main>
|
<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">
|
<div id="player">
|
||||||
<h2 title={videoUrl}>Video</h2>
|
<h2 title={videoUrl}>Video</h2>
|
||||||
|
@ -113,4 +118,9 @@
|
||||||
#audioPlayer {
|
#audioPlayer {
|
||||||
height: 128px;
|
height: 128px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.disabled {
|
||||||
|
color: gray;
|
||||||
|
cursor: not-allowed;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in a new issue