📖 Visual storytelling

Vandaag rij je door…
Selecteer een trip om het verhaal te laden.
🗓️ Trip-highlights

🏕️ Campings + omgeving (bij aankomst)

✉️ Stuur dit reisverhaal naar jezelf

🚐 Klaar om deze reis te maken?

Bekijk welke Hellow Happy Camper beschikbaar is voor jouw reis.

🔎 Zoek beschikbare camper

🚐 Mijn camperreis

Route

    ${routeRows}

${storyTitle || 'Reisverhaal'}

${storyText || ''}

🏕️ Campings + omgeving

${campings || '

Geen campings geselecteerd.

'}

Gemaakt met Hellow Happy Camper Route Storytelling.

`; const blob = new Blob([html], { type: 'text/html;charset=utf-8' }); const url = URL.createObjectURL(blob); const a = document.createElement('a'); a.href = url; a.download = 'hellow-happy-camper-reisplan.html'; document.body.appendChild(a); a.click(); a.remove(); setTimeout(() => URL.revokeObjectURL(url), 1000); setStatus('✅ Reisplan gedownload', 'green'); } catch (e) { console.error('HHC download fout:', e); setStatus('❌ Downloaden mislukt', 'red'); } }); let mailBusy = false; root.querySelector('[data-action="mail"]').addEventListener('click', function () { if (mailBusy) return; const email = (emailInput.value || '').trim(); if (!email) { setStatus('❌ Vul een e-mailadres in', 'red'); return; } mailBusy = true; setStatus('⏳ Mail versturen...', MAIN); post('hhc_rs_mail', { email: email, route: JSON.stringify(DATA), context: JSON.stringify(CONTEXT) }) .then(res => { if (res.success) setStatus('✅ Mail verzonden', 'green'); else { const msg = res.data && res.data.msg; setStatus(msg === 'already_sent' ? '⚠️ Net al verzonden (probeer later opnieuw)' : '❌ Mailen mislukt', 'red'); } }) .catch(() => setStatus('❌ Netwerkfout', 'red')) .finally(() => { mailBusy = false; }); }); // Start buildTripButtons(); const firstValidIndex = DATA.findIndex((p, i) => i < DATA.length - 1 && isValidPoint(p) && isValidPoint(DATA[i + 1])); if (firstValidIndex >= 0) { initMap(); showTrip(firstValidIndex); } else console.warn('HHC Storytelling: geen geldige lat/lon-combinaties bij init'); }); // Losse shortcode instances buiten storytelling document.addEventListener('DOMContentLoaded', function(){ document.querySelectorAll('.hhc-campchoice').forEach(initCampingChoice); }); })();