Add fullscreen and keep-awake to participant view
CI / Deploy / test (push) Successful in 57s
CI / Deploy / deploy (push) Skipped

Wake lock is on by default and restored after slide reloads; fullscreen
is a manual toggle. Buttons stay hidden where the APIs are unsupported.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Sonnet 5.5 committed 2026-11-11 22:40:49 +01:00
1 parent 5b3fccde67
commit 1c6b507840
4 files changed
+94

No files matched your search

+8
View File
@@ -40,6 +40,14 @@ $countdown = function (?int $remaining): string {
<p class="eyebrow eyebrow--poll center"><?= h($poll->title) ?></p>
<?php // Both buttons stay hidden unless the browser supports the API (no fullscreen on iPhone Safari). ?>
<div class="screen-tools center" role="group" aria-label="<?= h(__('Anzeige')) ?>">
<button type="button" class="button button--small" data-fullscreen-toggle hidden aria-pressed="false"
data-label-on="<?= h(__('Vollbild beenden')) ?>" data-label-off="<?= h(__('Vollbild')) ?>"><?= __('Vollbild') ?></button>
<button type="button" class="button button--small" data-wakelock-toggle hidden aria-pressed="false"
data-label-on="<?= h(__('Display bleibt an')) ?>" data-label-off="<?= h(__('Display anlassen')) ?>"><?= __('Display bleibt an') ?></button>
</div>
<?php if (!$poll->is_active) : ?>
<section class="card center">
<h1><?= __('Diese Umfrage ist geschlossen.') ?></h1>