feat: kort natkikkert-klip af rotte på bjælke under Sjove detaljer
This commit is contained in:
@@ -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;
|
||||
}
|
||||
})();
|
||||
Reference in New Issue
Block a user