Routenvorschlaege: Schwierigkeit aus Distanz+Hoehenmetern + Yaro-Navi mit echtem Gebell

Schwierigkeit (Wunsch Rene): ORS elevation=true -> ascent; leicht <4km & <50hm,
mittel <=7km & <150hm, sonst anspruchsvoll (vorher NUR km — flache 6km galten
als 'anspruchsvoll'). ACHTUNG: elevation=true codiert die Polyline 3D —
eigener _decode_polyline3d (Roundtrip-getestet), Track enthaelt jetzt alt;
Hoehenmeter im Vorschlag als Pill ('X hm') + in der API (hoehenmeter).

Navi-Sounds: echtes Schaeferhund-Gebell (Renes Aufnahme zugeschnitten):
/sounds/wuff.mp3 (0,34s Einzel-Beller, 2x=links 1x=rechts) +
/sounds/klaeffen.mp3 (2,8s Sequenz, falscher Weg — spielt 1x statt 4x);
mono, loudnorm -14 LUFS, Fades. /sounds-Mount (main.py), SW-Precache
(bellt auch im Funkloch). Synthese bleibt Fallback.
pytest 39 passed. Bump v1243
This commit is contained in:
rene 2026-06-06 19:51:20 +02:00
parent 0967623342
commit 2042a3f513
10 changed files with 65 additions and 24 deletions

View file

@ -86,14 +86,14 @@
<title>Ban Yaro</title>
<!-- Theme + theme-color Statusleiste vor CSS setzen -->
<script src="/js/boot-early.js?v=1242"></script>
<script src="/js/boot-early.js?v=1243"></script>
<!-- CSS: Reihenfolge ist wichtig — ?v= zwingt Browser zur Neuladung -->
<link rel="stylesheet" href="/css/design-system.css?v=1242">
<link rel="stylesheet" href="/css/layout.css?v=1242">
<link rel="stylesheet" href="/css/components.css?v=1242">
<link rel="stylesheet" href="/css/utilities.css?v=1242">
<link rel="stylesheet" href="/css/lists.css?v=1242">
<link rel="stylesheet" href="/css/design-system.css?v=1243">
<link rel="stylesheet" href="/css/layout.css?v=1243">
<link rel="stylesheet" href="/css/components.css?v=1243">
<link rel="stylesheet" href="/css/utilities.css?v=1243">
<link rel="stylesheet" href="/css/lists.css?v=1243">
</head>
<body>
@ -612,11 +612,11 @@
<div id="modal-container"></div>
<!-- JS: Reihenfolge ist wichtig — erst Basis, dann Features -->
<script src="/js/api.js?v=1242"></script>
<script src="/js/ui.js?v=1242"></script>
<script src="/js/app.js?v=1242"></script>
<script src="/js/worlds.js?v=1242"></script>
<script src="/js/offline-indicator.js?v=1242"></script>
<script src="/js/api.js?v=1243"></script>
<script src="/js/ui.js?v=1243"></script>
<script src="/js/app.js?v=1243"></script>
<script src="/js/worlds.js?v=1243"></script>
<script src="/js/offline-indicator.js?v=1243"></script>
<!-- Feature-Seiten werden lazy geladen -->
@ -626,7 +626,7 @@
<!-- Boot: Offline-Banner + SW-Registration (extrahiert für CSP) -->
<script src="/js/boot.js?v=1242"></script>
<script src="/js/boot.js?v=1243"></script>
</body>

View file

@ -3,7 +3,7 @@
Router, State-Management, Navigation, Initialisierung.
============================================================ */
const APP_VER = '1242'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
const APP_VER = '1243'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
const APP_VERSION = '1.6.0'; // ← semantische Version, wird bei make release gesetzt
window.APP_VER = APP_VER; // global verfügbar für andere Module (z.B. offline-indicator)
window.APP_VERSION = APP_VERSION;

View file

@ -102,13 +102,16 @@ window.Page_routes = (() => {
function _barks(n, pitch, gap) {
if (!enabled()) return;
const sample = files && (pitch > 1.3 ? files.klaeffen : files.wuff);
if (sample) { // echte Aufnahme: n-mal hintereinander
if (sample) { // echte Aufnahme (Schäferhund, /sounds/*.mp3)
// klaeffen.mp3 ist bereits eine ~2,8-s-Bell-SEQUENZ → nur 1× abspielen;
// wuff.mp3 ist ein einzelner Beller → n-mal mit Pause.
const reps = sample === files.klaeffen ? 1 : n;
let i = 0;
const play = () => {
if (i++ >= n) return;
if (i++ >= reps) return;
sample.currentTime = 0;
sample.play().catch(() => {});
setTimeout(play, gap * 1000 + 200);
setTimeout(play, gap * 1000 + 350);
};
play();
return;
@ -672,6 +675,9 @@ window.Page_routes = (() => {
<span style="${_pillStyle('rgba(107,114,128,0.10)','#9ca3af','rgba(107,114,128,0.30)')}">
${UI.icon('timer')} ${UI.escape(durStr)}
</span>
${result.hoehenmeter != null ? `<span style="${_pillStyle('rgba(107,114,128,0.10)','#9ca3af','rgba(107,114,128,0.30)')}">
${UI.icon('trend-up')} ${result.hoehenmeter} hm
</span>` : ''}
${diffLabel ? `<span style="${_pillStyle(
{leicht:'rgba(22,163,74,0.10)',mittel:'rgba(234,179,8,0.10)',anspruchsvoll:'rgba(220,38,38,0.10)'}[result.schwierigkeit]||'rgba(107,114,128,0.10)',
{leicht:'#4ade80',mittel:'#facc15',anspruchsvoll:'#f87171'}[result.schwierigkeit]||'#9ca3af',

View file

@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="color-scheme" content="light dark">
<script src="/js/landing-init.js?v=1242"></script>
<script src="/js/landing-init.js?v=1243"></script>
<title>Ban Yaro — Die Hunde-App für Deutschland, Österreich & Schweiz</title>
<meta name="description" content="Ban Yaro: Die kostenlose All-in-One Hunde-App für DACH. Tagebuch, Giftköder-Alarm, Training mit KI, Forum, Wurfbörse, Stammbaum, Inzucht-Check — DSGVO-konform, offline-fähig, ohne App Store.">
<meta name="keywords" content="Hunde App, Hunde Community, Wurfbörse, Züchter, Welpen kaufen, Stammbaum Hund, Inzuchtkoeffizient, Hundezucht, Impfpass Hund, Giftköder Alarm, Gassi Community, Hundetraining App, Hunde Forum, Hunde KI, Hundefilm Datenbank, Welpen Marktplatz">

Binary file not shown.

Binary file not shown.

View file

@ -4,7 +4,7 @@
============================================================ */
// ← EINZIGE Stelle für die Version — STATIC_ASSETS und CACHE_VERSION leiten sich ab
const VER = '1242';
const VER = '1243';
const CACHE_VERSION = `by-v${VER}`;
const CACHE_STATIC = `${CACHE_VERSION}-static`;
const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten
@ -32,6 +32,9 @@ const PRIORITY_PAGES = [
'/js/map-offline.js',
'/js/map-gl-markers.js',
'/js/map-gl-mini.js',
// Yaro-Navi-Sounds — müssen auch im Funkloch bellen (zusammen ~40 KB)
'/sounds/wuff.mp3',
'/sounds/klaeffen.mp3',
];
// index.html wird NICHT pre-gecacht (immer Network-First)