diff --git a/backend/static/index.html b/backend/static/index.html index 59f9fbe..a8f31e4 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -93,9 +93,9 @@ - - - + + +
@@ -562,7 +562,7 @@ - + diff --git a/backend/static/js/app.js b/backend/static/js/app.js index f9c8a41..52903c9 100644 --- a/backend/static/js/app.js +++ b/backend/static/js/app.js @@ -3,7 +3,7 @@ Router, State-Management, Navigation, Initialisierung. ============================================================ */ -const APP_VER = '655'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '656'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const APP_VERSION = '1.3.0'; // ← semantische Version, wird bei make release gesetzt const IS_STAGING = location.hostname === 'staging.banyaro.app'; diff --git a/backend/static/js/pages/routes.js b/backend/static/js/pages/routes.js index bac1664..deb71ae 100644 --- a/backend/static/js/pages/routes.js +++ b/backend/static/js/pages/routes.js @@ -695,6 +695,21 @@ window.Page_routes = (() => { _recActive = true; _recTrack = []; _recDistKm = 0; _recStartTime = Date.now(); + // iOS-Hinweis: Display muss wach bleiben + if (/iPad|iPhone|iPod/.test(navigator.userAgent)) { + const banner = document.createElement('div'); + banner.style.cssText = 'position:absolute;top:0;left:0;right:0;z-index:960;' + + 'background:rgba(30,30,30,0.92);color:#fff;font-size:13px;line-height:1.4;' + + 'padding:10px 14px;display:flex;align-items:flex-start;gap:10px;' + + 'border-bottom:1px solid rgba(255,255,255,0.1)'; + banner.innerHTML = ` + + Display wach lassen! Auf iPhone stoppt die GPS-Aufzeichnung, wenn das Display ausgeht — Helligkeit hochsetzen oder Bildschirm nicht sperren.`; + document.getElementById('rk-rec-map-wrap')?.appendChild(banner); + setTimeout(() => banner.remove(), 9000); + } + const ctrl = document.getElementById('rk-rec-ctrl'); ctrl.innerHTML = `