mirror of
https://github.com/liyunze-coding/RythonDev.git
synced 2026-09-22 15:53:57 +00:00
fixed muted in projects
This commit is contained in:
parent
5095a79758
commit
bcceb6c99b
2 changed files with 6 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
|||
<script lang="ts">
|
||||
import { onMount } from "svelte";
|
||||
// import Socials from "../elements/Socials.svelte";
|
||||
import Socials from "../elements/Socials.svelte";
|
||||
|
||||
// Roles
|
||||
let roles = $state(["Developer", "Streamer", "Content creator", "Student"]);
|
||||
|
|
@ -159,7 +159,7 @@
|
|||
<b>data science</b>.
|
||||
</p>
|
||||
<div class="mt-5 flex flex-row items-center justify-center">
|
||||
<!-- <Socials /> -->
|
||||
<Socials />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -24,10 +24,13 @@
|
|||
video.addEventListener("mouseenter", () => {
|
||||
if (userInteracted) {
|
||||
video.volume = 0.2;
|
||||
video.muted = false;
|
||||
video.play();
|
||||
} else {
|
||||
video.volume = 0;
|
||||
video.muted = true;
|
||||
video.play();
|
||||
}
|
||||
video.play();
|
||||
});
|
||||
|
||||
video.addEventListener("mouseleave", () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue