disable start button unless loaded

master
Tomáš Mládek 2022-07-04 12:17:14 +02:00
parent f5ded75323
commit e49bbeca49
1 changed files with 11 additions and 1 deletions

View File

@ -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>