aboutsummaryrefslogtreecommitdiff
path: root/src/component
diff options
context:
space:
mode:
Diffstat (limited to 'src/component')
-rw-r--r--src/component/MosaicBackground.astro4
-rw-r--r--src/component/VideoAuto.astro6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/component/MosaicBackground.astro b/src/component/MosaicBackground.astro
index 8c38bcf..4d110d2 100644
--- a/src/component/MosaicBackground.astro
+++ b/src/component/MosaicBackground.astro
@@ -30,7 +30,7 @@ const { height = "400" } = Astro.props;
line.appendChild(current.cloneNode(true));
currentWidth += ratio * height;
} else {
- console.error("is NaN", current)
+ console.error("is NaN", current);
}
}
}
@@ -45,5 +45,5 @@ const { height = "400" } = Astro.props;
}
e.replaceChildren(...newChildren);
});
- })
+ });
</script>
diff --git a/src/component/VideoAuto.astro b/src/component/VideoAuto.astro
index 38282f6..ddfe1c8 100644
--- a/src/component/VideoAuto.astro
+++ b/src/component/VideoAuto.astro
@@ -7,10 +7,10 @@ const { src } = Astro.props;
</video>
<script>
- window.addEventListener('load', () => {
- document.querySelectorAll('video').forEach(video => {
+ window.addEventListener("load", () => {
+ document.querySelectorAll("video").forEach((video) => {
if (window.screen.width < 1000) return;
video.autoplay = true;
});
- })
+ });
</script>