(function (A) { function statusBlock() { if (A.pwa.isFileProtocol()) { return `
Let op: de app is nu geopend vanaf uw bestandssysteem (file://). Installeren als PWA werkt alleen via een webserver (bijv. http://localhost of een gedeploydde versie).
`; } if (A.pwa.isStandalone()) { return `
Geïnstalleerd. U gebruikt de app al in PWA-modus.
`; } if (!A.pwa.isSupported()) { return `
Deze browser ondersteunt PWA-installatie niet volledig. Probeer het in Chrome, Edge, Safari (iOS 16.4+) of een Chromium-gebaseerde browser.
`; } return `
Volg onderstaande stappen om de app op dit apparaat te installeren.
`; } function stepsForPlatform(platform) { if (platform === 'ios') { return `
  1. Tik onderin het scherm op het Delen-pictogram (vierkant met pijl omhoog).
  2. Scrol omlaag en tik op Zet op beginscherm.
  3. Bevestig met Voeg toe. Het Duimstok-icoon verschijnt tussen uw apps.
  4. Open de app vanaf het beginscherm voor volledige werking offline.

iOS ondersteunt geen automatische installatieknop. Installatie gebeurt altijd via het Delen-menu van Safari.

`; } if (platform === 'android') { return `
  1. Gebruik de knop App installeren hieronder, of
  2. Tik rechtsboven op \u22EE (menu) en kies App installeren / Toevoegen aan startscherm.
  3. Bevestig met Installeren.
`; } if (platform === 'desktop-chromium') { return `
  1. Gebruik de knop App installeren hieronder, of
  2. Klik op het installeerpictogram \u2B07 rechts in de adresbalk.
  3. Als alternatief: menu \u22EEAppsDeze site installeren.
`; } if (platform === 'firefox') { return `
  1. Firefox desktop ondersteunt PWA-installatie niet standaard.
  2. Maak een snelkoppeling op het bureaublad via BestandPagina opslaan als... of gebruik Firefox op Android, waar Toevoegen aan startscherm wel werkt.
`; } if (platform === 'desktop-safari') { return `
  1. Ga naar het menu ArchiefVoeg toe aan Dock (macOS Sonoma of nieuwer).
  2. De app verschijnt in het Dock en werkt offline.
`; } return `
  1. Uw browser is niet herkend. Zoek in het menu naar "Installeren" of "Toevoegen aan startscherm".
`; } function benefitsBlock() { return `

Voordelen van installatie

`; } function mainCTA() { if (A.pwa.isFileProtocol()) return ''; if (A.pwa.isStandalone()) return ''; return ``; } A.renderInstallScreen = function () { const body = document.getElementById('installBody'); const platform = A.pwa.getPlatform(); body.innerHTML = `
Duimstok app-icoon

Duimstok-inspecties als app

Installeer deze applicatie op uw telefoon, tablet of desktop voor offline gebruik in het veld.

${statusBlock()}

Installatie op uw apparaat

${stepsForPlatform(platform)} ${mainCTA()}
${benefitsBlock()} `; const cta = document.getElementById('installCta'); if (cta && !cta.disabled) { cta.addEventListener('click', async () => { cta.disabled = true; cta.textContent = 'Bezig...'; await A.pwa.promptInstall(); A.renderInstallScreen(); }); } }; A.openInstallScreen = function () { A.renderInstallScreen(); A.showScreen('screen-install'); }; document.addEventListener('pwa:install-available', () => { if (document.getElementById('screen-install').classList.contains('active')) { A.renderInstallScreen(); } }); document.addEventListener('pwa:installed', () => { if (document.getElementById('screen-install').classList.contains('active')) { A.renderInstallScreen(); } }); })(window.App.Application);