Add fullscreen and keep-awake to participant view
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:
1 parent
5b3fccde67
commit
1c6b507840
4 files changed
+94
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user