diff options
| author | William Hergès <william@herges.fr> | 2025-08-10 13:57:40 +0200 |
|---|---|---|
| committer | William Hergès <william@herges.fr> | 2025-08-10 13:57:40 +0200 |
| commit | d493aceb2c4332b19c1dbcc15535aa8dd483beec (patch) | |
| tree | 11e4d31ce57cc67bde39d8f41270434c2e7b8172 /src/component | |
| parent | 69f6e7c9f128e4887530b98c6aafbe14acf2b016 (diff) | |
feat(producteur): better responsiveness
Diffstat (limited to 'src/component')
| -rw-r--r-- | src/component/MosaicBackground.astro | 4 | ||||
| -rw-r--r-- | src/component/VideoAuto.astro | 6 |
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> |
