Hauptadresse statt Zweitadresse, Abspielgeschwindigkeit je Video

- Weitere Adressen einer Website (z. B. www.stommer.info) leiten per 301 auf die
  Hauptadresse um; vorher blockierte der Browser Skripte, Schriften und Videos,
  die von der Hauptadresse kamen (kein Titelvideo, Ersatzschrift)
- Site::origin() nimmt verbindlich das Feld domain
- Videos: Abspielgeschwindigkeit 0,5x bis 1x, gilt im Titelbereich und Rundgang

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Opus 5.5 committed 2026-10-30 11:30:42 +01:00
1 parent b5ff837dcd
commit cc47cac93e
14 files changed
+113 -16

No files matched your search

+8
View File
@@ -71,6 +71,14 @@ document.querySelectorAll('[data-rotator]').forEach((rotator) => {
const reducedMotion = () => window.matchMedia('(prefers-reduced-motion: reduce)').matches;
// Playback speed set per video in the admin (data-playback-rate); also after the browser resets it on load.
document.querySelectorAll('video[data-playback-rate]').forEach((video) => {
const rate = Number(video.dataset.playbackRate) || 1;
const apply = () => { video.defaultPlaybackRate = rate; video.playbackRate = rate; };
apply();
video.addEventListener('loadedmetadata', apply);
});
// Silent video loops (partials/video-loop): loaded only with motion allowed and without Save-Data, playing while
// visible; the button pauses and resumes. Otherwise the poster stays and nothing is downloaded.
document.querySelectorAll('[data-video-loop]').forEach((box) => {