Files
LarsandClaude Opus 5.5 cc47cac93e 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>
2026-10-30 11:30:42 +01:00

16 lines
1.3 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{{--
Silent video loop in place of a photo (hero). Variables: $video (App\Models\Video), $class (sizes the <video>),
$wrapperClass and $buttonClass (optional: sizes the wrapper, positions the pause button). theme.js loads and
plays it; with "reduce motion", Save-Data or without JavaScript only the poster is shown – nothing is downloaded.
--}}
<div class="relative {{ $wrapperClass ?? '' }}" data-video-loop>
<video class="{{ $class ?? '' }}" muted loop playsinline disablepictureinpicture preload="none"
poster="{{ $video->posterUrl() }}" data-src="{{ $video->url() }}" data-type="{{ $video->mimeType() }}" data-playback-rate="{{ $video->playbackRate() }}"
aria-label="Video: {{ $video->title }}"></video>
<button type="button" data-video-toggle hidden aria-pressed="false" aria-label="Video anhalten" title="Video anhalten"
class="{{ $buttonClass ?? 'absolute right-4 bottom-4' }} inline-flex size-12 items-center justify-center rounded-full bg-ink/70 text-ground backdrop-blur-sm hover:bg-ink focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ground">
<x-heroicon-s-pause class="size-5" data-icon-pause aria-hidden="true" />
<x-heroicon-s-play class="hidden size-5" data-icon-play aria-hidden="true" />
</button>
</div>