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">
|
<script lang="ts">
|
||||||
import { onMount } from "svelte";
|
import { onMount } from "svelte";
|
||||||
// import Socials from "../elements/Socials.svelte";
|
import Socials from "../elements/Socials.svelte";
|
||||||
|
|
||||||
// Roles
|
// Roles
|
||||||
let roles = $state(["Developer", "Streamer", "Content creator", "Student"]);
|
let roles = $state(["Developer", "Streamer", "Content creator", "Student"]);
|
||||||
|
|
@ -159,7 +159,7 @@
|
||||||
<b>data science</b>.
|
<b>data science</b>.
|
||||||
</p>
|
</p>
|
||||||
<div class="mt-5 flex flex-row items-center justify-center">
|
<div class="mt-5 flex flex-row items-center justify-center">
|
||||||
<!-- <Socials /> -->
|
<Socials />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -24,10 +24,13 @@
|
||||||
video.addEventListener("mouseenter", () => {
|
video.addEventListener("mouseenter", () => {
|
||||||
if (userInteracted) {
|
if (userInteracted) {
|
||||||
video.volume = 0.2;
|
video.volume = 0.2;
|
||||||
} else {
|
video.muted = false;
|
||||||
video.muted = true;
|
|
||||||
}
|
|
||||||
video.play();
|
video.play();
|
||||||
|
} else {
|
||||||
|
video.volume = 0;
|
||||||
|
video.muted = true;
|
||||||
|
video.play();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
video.addEventListener("mouseleave", () => {
|
video.addEventListener("mouseleave", () => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue