feat: kort natkikkert-klip af rotte på bjælke under Sjove detaljer

This commit is contained in:
Michael Laursen
2026-10-28 11:02:41 +01:00
parent 2abd645e0b
commit 4b6cd2fac1
6 changed files with 41 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
// Videoklippet kører kun af sig selv, hvis brugeren ikke har bedt om mindre bevægelse.
(function () {
var video = document.querySelector('.klip-video');
if (!video) { return; }
if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
video.removeAttribute('autoplay');
video.pause();
video.controls = true;
}
})();