play all videos button

This commit is contained in:
Jill 2022-11-20 15:34:30 +03:00
parent 3c89f42592
commit d6d5db9a82
3 changed files with 4 additions and 5 deletions

View File

@ -1 +1 @@
export const csr = false;
//export const csr = false;

View File

@ -116,4 +116,6 @@
</div>
{/each}
</div>
<br><br>
<button on:click={() => {document.querySelectorAll('video').forEach(v => {v.play(); v.loop = true; v.volume = Math.random() * v.volume})}} class="center">Play every video at the same time</button>
</main>

View File

@ -47,6 +47,7 @@ main {
align-items: flex-start;
gap: 2em;
padding-top: 3em;
margin-bottom: 6em;
}
.center {
align-self: center;
@ -135,7 +136,3 @@ blockquote {
padding-left: 8px;
border-left: 1.5px solid #aaa;
}
footer {
margin-bottom: 6em;
}