Update html/apps.ejs

This commit is contained in:
ashley 2025-08-20 00:44:08 +02:00
parent 62b43a92c6
commit f515e455b0

View File

@ -336,10 +336,7 @@
const reduce = matchMedia('(prefers-reduced-motion: reduce)').matches;
if(reduce){ v.pause(); v.removeAttribute('autoplay'); v.currentTime = 0; }
v.muted = true; v.playsInline = true; v.setAttribute('playsinline','');
const tryPlay = () => v.play().catch(()=>{/* ignore */});
document.addEventListener('visibilitychange', ()=>{ if(!document.hidden) tryPlay(); });
window.addEventListener('pointerdown', tryPlay, {once:true, passive:true});
tryPlay();
})();
// Keyboard focus order for cards