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/VideoAuto.astro | |
| parent | 69f6e7c9f128e4887530b98c6aafbe14acf2b016 (diff) | |
feat(producteur): better responsiveness
Diffstat (limited to 'src/component/VideoAuto.astro')
| -rw-r--r-- | src/component/VideoAuto.astro | 6 |
1 files changed, 3 insertions, 3 deletions
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> |
