site-mva-global-fret/js
Serge RAKOTO HARRY-NAIVO 239e2e503d chore(post-cutover): fix 3 polish bugs (welcome-back email + mobile lang switcher + animate-on-scroll)
Three small post-cutover fixes reported during E2E retest 2026-05-07:

1. js/form-handler.js: disable EmailJS welcome-back call in
   showAlreadyRegistered. The EmailJS account is Melissa-only
   (no Serge access) and its template still has a '(c) 2025' footer
   inconsistent with the Resend emails sent by the new Worker.
   The user already sees their existing reference number in the
   showAlreadyRegistered modal (= cosmetic email, not critical).
   To re-implement properly: route through Worker + Resend in a
   future PR.

2. 10 HTML pages: remove duplicate .lang-switcher block from
   .mobile-nav. The header already has a lang-switcher visible on
   mobile, the second one inside the slide-in mobile menu was redundant.

3. js/main.js: fix IntersectionObserver threshold for animate-on-scroll.
   Was threshold: 0.1 — never fires on mobile portrait for cgv.html
   and politique-confidentialite.html because those pages have
   data-lang-block elements 2000-3000px tall (verbose FR/EN/MG
   trilingual content) and viewport (~600px) never reaches 10%
   intersection ratio. Now threshold: 0 — fires as soon as any
   pixel enters viewport. mentions-legales.html unaffected because
   its blocks were short enough to satisfy the previous 10%.

Refs: WordPress \xe2\x86\x92 static migration, post-cutover polish.
2026-05-07 15:36:21 +02:00
..
confirmation.js feat(cloudflare): point HTML/JS to new Mind4Solutions Worker + Turnstile sitekey (#4) 2026-05-07 15:28:23 +03:00
form-handler.js chore(post-cutover): fix 3 polish bugs (welcome-back email + mobile lang switcher + animate-on-scroll) 2026-05-07 15:36:21 +02:00
intro-scene.js Intro: bouton 'Accéder au site' visible immédiatement, sans animation 2026-05-05 22:21:30 +02:00
main.js Translate CGV page to EN/MG + full i18n audit fixes 2026-05-04 17:39:55 +02:00
translations.js Add Mentions Légales & Politique de Confidentialité pages 2026-05-06 20:05:39 +02:00