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
|
|
@ -2,10 +2,11 @@ window.Page_erste_hilfe = (() => {
|
|||
let _container = null;
|
||||
let _appState = null;
|
||||
|
||||
async function init(container, appState) {
|
||||
async function init(container, appState, params = {}) {
|
||||
_container = container;
|
||||
_appState = appState;
|
||||
_render();
|
||||
if (params.tab) _activateTab(params.tab);
|
||||
}
|
||||
|
||||
function refresh() {}
|
||||
|
|
|
|||
|
|
@ -68,18 +68,12 @@ window.Page_poison = (() => {
|
|||
</div>
|
||||
|
||||
<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
|
||||
</a>
|
||||
<a href="tel:+498919240" class="btn btn-secondary btn-sm" style="flex:1;text-align:center;text-decoration:none">
|
||||
${UI.icon('first-aid')} <strong>089 19240</strong> Tiergift München
|
||||
</a>
|
||||
<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>
|
||||
<button class="btn btn-secondary" id="poison-btn-erstehilfe" style="flex:1">
|
||||
${UI.icon('first-aid')} Erste Hilfe & Tiergift
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<p id="poison-info"
|
||||
|
|
@ -95,6 +89,8 @@ window.Page_poison = (() => {
|
|||
?.addEventListener('click', _locateUser);
|
||||
document.getElementById('poison-btn-report')
|
||||
?.addEventListener('click', _showReportForm);
|
||||
document.getElementById('poison-btn-erstehilfe')
|
||||
?.addEventListener('click', () => App.navigate('erste-hilfe', true, { tab: 'lebensgefahr' }));
|
||||
|
||||
await UI.loadLeaflet();
|
||||
_initMap();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue