tools:ur-timer
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
| Beide Seiten, vorherige ÜberarbeitungVorherige Überarbeitung | |||
| tools:ur-timer [12/03/2026 15:46] – Eric Weber | tools:ur-timer [18/03/2026 19:44] (aktuell) – Eric Weber | ||
|---|---|---|---|
| Zeile 435: | Zeile 435: | ||
| .ut-fsbtn { | .ut-fsbtn { | ||
| - | margin-left: auto; | + | position: absolute; |
| - | flex-shrink: 0; | + | top: 10px; |
| - | width: | + | right: 10px; |
| - | height: | + | z-index: 100; |
| + | width: | ||
| + | height: | ||
| border-radius: | border-radius: | ||
| - | border: 1.5px solid rgba(0, | + | border: 1.5px solid rgba(0, |
| - | background: rgba(248,249,252,0.95); | + | background: rgba(255,255,255,0.92) !important; |
| - | color: #6b7280; | + | color: # |
| font-size: 17px; | font-size: 17px; | ||
| line-height: | line-height: | ||
| cursor: pointer; | cursor: pointer; | ||
| - | display: flex; | + | display: flex !important; |
| align-items: | align-items: | ||
| justify-content: | justify-content: | ||
| - | transition: | + | transition: |
| padding: 0; | padding: 0; | ||
| + | box-shadow: 0 1px 6px rgba(0, | ||
| } | } | ||
| .ut-fsbtn: | .ut-fsbtn: | ||
| - | background: #fff; | + | background: #fff !important; |
| - | color: #16a34a; | + | color: # |
| - | border-color: | + | border-color: |
| - | box-shadow: 0 2px 8px rgba(22, | + | } |
| + | .ut-fsbtn.ut-fs-on { | ||
| + | color: #dc2626 !important; | ||
| + | border-color: | ||
| + | background: #fee2e2 !important; | ||
| + | } | ||
| + | .ut-fsbtn.ut-fs-on: | ||
| + | background: #dc2626 !important; | ||
| + | color: #fff !important; | ||
| } | } | ||
| - | /* Vollbild-Modus: | + | /* Vollbild-Modus: |
| body.ut-fs-active { | body.ut-fs-active { | ||
| overflow: hidden !important; | overflow: hidden !important; | ||
| Zeile 465: | Zeile 476: | ||
| width: 100% !important; | width: 100% !important; | ||
| } | } | ||
| - | #ut-timer.ut-fs-float { | + | #ut-app.ut-fs-float { |
| position: fixed !important; | position: fixed !important; | ||
| top: 0 !important; | top: 0 !important; | ||
| Zeile 474: | Zeile 485: | ||
| z-index: 99999 !important; | z-index: 99999 !important; | ||
| background: #fff !important; | background: #fff !important; | ||
| - | display: flex !important; | + | overflow-y: auto !important; |
| - | flex-direction: column | + | overflow-x: hidden !important; |
| - | min-height: 0 !important; | + | |
| - | overflow: hidden !important; | + | |
| } | } | ||
| - | #ut-timer.ut-fs-float | + | /* Timer-Screen im Vollbild: volle Höhe */ |
| - | flex: 1 !important; | + | #ut-app.ut-fs-float |
| - | min-height: | + | height: |
| - | height: | + | height: |
| } | } | ||
| - | .ut-fsbtn.ut-fs-on { | + | /* Ergebnis-Screen im Vollbild: immer sichtbar über Timer */ |
| - | color: # | + | #ut-app.ut-fs-float # |
| - | border-color: # | + | position: fixed !important; |
| - | background: #fee2e2 | + | inset: 0 !important; |
| + | z-index: 100001 | ||
| + | } | ||
| + | /* Vollbild-Button im Vollbild: über allem */ | ||
| + | #ut-app.ut-fs-float .ut-fsbtn { | ||
| + | position: fixed !important; | ||
| + | top: 10px !important; | ||
| + | right: 10px !important; | ||
| + | z-index: 100002 | ||
| } | } | ||
| Zeile 739: | Zeile 756: | ||
| </ | </ | ||
| <div id=" | <div id=" | ||
| + | <!-- Vollbild-Button: | ||
| + | <button class=" | ||
| <!-- ══ SETUP ══ --> | <!-- ══ SETUP ══ --> | ||
| <div id=" | <div id=" | ||
| Zeile 796: | Zeile 815: | ||
| <div class=" | <div class=" | ||
| <span class=" | <span class=" | ||
| - | <button class=" | ||
| </ | </ | ||
| </ | </ | ||
| Zeile 1057: | Zeile 1075: | ||
| /* ── Reset ── */ | /* ── Reset ── */ | ||
| window.utReset=function(){ | window.utReset=function(){ | ||
| - | // Vollbild beenden falls aktiv | + | var app=document.getElementById(‘ut-app’); |
| - | var timer=el(‘ut-timer’); | + | if(app.classList.contains(‘ut-fs-float’)){ |
| - | if(timer.classList.contains(‘ut-fs-float’)){ | + | app.classList.remove(‘ut-fs-float’); |
| - | timer.classList.remove(‘ut-fs-float’); | + | |
| el(‘ut-fsbtn’).classList.remove(‘ut-fs-on’); | el(‘ut-fsbtn’).classList.remove(‘ut-fs-on’); | ||
| document.body.classList.remove(‘ut-fs-active’); | document.body.classList.remove(‘ut-fs-active’); | ||
| Zeile 1084: | Zeile 1101: | ||
| var _fsScrollY = 0; | var _fsScrollY = 0; | ||
| window.utToggleFS = function(){ | window.utToggleFS = function(){ | ||
| - | var timer = el(‘ut-timer’); | + | var app |
| - | var btn | + | var btn = el(‘ut-fsbtn’); |
| - | var isFS = timer.classList.contains(‘ut-fs-float’); | + | var isFS = app.classList.contains(‘ut-fs-float’); |
| if(!isFS){ | if(!isFS){ | ||
| - | // Vollbild AN | ||
| _fsScrollY = window.scrollY; | _fsScrollY = window.scrollY; | ||
| - | timer.classList.add(‘ut-fs-float’); | + | app.classList.add(‘ut-fs-float’); |
| btn.classList.add(‘ut-fs-on’); | btn.classList.add(‘ut-fs-on’); | ||
| document.body.classList.add(‘ut-fs-active’); | document.body.classList.add(‘ut-fs-active’); | ||
| Zeile 1098: | Zeile 1114: | ||
| btn.title = ‘Vollbild beenden’; | btn.title = ‘Vollbild beenden’; | ||
| } else { | } else { | ||
| - | // Vollbild AUS | + | app.classList.remove(‘ut-fs-float’); |
| - | timer.classList.remove(‘ut-fs-float’); | + | |
| btn.classList.remove(‘ut-fs-on’); | btn.classList.remove(‘ut-fs-on’); | ||
| document.body.classList.remove(‘ut-fs-active’); | document.body.classList.remove(‘ut-fs-active’); | ||
| Zeile 1111: | Zeile 1126: | ||
| }; | }; | ||
| - | // Escape-Taste und Orientierungswechsel | ||
| document.addEventListener(‘keydown’, | document.addEventListener(‘keydown’, | ||
| - | if(e.key === ‘Escape’ && | + | if(e.key === ‘Escape’ && |
| utToggleFS(); | utToggleFS(); | ||
| } | } | ||
| Zeile 1123: | Zeile 1137: | ||
| function resize(){ | function resize(){ | ||
| var app=document.getElementById(‘ut-app’); | var app=document.getElementById(‘ut-app’); | ||
| - | var isFS = el(‘ut-timer’) && | + | var isFS = document.getElementById(‘ut-app’) && |
| var w = isFS ? window.innerWidth | var w = isFS ? window.innerWidth | ||
| Zeile 1353: | Zeile 1367: | ||
| /* ── Reset ── */ | /* ── Reset ── */ | ||
| window.utReset=function(){ | window.utReset=function(){ | ||
| - | | + | var app=document.getElementById('ut-app'); |
| - | | + | if(app.classList.contains(' |
| - | if(timer.classList.contains(' | + | |
| - | | + | |
| el(' | el(' | ||
| document.body.classList.remove(' | document.body.classList.remove(' | ||
| Zeile 1380: | Zeile 1393: | ||
| var _fsScrollY = 0; | var _fsScrollY = 0; | ||
| window.utToggleFS = function(){ | window.utToggleFS = function(){ | ||
| - | var timer = el('ut-timer'); | + | var app |
| - | var btn | + | var btn = el(' |
| - | var isFS = timer.classList.contains(' | + | var isFS = app.classList.contains(' |
| if(!isFS){ | if(!isFS){ | ||
| - | // Vollbild AN | ||
| _fsScrollY = window.scrollY; | _fsScrollY = window.scrollY; | ||
| - | | + | |
| btn.classList.add(' | btn.classList.add(' | ||
| document.body.classList.add(' | document.body.classList.add(' | ||
| Zeile 1394: | Zeile 1406: | ||
| btn.title = ' | btn.title = ' | ||
| } else { | } else { | ||
| - | | + | |
| - | timer.classList.remove(' | + | |
| btn.classList.remove(' | btn.classList.remove(' | ||
| document.body.classList.remove(' | document.body.classList.remove(' | ||
| Zeile 1407: | Zeile 1418: | ||
| }; | }; | ||
| - | // Escape-Taste und Orientierungswechsel | ||
| document.addEventListener(' | document.addEventListener(' | ||
| - | if(e.key === ' | + | if(e.key === ' |
| utToggleFS(); | utToggleFS(); | ||
| } | } | ||
| Zeile 1419: | Zeile 1429: | ||
| function resize(){ | function resize(){ | ||
| var app=document.getElementById(' | var app=document.getElementById(' | ||
| - | var isFS = el('ut-timer') && | + | var isFS = document.getElementById('ut-app') && |
| var w = isFS ? window.innerWidth | var w = isFS ? window.innerWidth | ||
tools/ur-timer.1773326781.txt.gz · Zuletzt geändert: von Eric Weber
