Giftköder: Tiergift-Nummern raus, Erste-Hilfe-Button direkt zu Vergiftung
poison.js: nur noch Polizei 110 + Button → Erste Hilfe (Tab lebensgefahr) erste-hilfe.js: init() akzeptiert params.tab zum direkten Tab-Sprung SW by-v414, APP_VER 393
This commit is contained in:
parent
5ca522780b
commit
f6586c88ee
4 changed files with 10 additions and 13 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
Router, State-Management, Navigation, Initialisierung.
|
Router, State-Management, Navigation, Initialisierung.
|
||||||
============================================================ */
|
============================================================ */
|
||||||
|
|
||||||
const APP_VER = '392'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
const APP_VER = '393'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
||||||
|
|
||||||
const App = (() => {
|
const App = (() => {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,11 @@ window.Page_erste_hilfe = (() => {
|
||||||
let _container = null;
|
let _container = null;
|
||||||
let _appState = null;
|
let _appState = null;
|
||||||
|
|
||||||
async function init(container, appState) {
|
async function init(container, appState, params = {}) {
|
||||||
_container = container;
|
_container = container;
|
||||||
_appState = appState;
|
_appState = appState;
|
||||||
_render();
|
_render();
|
||||||
|
if (params.tab) _activateTab(params.tab);
|
||||||
}
|
}
|
||||||
|
|
||||||
function refresh() {}
|
function refresh() {}
|
||||||
|
|
|
||||||
|
|
@ -68,18 +68,12 @@ window.Page_poison = (() => {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="display:flex;gap:var(--space-2);flex-wrap:wrap;margin-bottom:var(--space-3)">
|
<div style="display:flex;gap:var(--space-2);flex-wrap:wrap;margin-bottom:var(--space-3)">
|
||||||
<a href="tel:110" class="btn btn-secondary btn-sm" style="flex:1;text-align:center;text-decoration:none">
|
<a href="tel:110" class="btn btn-secondary" style="flex:1;text-align:center;text-decoration:none">
|
||||||
${UI.icon('phone')} <strong>110</strong> Polizei
|
${UI.icon('phone')} <strong>110</strong> Polizei
|
||||||
</a>
|
</a>
|
||||||
<a href="tel:+498919240" class="btn btn-secondary btn-sm" style="flex:1;text-align:center;text-decoration:none">
|
<button class="btn btn-secondary" id="poison-btn-erstehilfe" style="flex:1">
|
||||||
${UI.icon('first-aid')} <strong>089 19240</strong> Tiergift München
|
${UI.icon('first-aid')} Erste Hilfe & Tiergift
|
||||||
</a>
|
</button>
|
||||||
<a href="tel:+493019240" class="btn btn-secondary btn-sm" style="flex:1;text-align:center;text-decoration:none">
|
|
||||||
${UI.icon('first-aid')} <strong>030 19240</strong> Tiergift Berlin
|
|
||||||
</a>
|
|
||||||
<a href="tel:+4314064343" class="btn btn-secondary btn-sm" style="flex:1;text-align:center;text-decoration:none">
|
|
||||||
${UI.icon('first-aid')} <strong>01 4064343</strong> Tiergift Wien
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p id="poison-info"
|
<p id="poison-info"
|
||||||
|
|
@ -95,6 +89,8 @@ window.Page_poison = (() => {
|
||||||
?.addEventListener('click', _locateUser);
|
?.addEventListener('click', _locateUser);
|
||||||
document.getElementById('poison-btn-report')
|
document.getElementById('poison-btn-report')
|
||||||
?.addEventListener('click', _showReportForm);
|
?.addEventListener('click', _showReportForm);
|
||||||
|
document.getElementById('poison-btn-erstehilfe')
|
||||||
|
?.addEventListener('click', () => App.navigate('erste-hilfe', true, { tab: 'lebensgefahr' }));
|
||||||
|
|
||||||
await UI.loadLeaflet();
|
await UI.loadLeaflet();
|
||||||
_initMap();
|
_initMap();
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
Offline-Cache + Push Notifications + Tile-Cache
|
Offline-Cache + Push Notifications + Tile-Cache
|
||||||
============================================================ */
|
============================================================ */
|
||||||
|
|
||||||
const CACHE_VERSION = 'by-v413';
|
const CACHE_VERSION = 'by-v414';
|
||||||
const CACHE_STATIC = `${CACHE_VERSION}-static`;
|
const CACHE_STATIC = `${CACHE_VERSION}-static`;
|
||||||
const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten
|
const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue