diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-10 13:03:07 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-10 13:03:07 +0100 |
| commit | 8ec2352c22780202fcd39982f1c3e65d2dae0cc1 (patch) | |
| tree | be44dfe4b18fe58c6b3b998be5c7c0cdcff46648 /static/index.html | |
| parent | 7a9d73a2021d0d14be556531adee83531aaa6c15 (diff) | |
| download | deck-it-8ec2352c22780202fcd39982f1c3e65d2dae0cc1.tar.gz deck-it-8ec2352c22780202fcd39982f1c3e65d2dae0cc1.zip | |
feat: "The PC is asleep" overlay, and the tablet may sleep too
A sleeping PC answers no poll, and the wake lock kept the tablet's screen
on over a frozen dashboard all night. After 15 s without any answer the
page shows an overlay and releases the lock; the first answer hides it
and takes the lock again. Checked on the tablet by stopping the server
for 21 s: no screen wake lock while stopped, Chrome's taken again 5 s
after it resumed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'static/index.html')
| -rw-r--r-- | static/index.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/static/index.html b/static/index.html index b45904c..d199a35 100644 --- a/static/index.html +++ b/static/index.html @@ -40,6 +40,11 @@ <button id="reload" class="reload" aria-label="Reload the dashboard" title="Reload">⟳</button> </header> <div id="tab-body"></div> +<div id="asleep" hidden> + <div class="asleep-moon nf"></div> + <div class="off-title">The PC is asleep</div> + <div class="off-detail">The dashboard comes back when it wakes. Until then the tablet can sleep too.</div> +</div> <script src="vendor/gridstack/gridstack-all.js"></script> <script type="module" src="app.js"></script> </body> |
