creation site static coupe du monde 2026 sans Hugo
This commit is contained in:
@@ -0,0 +1,505 @@
|
||||
/* ---------------- i18n ---------------- */
|
||||
const DICT = {
|
||||
fr: {
|
||||
pricing: "stripe-pricing-table",
|
||||
nav_offer: "L'offre",
|
||||
nav_acad: "Académies",
|
||||
nav_how: "Comment ça marche",
|
||||
nav_faq: "FAQ",
|
||||
nav_cta: "S'abonner — 7,90€",
|
||||
bar: "Offre Coupe du Monde : les 2 académies à 7,90€ au lieu de 80€ — fin le 19 juillet.",
|
||||
bar_ends: "Se termine dans",
|
||||
hero_eyebrow: "Offre Coupe du Monde — édition limitée",
|
||||
hero_h1a: "Tout le monde a le droit",
|
||||
hero_h1b: "aux experts.",
|
||||
hero_h1full: "Tout le monde a le droit aux experts.",
|
||||
hero_sub:
|
||||
"Les académies vidéo de Dimitri Payet et Yannick Dyduch. Football & kiné du sport, par ceux qui le font au plus haut niveau.",
|
||||
cta1: "Je profite de l'offre — 7,90€",
|
||||
cta2: "Voir le programme",
|
||||
trust1: "Précode immédiat",
|
||||
trust2: "Paiement sécurisé Stripe",
|
||||
trust3: "Accès aux 2 académies",
|
||||
pass_label: "Pass Coupe du Monde",
|
||||
pass_old: "au lieu de 80€",
|
||||
pass_incl: "Accès illimité · 2 académies",
|
||||
pass_valid_lbl: "VALABLE",
|
||||
pass_expires: "EXPIRE DANS",
|
||||
pass_note: "Précode reçu dès le paiement",
|
||||
offer_eyebrow: "L'offre",
|
||||
offer_title: "7,90€ pour tout. Pendant la Coupe du Monde.",
|
||||
offer_sub:
|
||||
"Un seul tarif, les deux académies, accès illimité. Après le 1er octobre, chaque académie repasse à 40€.",
|
||||
oi1: "Les 2 académies, accès illimité",
|
||||
oi2: "Précode reçu immédiatement",
|
||||
oi3: "Tout se débloque le 1er octobre 2026",
|
||||
oi4: "Sous-titré dans ta langue",
|
||||
oi5: "Paiement 100% sécurisé (Stripe)",
|
||||
oi6: "Tu économises 72€",
|
||||
save_badge: "−72€ · économie de 90%",
|
||||
vs_after: "À partir du 1er octobre : 40€ / académie (80€ les deux)",
|
||||
vs_until: "Offre valable jusqu'au 19 juillet 2026",
|
||||
acad_eyebrow: "Les académies",
|
||||
acad_title: "Deux experts. Deux programmes. Un seul accès.",
|
||||
payet_name: "La Payet Academy",
|
||||
payet_role:
|
||||
"Dimitri Payet — footballeur pro, légende de l'OM (740+ matchs)",
|
||||
physio_name: "La PhysioSport Academy",
|
||||
physio_role:
|
||||
"Yannick Dyduch — kiné D.E. & ostéo D.O. (Juventus, Équipe nationale de Belgique, ex-OM)",
|
||||
program_label: "Au programme",
|
||||
unlock_note: "Vidéos déblocables le 1er octobre 2026",
|
||||
p1: "La Passe",
|
||||
p2: "Le Contrôle de balle",
|
||||
p3: "La Conduite de balle",
|
||||
p4: "La Frappe",
|
||||
p5: "Le Coup franc direct",
|
||||
p6: "Les Coups de pied arrêtés",
|
||||
f1: "Le Strapping",
|
||||
f2: "La Mobilisation",
|
||||
f3: "Le Massage du sportif",
|
||||
f4: "Les Blessures musculaires",
|
||||
f5: "Les Blessures articulaires",
|
||||
f6: "Les Blessures inflammatoires",
|
||||
ex_eyebrow: "Pourquoi eux",
|
||||
ex_title: "Ceux qui le font. Pas ceux qui en parlent.",
|
||||
ex_payet_tag: "Football · La Payet Academy",
|
||||
ex_payet_bio:
|
||||
"Plus de 740 matchs professionnels, légende de l'Olympique de Marseille. Dimitri Payet partage enfin ses gestes : frappe, coups francs, contrôle, vision de jeu.",
|
||||
ex_physio_tag: "Kiné du sport · La PhysioSport Academy",
|
||||
ex_physio_bio:
|
||||
"Kinésithérapeute et ostéopathe des plus grands clubs (Juventus, Équipe nationale de Belgique, ex-OM). Yannick Dyduch transmet la kiné du sport : strapping, massage, prévention, prise en charge des blessures.",
|
||||
how_eyebrow: "Comment ça marche",
|
||||
how_title: "De l'inscription au déblocage",
|
||||
s1t: "Tu t'abonnes",
|
||||
s1d: "7,90€, paiement sécurisé en quelques secondes.",
|
||||
s2t: "Tu reçois ton précode",
|
||||
s2d: "Confirmation immédiate par e-mail.",
|
||||
s3t: "La Coupe du Monde",
|
||||
s3d: "On chauffe la communauté jusqu'au coup d'envoi.",
|
||||
s4t: "1er octobre 2026",
|
||||
s4d: "Toutes les vidéos se débloquent. À toi de jouer.",
|
||||
acc_eyebrow: "Notre raison d'être",
|
||||
acc_sub:
|
||||
"Le savoir des pros ne devrait pas être réservé à ceux qui ont les moyens, le bon code postal ou la bonne langue.",
|
||||
acc1t: "Accessible financièrement",
|
||||
acc1d:
|
||||
"Des abonnements low-cost. Le savoir des pros, sans le prix des stages.",
|
||||
acc2t: "Accessible partout",
|
||||
acc2d: "Un site et une appli. Où que tu sois, les experts sont là.",
|
||||
acc3t: "Accessible dans ta langue",
|
||||
acc3d: "Des tutoriels sous-titrés dans toutes les langues.",
|
||||
cmp_title: "7,90€ aujourd'hui, ou 80€ le 1er octobre",
|
||||
cmp_during: "Pendant la Coupe du Monde",
|
||||
cmp_during_d: "Les 2 académies, accès illimité",
|
||||
cmp_after: "À partir du 1er octobre",
|
||||
cmp_after_d: "40€ par académie, soit 80€ les deux",
|
||||
faq_eyebrow: "FAQ",
|
||||
faq_title: "Questions fréquentes",
|
||||
q1: "Quand est-ce que j'ai accès aux vidéos ?",
|
||||
a1: "Tu reçois ton précode dès le paiement. L'intégralité des contenus se débloque le 1er octobre 2026.",
|
||||
q2: "C'est quoi un précode ?",
|
||||
a2: "C'est ton accès réservé, envoyé par e-mail dès l'achat. Tu l'utilises pour entrer dans les académies au lancement.",
|
||||
q3: "L'offre 7,90€ couvre les deux académies ?",
|
||||
a3: "Oui. Un seul paiement de 7,90€ te donne un accès illimité à La Payet Academy et à La PhysioSport Academy.",
|
||||
q4: "Jusqu'à quand l'offre est valable ?",
|
||||
a4: "Jusqu'au 19 juillet 2026, fin de la Coupe du Monde. Après, place au tarif normal de 40€ par académie.",
|
||||
q5: "Le paiement est-il sécurisé ?",
|
||||
a5: "Oui, 100%. Les paiements sont traités par Stripe, leader mondial du paiement en ligne.",
|
||||
q6: "Dans quelles langues ?",
|
||||
a6: "Le site est disponible en français, anglais, espagnol et portugais, et les tutoriels sont sous-titrés.",
|
||||
final_eyebrow: "Dernier appel",
|
||||
final_title: "7,90€ aujourd'hui. 80€ le 1er octobre.",
|
||||
final_sub: "L'offre se termine avec la Coupe du Monde, le 19 juillet 2026.",
|
||||
foot_tagline:
|
||||
"Tout le monde a le droit aux experts. La Payet Academy & La PhysioSport Academy.",
|
||||
foot_legal_h: "Informations",
|
||||
legal1: "Conditions générales de vente",
|
||||
legal2: "Mentions légales",
|
||||
legal3: "Règlement intérieur",
|
||||
foot_follow: "Suivez-nous",
|
||||
foot_soon_lbl: "TikTok & LinkedIn :",
|
||||
foot_soon: "à venir",
|
||||
rights: "© 2026 TutoSport Expert. Tous droits réservés.",
|
||||
mcta_sub: "au lieu de 80€",
|
||||
mcta_btn: "J'en profite",
|
||||
cd_d: "j",
|
||||
},
|
||||
en: {
|
||||
pricing: "stripe-pricing-table",
|
||||
nav_offer: "Offer",
|
||||
nav_acad: "Academies",
|
||||
nav_how: "How it works",
|
||||
nav_faq: "FAQ",
|
||||
nav_cta: "Subscribe — 7,90€",
|
||||
bar: "World Cup Offer: both academies for 7,90€ instead of €80 — ends July 19.",
|
||||
bar_ends: "Ends in",
|
||||
hero_eyebrow: "World Cup Offer — limited edition",
|
||||
hero_h1a: "Everyone deserves",
|
||||
hero_h1b: "the experts.",
|
||||
hero_h1full: "Everyone deserves the experts.",
|
||||
hero_sub:
|
||||
"The video academies of Dimitri Payet and Yannick Dyduch. Football & sports physio, taught by people who do it at the highest level.",
|
||||
cta1: "Get the offer — 7,90€",
|
||||
cta2: "See the program",
|
||||
trust1: "Instant pre-code",
|
||||
trust2: "Secure Stripe payment",
|
||||
trust3: "Access to both academies",
|
||||
pass_label: "World Cup Pass",
|
||||
pass_old: "instead of €80",
|
||||
pass_incl: "Unlimited access · 2 academies",
|
||||
pass_valid_lbl: "VALID",
|
||||
pass_expires: "EXPIRES IN",
|
||||
pass_note: "Pre-code sent right after payment",
|
||||
offer_eyebrow: "The offer",
|
||||
offer_title: "7,90€ for everything. During the World Cup.",
|
||||
offer_sub:
|
||||
"One price, both academies, unlimited access. After October 1, each academy goes back to €40.",
|
||||
oi1: "Both academies, unlimited access",
|
||||
oi2: "Pre-code delivered instantly",
|
||||
oi3: "Everything unlocks October 1, 2026",
|
||||
oi4: "Subtitled in your language",
|
||||
oi5: "100% secure payment (Stripe)",
|
||||
oi6: "You save 72€",
|
||||
save_badge: "−72€ · save 90%",
|
||||
vs_after: "From October 1: €40 / academy (€80 for both)",
|
||||
vs_until: "Offer valid until July 19, 2026",
|
||||
acad_eyebrow: "The academies",
|
||||
acad_title: "Two experts. Two programs. One access.",
|
||||
payet_name: "La Payet Academy",
|
||||
payet_role: "Dimitri Payet — pro footballer, OM legend (740+ games)",
|
||||
physio_name: "La PhysioSport Academy",
|
||||
physio_role:
|
||||
"Yannick Dyduch — physiotherapist & osteopath (Juventus, Belgium NT, ex-OM)",
|
||||
program_label: "In the program",
|
||||
unlock_note: "Videos unlock October 1, 2026",
|
||||
p1: "The Pass",
|
||||
p2: "Ball Control",
|
||||
p3: "Dribbling",
|
||||
p4: "Shooting",
|
||||
p5: "Direct Free Kicks",
|
||||
p6: "Set Pieces",
|
||||
f1: "Taping / Strapping",
|
||||
f2: "Mobilization",
|
||||
f3: "Sports Massage",
|
||||
f4: "Muscle Injuries",
|
||||
f5: "Joint Injuries",
|
||||
f6: "Inflammatory Injuries",
|
||||
ex_eyebrow: "Why them",
|
||||
ex_title: "People who do it. Not people who talk about it.",
|
||||
ex_payet_tag: "Football · La Payet Academy",
|
||||
ex_payet_bio:
|
||||
"Over 740 pro games, Olympique de Marseille legend. Dimitri Payet finally shares his craft: shooting, free kicks, control, game vision.",
|
||||
ex_physio_tag: "Sports physio · La PhysioSport Academy",
|
||||
ex_physio_bio:
|
||||
"Physiotherapist and osteopath for elite clubs (Juventus, Belgium national team, ex-OM). Yannick Dyduch teaches sports physio: taping, massage, prevention, injury care.",
|
||||
how_eyebrow: "How it works",
|
||||
how_title: "From sign-up to unlock",
|
||||
s1t: "You subscribe",
|
||||
s1d: "7,90€, secure payment in seconds.",
|
||||
s2t: "You get your pre-code",
|
||||
s2d: "Instant email confirmation.",
|
||||
s3t: "The World Cup",
|
||||
s3d: "We warm up the community until kickoff.",
|
||||
s4t: "October 1, 2026",
|
||||
s4d: "All videos unlock. Game on.",
|
||||
acc_eyebrow: "Why we exist",
|
||||
acc_sub:
|
||||
"Pro knowledge shouldn't be reserved for those with the money, the right postcode or the right language.",
|
||||
acc1t: "Financially accessible",
|
||||
acc1d:
|
||||
"Low-cost subscriptions. Pro knowledge, without the price of training camps.",
|
||||
acc2t: "Accessible anywhere",
|
||||
acc2d: "A site and an app. Wherever you are, the experts are there.",
|
||||
acc3t: "Accessible in your language",
|
||||
acc3d: "Tutorials subtitled in every language.",
|
||||
cmp_title: "7,90€ today, or €80 on October 1",
|
||||
cmp_during: "During the World Cup",
|
||||
cmp_during_d: "Both academies, unlimited access",
|
||||
cmp_after: "From October 1",
|
||||
cmp_after_d: "€40 per academy, €80 for both",
|
||||
faq_eyebrow: "FAQ",
|
||||
faq_title: "Frequently asked questions",
|
||||
q1: "When do I get access to the videos?",
|
||||
a1: "You get your pre-code right after payment. All content unlocks on October 1, 2026.",
|
||||
q2: "What's a pre-code?",
|
||||
a2: "It's your reserved access, emailed at purchase. Use it to enter the academies at launch.",
|
||||
q3: "Does the 7,90€ offer cover both academies?",
|
||||
a3: "Yes. A single 7,90€ payment gives unlimited access to both La Payet Academy and La PhysioSport Academy.",
|
||||
q4: "Until when is the offer valid?",
|
||||
a4: "Until July 19, 2026, the end of the World Cup. After that, the regular €40-per-academy price applies.",
|
||||
q5: "Is payment secure?",
|
||||
a5: "Yes, 100%. Payments are processed by Stripe, a global leader in online payments.",
|
||||
q6: "In which languages?",
|
||||
a6: "The site is available in French, English, Spanish and Portuguese, and tutorials are subtitled.",
|
||||
final_eyebrow: "Last call",
|
||||
final_title: "7,90€ today. €80 on October 1.",
|
||||
final_sub: "The offer ends with the World Cup, on July 19, 2026.",
|
||||
foot_tagline:
|
||||
"Everyone deserves the experts. La Payet Academy & La PhysioSport Academy.",
|
||||
foot_legal_h: "Information",
|
||||
legal1: "Terms of Sale",
|
||||
legal2: "Legal notice",
|
||||
legal3: "House rules",
|
||||
foot_follow: "Follow us",
|
||||
foot_soon_lbl: "TikTok & LinkedIn:",
|
||||
foot_soon: "soon",
|
||||
rights: "© 2026 TutoSport Expert. All rights reserved.",
|
||||
mcta_sub: "instead of €80",
|
||||
mcta_btn: "Get it",
|
||||
cd_d: "d",
|
||||
},
|
||||
es: {
|
||||
pricing: "stripe-pricing-table",
|
||||
nav_offer: "Oferta",
|
||||
nav_acad: "Academias",
|
||||
nav_how: "Cómo funciona",
|
||||
nav_faq: "FAQ",
|
||||
nav_cta: "Suscribirse — 7,90€",
|
||||
bar: "Oferta Mundial: las 2 academias por 7,90€ en vez de 80€ — termina el 19 de julio.",
|
||||
bar_ends: "Termina en",
|
||||
hero_eyebrow: "Oferta Mundial — edición limitada",
|
||||
hero_h1a: "Todos tienen derecho",
|
||||
hero_h1b: "a los expertos.",
|
||||
hero_h1full: "Todos tienen derecho a los expertos.",
|
||||
hero_sub:
|
||||
"Las academias en vídeo de Dimitri Payet y Yannick Dyduch. Fútbol y fisioterapia deportiva, por quienes lo hacen al más alto nivel.",
|
||||
cta1: "Aprovechar la oferta — 7,90€",
|
||||
cta2: "Ver el programa",
|
||||
trust1: "Pre-código inmediato",
|
||||
trust2: "Pago seguro con Stripe",
|
||||
trust3: "Acceso a las 2 academias",
|
||||
pass_label: "Pase Mundial",
|
||||
pass_old: "en vez de 80€",
|
||||
pass_incl: "Acceso ilimitado · 2 academias",
|
||||
pass_valid_lbl: "VÁLIDO",
|
||||
pass_expires: "EXPIRA EN",
|
||||
pass_note: "Pre-código al pagar",
|
||||
offer_eyebrow: "La oferta",
|
||||
offer_title: "7,90€ por todo. Durante el Mundial.",
|
||||
offer_sub:
|
||||
"Un solo precio, las dos academias, acceso ilimitado. Después del 1 de octubre, cada academia vuelve a 40€.",
|
||||
oi1: "Las 2 academias, acceso ilimitado",
|
||||
oi2: "Pre-código al instante",
|
||||
oi3: "Todo se desbloquea el 1 de octubre de 2026",
|
||||
oi4: "Subtitulado en tu idioma",
|
||||
oi5: "Pago 100% seguro (Stripe)",
|
||||
oi6: "Ahorras 72€",
|
||||
save_badge: "−72€ · ahorro del 90%",
|
||||
vs_after: "Desde el 1 de octubre: 40€ / academia (80€ las dos)",
|
||||
vs_until: "Oferta válida hasta el 19 de julio de 2026",
|
||||
acad_eyebrow: "Las academias",
|
||||
acad_title: "Dos expertos. Dos programas. Un solo acceso.",
|
||||
payet_name: "La Payet Academy",
|
||||
payet_role:
|
||||
"Dimitri Payet — futbolista profesional, leyenda del OM (740+ partidos)",
|
||||
physio_name: "La PhysioSport Academy",
|
||||
physio_role:
|
||||
"Yannick Dyduch — fisioterapeuta y osteópata (Juventus, Selección de Bélgica, ex-OM)",
|
||||
program_label: "En el programa",
|
||||
unlock_note: "Vídeos disponibles el 1 de octubre de 2026",
|
||||
p1: "El Pase",
|
||||
p2: "El Control",
|
||||
p3: "La Conducción",
|
||||
p4: "El Disparo",
|
||||
p5: "El Tiro libre directo",
|
||||
p6: "El Balón parado",
|
||||
f1: "El Vendaje (strapping)",
|
||||
f2: "La Movilización",
|
||||
f3: "El Masaje deportivo",
|
||||
f4: "Lesiones musculares",
|
||||
f5: "Lesiones articulares",
|
||||
f6: "Lesiones inflamatorias",
|
||||
ex_eyebrow: "Por qué ellos",
|
||||
ex_title: "Los que lo hacen. No los que hablan de ello.",
|
||||
ex_payet_tag: "Fútbol · La Payet Academy",
|
||||
ex_payet_bio:
|
||||
"Más de 740 partidos profesionales, leyenda del Olympique de Marsella. Dimitri Payet por fin comparte sus gestos: disparo, tiros libres, control, visión de juego.",
|
||||
ex_physio_tag: "Fisioterapia deportiva · La PhysioSport Academy",
|
||||
ex_physio_bio:
|
||||
"Fisioterapeuta y osteópata de los grandes clubes (Juventus, Selección de Bélgica, ex-OM). Yannick Dyduch transmite la fisioterapia deportiva: vendajes, masaje, prevención y tratamiento de lesiones.",
|
||||
how_eyebrow: "Cómo funciona",
|
||||
how_title: "Del registro al desbloqueo",
|
||||
s1t: "Te suscribes",
|
||||
s1d: "7,90€, pago seguro en segundos.",
|
||||
s2t: "Recibes tu pre-código",
|
||||
s2d: "Confirmación inmediata por correo.",
|
||||
s3t: "El Mundial",
|
||||
s3d: "Calentamos la comunidad hasta el inicio.",
|
||||
s4t: "1 de octubre de 2026",
|
||||
s4d: "Se desbloquean todos los vídeos. Te toca.",
|
||||
acc_eyebrow: "Nuestra razón de ser",
|
||||
acc_sub:
|
||||
"El saber de los pros no debería ser solo para quien tiene el dinero, el código postal o el idioma correctos.",
|
||||
acc1t: "Accesible económicamente",
|
||||
acc1d:
|
||||
"Suscripciones low-cost. El saber de los pros, sin el precio de los cursos.",
|
||||
acc2t: "Accesible en todas partes",
|
||||
acc2d: "Una web y una app. Estés donde estés, los expertos están.",
|
||||
acc3t: "Accesible en tu idioma",
|
||||
acc3d: "Tutoriales subtitulados en todos los idiomas.",
|
||||
cmp_title: "7,90€ hoy, u 80€ el 1 de octubre",
|
||||
cmp_during: "Durante el Mundial",
|
||||
cmp_during_d: "Las 2 academias, acceso ilimitado",
|
||||
cmp_after: "Desde el 1 de octubre",
|
||||
cmp_after_d: "40€ por academia, 80€ las dos",
|
||||
faq_eyebrow: "FAQ",
|
||||
faq_title: "Preguntas frecuentes",
|
||||
q1: "¿Cuándo accedo a los vídeos?",
|
||||
a1: "Recibes tu pre-código al pagar. Todo el contenido se desbloquea el 1 de octubre de 2026.",
|
||||
q2: "¿Qué es un pre-código?",
|
||||
a2: "Es tu acceso reservado, enviado por correo al comprar. Lo usas para entrar en las academias en el lanzamiento.",
|
||||
q3: "¿La oferta de 7,90€ cubre las dos academias?",
|
||||
a3: "Sí. Un único pago de 7,90€ da acceso ilimitado a La Payet Academy y a La PhysioSport Academy.",
|
||||
q4: "¿Hasta cuándo es válida la oferta?",
|
||||
a4: "Hasta el 19 de julio de 2026, fin del Mundial. Después se aplica el precio normal de 40€ por academia.",
|
||||
q5: "¿El pago es seguro?",
|
||||
a5: "Sí, 100%. Los pagos los procesa Stripe, líder mundial del pago en línea.",
|
||||
q6: "¿En qué idiomas?",
|
||||
a6: "El sitio está disponible en francés, inglés, español y portugués, y los tutoriales están subtitulados.",
|
||||
final_eyebrow: "Última llamada",
|
||||
final_title: "7,90€ hoy. 80€ el 1 de octubre.",
|
||||
final_sub: "La oferta termina con el Mundial, el 19 de julio de 2026.",
|
||||
foot_tagline:
|
||||
"Todos tienen derecho a los expertos. La Payet Academy & La PhysioSport Academy.",
|
||||
foot_legal_h: "Información",
|
||||
legal1: "Condiciones de venta",
|
||||
legal2: "Aviso legal",
|
||||
legal3: "Reglamento interno",
|
||||
foot_follow: "Síguenos",
|
||||
foot_soon_lbl: "TikTok y LinkedIn:",
|
||||
foot_soon: "próximamente",
|
||||
rights: "© 2026 TutoSport Expert. Todos los derechos reservados.",
|
||||
mcta_sub: "en vez de 80€",
|
||||
mcta_btn: "Lo quiero",
|
||||
cd_d: "d",
|
||||
},
|
||||
pt: {
|
||||
pricing: "stripe-pricing-table",
|
||||
nav_offer: "Oferta",
|
||||
nav_acad: "Academias",
|
||||
nav_how: "Como funciona",
|
||||
nav_faq: "FAQ",
|
||||
nav_cta: "Assinar — 7,90€",
|
||||
bar: "Oferta Copa do Mundo: as 2 academias por 7,90€ em vez de 80€ — acaba em 19 de julho.",
|
||||
bar_ends: "Acaba em",
|
||||
hero_eyebrow: "Oferta Copa do Mundo — edição limitada",
|
||||
hero_h1a: "Todos têm direito",
|
||||
hero_h1b: "aos especialistas.",
|
||||
hero_h1full: "Todos têm direito aos especialistas.",
|
||||
hero_sub:
|
||||
"As academias em vídeo de Dimitri Payet e Yannick Dyduch. Futebol e fisioterapia esportiva, por quem faz no mais alto nível.",
|
||||
cta1: "Aproveitar a oferta — 7,90€",
|
||||
cta2: "Ver o programa",
|
||||
trust1: "Pré-código imediato",
|
||||
trust2: "Pagamento seguro com Stripe",
|
||||
trust3: "Acesso às 2 academias",
|
||||
pass_label: "Passe Copa do Mundo",
|
||||
pass_old: "em vez de 80€",
|
||||
pass_incl: "Acesso ilimitado · 2 academias",
|
||||
pass_valid_lbl: "VÁLIDO",
|
||||
pass_expires: "EXPIRA EM",
|
||||
pass_note: "Pré-código ao pagar",
|
||||
offer_eyebrow: "A oferta",
|
||||
offer_title: "7,90€ por tudo. Durante a Copa do Mundo.",
|
||||
offer_sub:
|
||||
"Um só preço, as duas academias, acesso ilimitado. Depois de 1 de outubro, cada academia volta a 40€.",
|
||||
oi1: "As 2 academias, acesso ilimitado",
|
||||
oi2: "Pré-código na hora",
|
||||
oi3: "Tudo libera em 1 de outubro de 2026",
|
||||
oi4: "Legendado no seu idioma",
|
||||
oi5: "Pagamento 100% seguro (Stripe)",
|
||||
oi6: "Você economiza 72€",
|
||||
save_badge: "−72€ · economia de 90%",
|
||||
vs_after: "A partir de 1 de outubro: 40€ / academia (80€ as duas)",
|
||||
vs_until: "Oferta válida até 19 de julho de 2026",
|
||||
acad_eyebrow: "As academias",
|
||||
acad_title: "Dois especialistas. Dois programas. Um só acesso.",
|
||||
payet_name: "La Payet Academy",
|
||||
payet_role:
|
||||
"Dimitri Payet — jogador profissional, lenda do OM (740+ jogos)",
|
||||
physio_name: "La PhysioSport Academy",
|
||||
physio_role:
|
||||
"Yannick Dyduch — fisioterapeuta e osteopata (Juventus, Seleção da Bélgica, ex-OM)",
|
||||
program_label: "No programa",
|
||||
unlock_note: "Vídeos liberados em 1 de outubro de 2026",
|
||||
p1: "O Passe",
|
||||
p2: "O Domínio",
|
||||
p3: "A Condução",
|
||||
p4: "O Chute",
|
||||
p5: "A Falta direta",
|
||||
p6: "As Bolas paradas",
|
||||
f1: "A Bandagem (strapping)",
|
||||
f2: "A Mobilização",
|
||||
f3: "A Massagem esportiva",
|
||||
f4: "Lesões musculares",
|
||||
f5: "Lesões articulares",
|
||||
f6: "Lesões inflamatórias",
|
||||
ex_eyebrow: "Por que eles",
|
||||
ex_title: "Quem faz. Não quem fala sobre isso.",
|
||||
ex_payet_tag: "Futebol · La Payet Academy",
|
||||
ex_payet_bio:
|
||||
"Mais de 740 jogos profissionais, lenda do Olympique de Marseille. Dimitri Payet enfim compartilha seus gestos: chute, faltas, domínio, visão de jogo.",
|
||||
ex_physio_tag: "Fisioterapia esportiva · La PhysioSport Academy",
|
||||
ex_physio_bio:
|
||||
"Fisioterapeuta e osteopata de grandes clubes (Juventus, Seleção da Bélgica, ex-OM). Yannick Dyduch ensina a fisioterapia esportiva: bandagens, massagem, prevenção e tratamento de lesões.",
|
||||
how_eyebrow: "Como funciona",
|
||||
how_title: "Da inscrição à liberação",
|
||||
s1t: "Você assina",
|
||||
s1d: "7,90€, pagamento seguro em segundos.",
|
||||
s2t: "Você recebe o pré-código",
|
||||
s2d: "Confirmação imediata por e-mail.",
|
||||
s3t: "A Copa do Mundo",
|
||||
s3d: "Aquecemos a comunidade até o apito inicial.",
|
||||
s4t: "1 de outubro de 2026",
|
||||
s4d: "Todos os vídeos liberam. É com você.",
|
||||
acc_eyebrow: "Nossa razão de ser",
|
||||
acc_sub:
|
||||
"O conhecimento dos pros não deveria ser só para quem tem dinheiro, o CEP certo ou o idioma certo.",
|
||||
acc1t: "Acessível no preço",
|
||||
acc1d:
|
||||
"Assinaturas low-cost. O conhecimento dos pros, sem o preço dos cursos.",
|
||||
acc2t: "Acessível em qualquer lugar",
|
||||
acc2d: "Um site e um app. Onde você estiver, os experts estão.",
|
||||
acc3t: "Acessível no seu idioma",
|
||||
acc3d: "Tutoriais legendados em todos os idiomas.",
|
||||
cmp_title: "7,90€ hoje, ou 80€ em 1 de outubro",
|
||||
cmp_during: "Durante a Copa do Mundo",
|
||||
cmp_during_d: "As 2 academias, acesso ilimitado",
|
||||
cmp_after: "A partir de 1 de outubro",
|
||||
cmp_after_d: "40€ por academia, 80€ as duas",
|
||||
faq_eyebrow: "FAQ",
|
||||
faq_title: "Perguntas frequentes",
|
||||
q1: "Quando eu acesso os vídeos?",
|
||||
a1: "Você recebe o pré-código ao pagar. Todo o conteúdo libera em 1 de outubro de 2026.",
|
||||
q2: "O que é um pré-código?",
|
||||
a2: "É o seu acesso reservado, enviado por e-mail na compra. Use-o para entrar nas academias no lançamento.",
|
||||
q3: "A oferta de 7,90€ cobre as duas academias?",
|
||||
a3: "Sim. Um único pagamento de 7,90€ dá acesso ilimitado à La Payet Academy e à La PhysioSport Academy.",
|
||||
q4: "Até quando a oferta é válida?",
|
||||
a4: "Até 19 de julho de 2026, fim da Copa do Mundo. Depois, vale o preço normal de 40€ por academia.",
|
||||
q5: "O pagamento é seguro?",
|
||||
a5: "Sim, 100%. Os pagamentos são processados pela Stripe, líder mundial em pagamentos online.",
|
||||
q6: "Em quais idiomas?",
|
||||
a6: "O site está disponível em francês, inglês, espanhol e português, e os tutoriais são legendados.",
|
||||
final_eyebrow: "Última chamada",
|
||||
final_title: "7,90€ hoje. 80€ em 1 de outubro.",
|
||||
final_sub: "A oferta acaba com a Copa do Mundo, em 19 de julho de 2026.",
|
||||
foot_tagline:
|
||||
"Todos têm direito aos especialistas. La Payet Academy & La PhysioSport Academy.",
|
||||
foot_legal_h: "Informações",
|
||||
legal1: "Termos de venda",
|
||||
legal2: "Aviso legal",
|
||||
legal3: "Regulamento interno",
|
||||
foot_follow: "Siga-nos",
|
||||
foot_soon_lbl: "TikTok e LinkedIn:",
|
||||
foot_soon: "em breve",
|
||||
rights: "© 2026 TutoSport Expert. Todos os direitos reservados.",
|
||||
mcta_sub: "em vez de 80€",
|
||||
mcta_btn: "Quero já",
|
||||
cd_d: "d",
|
||||
},
|
||||
};
|
||||
|
||||
const DEFAULT_LANG = "en";
|
||||
const LANG_STORAGE_KEY = "tutosport_lang";
|
||||
@@ -0,0 +1,90 @@
|
||||
/* ---------------- launch countdown i18n ---------------- */
|
||||
const DICT = {
|
||||
fr: {
|
||||
meta_title: "TutoSport Expert — Ouverture le 22 juin 2026",
|
||||
meta_description:
|
||||
"Les académies de Dimitri Payet & Yannick Dyduch arrivent. Offre Coupe du Monde : les 2 académies à 7,90€. Ouverture le 22 juin 2026.",
|
||||
tag: "Ouverture · 22 juin 2026",
|
||||
h1a: "Le compte à rebours",
|
||||
h1b: "est lancé.",
|
||||
sub: "Les académies de Dimitri Payet & Yannick Dyduch arrivent. Préparez-vous à l'offre Coupe du Monde.",
|
||||
l_d: "Jours",
|
||||
l_h: "Heures",
|
||||
l_m: "Minutes",
|
||||
l_s: "Secondes",
|
||||
offer_a: "Les 2 académies à",
|
||||
offer_b: "au lieu de 80€ · offre limitée Coupe du Monde",
|
||||
ph: "Ton adresse e-mail",
|
||||
btn: "Préviens-moi",
|
||||
thanks: "Merci ! On te prévient dès l'ouverture.",
|
||||
note: "Sois prévenu·e en premier et garde l'offre 7,90€.",
|
||||
rights: "© 2026 TutoSport Expert. Tous droits réservés.",
|
||||
cd_d: "j",
|
||||
},
|
||||
en: {
|
||||
meta_title: "TutoSport Expert — Opening June 22, 2026",
|
||||
meta_description:
|
||||
"The academies of Dimitri Payet & Yannick Dyduch are coming. World Cup offer: both academies for €7.90. Opening June 22, 2026.",
|
||||
tag: "Opening · June 22, 2026",
|
||||
h1a: "The countdown",
|
||||
h1b: "has started.",
|
||||
sub: "The academies of Dimitri Payet & Yannick Dyduch are coming. Get ready for the World Cup offer.",
|
||||
l_d: "Days",
|
||||
l_h: "Hours",
|
||||
l_m: "Minutes",
|
||||
l_s: "Seconds",
|
||||
offer_a: "Both academies for",
|
||||
offer_b: "instead of €80 · limited World Cup offer",
|
||||
ph: "Your email address",
|
||||
btn: "Notify me",
|
||||
thanks: "Thanks! We'll let you know at launch.",
|
||||
note: "Be the first in and keep the €7.90 offer.",
|
||||
rights: "© 2026 TutoSport Expert. All rights reserved.",
|
||||
cd_d: "d",
|
||||
},
|
||||
es: {
|
||||
meta_title: "TutoSport Expert — Apertura el 22 de junio de 2026",
|
||||
meta_description:
|
||||
"Las academias de Dimitri Payet y Yannick Dyduch llegan. Oferta Mundial: las 2 academias por 7,90€. Apertura el 22 de junio de 2026.",
|
||||
tag: "Apertura · 22 de junio de 2026",
|
||||
h1a: "La cuenta atrás",
|
||||
h1b: "ha comenzado.",
|
||||
sub: "Las academias de Dimitri Payet y Yannick Dyduch llegan. Prepárate para la oferta del Mundial.",
|
||||
l_d: "Días",
|
||||
l_h: "Horas",
|
||||
l_m: "Minutos",
|
||||
l_s: "Segundos",
|
||||
offer_a: "Las 2 academias por",
|
||||
offer_b: "en vez de 80€ · oferta limitada del Mundial",
|
||||
ph: "Tu correo electrónico",
|
||||
btn: "Avísame",
|
||||
thanks: "¡Gracias! Te avisamos en la apertura.",
|
||||
note: "Entra el primero y conserva la oferta de 7,90€.",
|
||||
rights: "© 2026 TutoSport Expert. Todos los derechos reservados.",
|
||||
cd_d: "d",
|
||||
},
|
||||
pt: {
|
||||
meta_title: "TutoSport Expert — Abertura em 22 de junho de 2026",
|
||||
meta_description:
|
||||
"As academias de Dimitri Payet e Yannick Dyduch chegam. Oferta Copa do Mundo: as 2 academias por 7,90€. Abertura em 22 de junho de 2026.",
|
||||
tag: "Abertura · 22 de junho de 2026",
|
||||
h1a: "A contagem regressiva",
|
||||
h1b: "começou.",
|
||||
sub: "As academias de Dimitri Payet e Yannick Dyduch chegam. Prepare-se para a oferta da Copa do Mundo.",
|
||||
l_d: "Dias",
|
||||
l_h: "Horas",
|
||||
l_m: "Minutos",
|
||||
l_s: "Segundos",
|
||||
offer_a: "As 2 academias por",
|
||||
offer_b: "em vez de 80€ · oferta limitada da Copa",
|
||||
ph: "Seu e-mail",
|
||||
btn: "Avise-me",
|
||||
thanks: "Obrigado! Avisamos na abertura.",
|
||||
note: "Seja o primeiro e garanta a oferta de 7,90€.",
|
||||
rights: "© 2026 TutoSport Expert. Todos os direitos reservados.",
|
||||
cd_d: "d",
|
||||
},
|
||||
};
|
||||
|
||||
const DEFAULT_LANG = "en";
|
||||
const LANG_STORAGE_KEY = "tutosport_lang";
|
||||
@@ -0,0 +1,372 @@
|
||||
const SUPPORTED_LANGS = Object.keys(DICT);
|
||||
let LANG = DEFAULT_LANG;
|
||||
|
||||
function getStripePricingTableHtml(lang) {
|
||||
const pricingTableId =
|
||||
SITE_CONFIG.stripe.pricingTableIds[lang] ||
|
||||
SITE_CONFIG.stripe.pricingTableIds.en;
|
||||
|
||||
return (
|
||||
`<stripe-pricing-table pricing-table-id="${pricingTableId}" ` +
|
||||
`publishable-key="${SITE_CONFIG.stripe.publishableKey}"></stripe-pricing-table>`
|
||||
);
|
||||
}
|
||||
|
||||
function normalizeLang(value) {
|
||||
if (!value) return null;
|
||||
const lang = String(value).toLowerCase().split(/[-_]/)[0];
|
||||
return DICT[lang] ? lang : null;
|
||||
}
|
||||
|
||||
function getStoredLang() {
|
||||
const cookieMatch = document.cookie.match(
|
||||
new RegExp(`(?:^|; )${LANG_STORAGE_KEY}=([^;]*)`),
|
||||
);
|
||||
try {
|
||||
return (
|
||||
normalizeLang(localStorage.getItem(LANG_STORAGE_KEY)) ||
|
||||
normalizeLang(cookieMatch && decodeURIComponent(cookieMatch[1]))
|
||||
);
|
||||
} catch (e) {
|
||||
return normalizeLang(cookieMatch && decodeURIComponent(cookieMatch[1]));
|
||||
}
|
||||
}
|
||||
|
||||
function getUrlLang() {
|
||||
return normalizeLang(new URLSearchParams(location.search).get("lang"));
|
||||
}
|
||||
|
||||
function getBrowserLang() {
|
||||
const browserLangs = navigator.languages && navigator.languages.length
|
||||
? navigator.languages
|
||||
: [navigator.language];
|
||||
for (const lang of browserLangs) {
|
||||
const normalized = normalizeLang(lang);
|
||||
if (normalized) return normalized;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function getInitialLang() {
|
||||
return getUrlLang() || getStoredLang() || getBrowserLang() || DEFAULT_LANG;
|
||||
}
|
||||
|
||||
function getRootPrefix() {
|
||||
if (document.body && document.body.dataset.rootPrefix) {
|
||||
return document.body.dataset.rootPrefix;
|
||||
}
|
||||
const pathParts = location.pathname.split("/").filter(Boolean);
|
||||
const parentDir = pathParts.length > 1 ? pathParts[pathParts.length - 2] : "";
|
||||
return SUPPORTED_LANGS.includes(parentDir) ? "../" : "./";
|
||||
}
|
||||
|
||||
function withLangParam(href, lang) {
|
||||
const [pathWithSearch, hash = ""] = href.split("#");
|
||||
const [path, search = ""] = pathWithSearch.split("?");
|
||||
const params = new URLSearchParams(search);
|
||||
params.set("lang", lang);
|
||||
return `${path}?${params.toString()}${hash ? `#${hash}` : ""}`;
|
||||
}
|
||||
|
||||
function getLocalizedPageUrl(lang) {
|
||||
const pathParts = location.pathname.split("/").filter(Boolean);
|
||||
const parentDir = pathParts.length > 1 ? pathParts[pathParts.length - 2] : "";
|
||||
const fileName = pathParts[pathParts.length - 1] || "";
|
||||
if (!SUPPORTED_LANGS.includes(parentDir)) return null;
|
||||
if (fileName !== "cgv.html" && fileName !== "legals.html") return null;
|
||||
return withLangParam(`../${lang}/${fileName}`, lang);
|
||||
}
|
||||
|
||||
function updateInternalLinks(lang) {
|
||||
const rootPrefix = getRootPrefix();
|
||||
const homeHref = withLangParam(rootPrefix, lang);
|
||||
const offerHref = withLangParam(`${rootPrefix}offre.html`, lang);
|
||||
const legalPrefix = `${rootPrefix}${lang}/`;
|
||||
const anchors = {
|
||||
nav_offer: `${homeHref}#offre`,
|
||||
nav_acad: `${homeHref}#academies`,
|
||||
nav_how: `${homeHref}#how`,
|
||||
nav_faq: `${homeHref}#faq`,
|
||||
legal1: withLangParam(`${legalPrefix}cgv.html`, lang),
|
||||
legal2: withLangParam(`${legalPrefix}legals.html`, lang),
|
||||
};
|
||||
|
||||
Object.entries(anchors).forEach(([key, href]) => {
|
||||
document
|
||||
.querySelectorAll(`a[data-i18n="${key}"]`)
|
||||
.forEach((link) => link.setAttribute("href", href));
|
||||
});
|
||||
|
||||
document.querySelectorAll("a.brand, a.foot-logo-wrap").forEach((link) => {
|
||||
link.setAttribute("href", homeHref);
|
||||
});
|
||||
|
||||
document.querySelectorAll("a[href]").forEach((link) => {
|
||||
const href = link.getAttribute("href");
|
||||
if (!href || href.startsWith("http") || href.startsWith("mailto:")) return;
|
||||
if (href.includes("offre.html")) {
|
||||
link.setAttribute("href", offerHref);
|
||||
} else if (href === "#offre" || href === "./#offre") {
|
||||
link.setAttribute("href", `${homeHref}#offre`);
|
||||
} else if (href === "#academies" || href === "./#academies") {
|
||||
link.setAttribute("href", `${homeHref}#academies`);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function updateGoogleTagManagerNoScript() {
|
||||
const gtmId = SITE_CONFIG.googleTagManagerId;
|
||||
if (!gtmId) return;
|
||||
|
||||
document
|
||||
.querySelectorAll('iframe[src*="googletagmanager.com/ns.html"]')
|
||||
.forEach((iframe) => {
|
||||
iframe.setAttribute(
|
||||
"src",
|
||||
`https://www.googletagmanager.com/ns.html?id=${gtmId}`,
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
function loadGoogleTagManagerScript() {
|
||||
const gtmId = SITE_CONFIG.googleTagManagerId;
|
||||
if (!gtmId) return;
|
||||
if (
|
||||
document.querySelector(
|
||||
`script[src*="googletagmanager.com/gtm.js?id=${gtmId}"]`,
|
||||
)
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
(function (w, d, s, l, i) {
|
||||
w[l] = w[l] || [];
|
||||
w[l].push({ "gtm.start": new Date().getTime(), event: "gtm.js" });
|
||||
const f = d.getElementsByTagName(s)[0];
|
||||
const j = d.createElement(s);
|
||||
const dl = l !== "dataLayer" ? `&l=${l}` : "";
|
||||
j.async = true;
|
||||
j.src = `https://www.googletagmanager.com/gtm.js?id=${i}${dl}`;
|
||||
f.parentNode.insertBefore(j, f);
|
||||
})(window, document, "script", "dataLayer", gtmId);
|
||||
}
|
||||
|
||||
function updateConfiguredSiteUrl() {
|
||||
const siteUrl = SITE_CONFIG.siteUrl;
|
||||
const siteUrlAliases = SITE_CONFIG.siteUrlAliases || [];
|
||||
if (!siteUrl) return;
|
||||
|
||||
document.querySelectorAll("[href], [src]").forEach((el) => {
|
||||
["href", "src"].forEach((attr) => {
|
||||
const value = el.getAttribute(attr);
|
||||
const alias = siteUrlAliases.find(
|
||||
(item) => value && value.includes(item),
|
||||
);
|
||||
if (alias) {
|
||||
el.setAttribute(attr, value.replaceAll(alias, siteUrl));
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
if (!document.createTreeWalker || !document.body) return;
|
||||
const walker = document.createTreeWalker(document.body, 4);
|
||||
let node = walker.nextNode();
|
||||
while (node) {
|
||||
const alias = siteUrlAliases.find((item) =>
|
||||
node.nodeValue.includes(item),
|
||||
);
|
||||
if (alias) {
|
||||
node.nodeValue = node.nodeValue.replaceAll(alias, siteUrl);
|
||||
}
|
||||
node = walker.nextNode();
|
||||
}
|
||||
}
|
||||
|
||||
function updateSocialLinks() {
|
||||
const socialLinks = SITE_CONFIG.socialLinks || {};
|
||||
const selectors = {
|
||||
instagram: 'a[aria-label="Instagram"]',
|
||||
facebook: 'a[aria-label="Facebook"]:not([data-disabled="true"])',
|
||||
tiktok: 'a[aria-label="TikTok"]:not([data-disabled="true"])',
|
||||
linkedin: 'a[aria-label="LinkedIn"]:not([data-disabled="true"])',
|
||||
};
|
||||
|
||||
Object.entries(selectors).forEach(([key, selector]) => {
|
||||
const href = socialLinks[key];
|
||||
if (!href) return;
|
||||
document
|
||||
.querySelectorAll(selector)
|
||||
.forEach((link) => {
|
||||
link.setAttribute("href", href);
|
||||
link.setAttribute("target", "_blank");
|
||||
link.setAttribute("rel", "noopener noreferrer");
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function getFooterPath() {
|
||||
return `${getRootPrefix()}footer.html`;
|
||||
}
|
||||
|
||||
async function loadFooter() {
|
||||
const placeholders = document.querySelectorAll('[data-include="footer"]');
|
||||
if (!placeholders.length || !window.fetch) return;
|
||||
|
||||
try {
|
||||
const response = await fetch(getFooterPath());
|
||||
if (!response.ok) return;
|
||||
|
||||
const rootPrefix = getRootPrefix();
|
||||
const footerHtml = (await response.text()).replaceAll(
|
||||
'src="assets/',
|
||||
`src="${rootPrefix}assets/`,
|
||||
);
|
||||
|
||||
placeholders.forEach((placeholder) => {
|
||||
placeholder.innerHTML = footerHtml;
|
||||
});
|
||||
|
||||
setLang(LANG);
|
||||
updateConfiguredSiteUrl();
|
||||
updateSocialLinks();
|
||||
} catch (e) {}
|
||||
}
|
||||
|
||||
function setLang(l, options = {}) {
|
||||
const normalizedLang = normalizeLang(l);
|
||||
if (!normalizedLang) return;
|
||||
LANG = normalizedLang;
|
||||
if (options.persist) {
|
||||
try {
|
||||
localStorage.setItem(LANG_STORAGE_KEY, normalizedLang);
|
||||
} catch (e) {}
|
||||
document.cookie = `${LANG_STORAGE_KEY}=${encodeURIComponent(
|
||||
normalizedLang,
|
||||
)};path=/;max-age=31536000;SameSite=Lax`;
|
||||
}
|
||||
const localizedPageUrl = options.navigate
|
||||
? getLocalizedPageUrl(normalizedLang)
|
||||
: null;
|
||||
if (localizedPageUrl && localizedPageUrl !== location.pathname + location.search) {
|
||||
location.href = localizedPageUrl;
|
||||
return;
|
||||
}
|
||||
document.documentElement.lang = normalizedLang;
|
||||
document.querySelectorAll("[data-i18n]").forEach((el) => {
|
||||
const v = DICT[normalizedLang][el.getAttribute("data-i18n")];
|
||||
if (v != null) el.textContent = v;
|
||||
});
|
||||
document.querySelectorAll("[data-i18n-html]").forEach((el) => {
|
||||
const key = el.getAttribute("data-i18n-html");
|
||||
const v =
|
||||
key === "pricing"
|
||||
? getStripePricingTableHtml(normalizedLang)
|
||||
: DICT[normalizedLang][key];
|
||||
if (v != null) el.innerHTML = v;
|
||||
});
|
||||
document.querySelectorAll("[data-i18n-content]").forEach((el) => {
|
||||
const v = DICT[normalizedLang][el.getAttribute("data-i18n-content")];
|
||||
if (v != null) el.setAttribute("content", v);
|
||||
});
|
||||
document.querySelectorAll("[data-i18n-ph]").forEach((el) => {
|
||||
const v = DICT[normalizedLang][el.getAttribute("data-i18n-ph")];
|
||||
if (v != null) el.setAttribute("placeholder", v);
|
||||
});
|
||||
document
|
||||
.querySelectorAll(".langsw button")
|
||||
.forEach((b) => {
|
||||
const isActive = b.dataset.lang === normalizedLang;
|
||||
b.classList.toggle("on", isActive);
|
||||
b.setAttribute("aria-pressed", String(isActive));
|
||||
});
|
||||
updateInternalLinks(normalizedLang);
|
||||
renderCountdown();
|
||||
}
|
||||
document
|
||||
.querySelectorAll(".langsw button")
|
||||
.forEach((b) =>
|
||||
b.addEventListener("click", () =>
|
||||
setLang(b.dataset.lang, { persist: true, navigate: true }),
|
||||
)
|
||||
);
|
||||
|
||||
loadGoogleTagManagerScript();
|
||||
updateGoogleTagManagerNoScript();
|
||||
updateConfiguredSiteUrl();
|
||||
updateSocialLinks();
|
||||
loadFooter();
|
||||
|
||||
/* ---------------- countdown ---------------- */
|
||||
const TARGET = new Date("2026-07-19T23:59:59+02:00").getTime();
|
||||
function renderCountdown() {
|
||||
const now = Date.now();
|
||||
let diff = Math.max(0, TARGET - now);
|
||||
const d = Math.floor(diff / 86400000);
|
||||
diff -= d * 86400000;
|
||||
const h = Math.floor(diff / 3600000);
|
||||
diff -= h * 3600000;
|
||||
const m = Math.floor(diff / 60000);
|
||||
diff -= m * 60000;
|
||||
const s = Math.floor(diff / 1000);
|
||||
const p = (n) => String(n).padStart(2, "0");
|
||||
const du = (DICT[LANG] && DICT[LANG].cd_d) || "d";
|
||||
const str = `${d}${du} ${p(h)}h ${p(m)}m ${p(s)}s`;
|
||||
document.querySelectorAll(".js-cd").forEach((e) => (e.textContent = str));
|
||||
}
|
||||
setLang(getInitialLang());
|
||||
setInterval(renderCountdown, 1000);
|
||||
|
||||
/* ---------------- header scroll ---------------- */
|
||||
const hd = document.getElementById("hd");
|
||||
if (hd) {
|
||||
addEventListener(
|
||||
"scroll",
|
||||
() => hd.classList.toggle("scrolled", scrollY > 10),
|
||||
{ passive: true },
|
||||
);
|
||||
}
|
||||
|
||||
/* ---------------- mobile menu ---------------- */
|
||||
const burger = document.getElementById("burger");
|
||||
if (burger && hd) {
|
||||
burger.addEventListener("click", () => {
|
||||
const open = hd.classList.toggle("menu-open");
|
||||
burger.setAttribute("aria-expanded", open);
|
||||
});
|
||||
}
|
||||
document.querySelectorAll("#navlinks a").forEach((a) =>
|
||||
a.addEventListener("click", () => {
|
||||
if (hd) hd.classList.remove("menu-open");
|
||||
if (burger) burger.setAttribute("aria-expanded", "false");
|
||||
}),
|
||||
);
|
||||
|
||||
/* ---------------- faq accordion ---------------- */
|
||||
document.querySelectorAll(".qa button").forEach((btn) => {
|
||||
btn.addEventListener("click", () => {
|
||||
const qa = btn.parentElement,
|
||||
ans = qa.querySelector(".ans"),
|
||||
open = qa.classList.toggle("open");
|
||||
btn.setAttribute("aria-expanded", open);
|
||||
ans.hidden = !open;
|
||||
});
|
||||
});
|
||||
|
||||
/* ---------------- reveal on scroll ---------------- */
|
||||
const reduce = matchMedia("(prefers-reduced-motion:reduce)").matches;
|
||||
if (!reduce && "IntersectionObserver" in window) {
|
||||
const io = new IntersectionObserver(
|
||||
(es) => {
|
||||
es.forEach((e) => {
|
||||
if (e.isIntersecting) {
|
||||
e.target.classList.add("in");
|
||||
io.unobserve(e.target);
|
||||
}
|
||||
});
|
||||
},
|
||||
{ threshold: 0.14 },
|
||||
);
|
||||
document.querySelectorAll(".rv").forEach((el) => io.observe(el));
|
||||
} else {
|
||||
document.querySelectorAll(".rv").forEach((el) => el.classList.add("in"));
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
const SITE_CONFIG = {
|
||||
googleTagManagerId: "GTM-MFN88L24",
|
||||
siteUrl: "https://www.tutosportexpert.com",
|
||||
siteUrlAliases: [
|
||||
"https://tutosportexpert.com",
|
||||
"https://www.tutosportexpert.com",
|
||||
],
|
||||
stripe: {
|
||||
publishableKey:
|
||||
"pk_live_51QblVdAVnr0yCjVxfn0VB0H62Kjdpfly5Cg8mVenw34xBvSavUoWCmDZJISEYme3y3nf9SXrA2GUFngt5dHHPa0N00mCehFE2N",
|
||||
pricingTableIds: {
|
||||
fr: "prctbl_1TjY4mAVnr0yCjVxprPlzN6a",
|
||||
en: "prctbl_1TjYLDAVnr0yCjVxbfn2vzkN",
|
||||
es: "prctbl_1TjYM8AVnr0yCjVx3hmFKXx3",
|
||||
pt: "prctbl_1TjYMtAVnr0yCjVxKNiktdBr",
|
||||
},
|
||||
},
|
||||
socialLinks: {
|
||||
instagram: "https://instagram.com/tutosportexpert",
|
||||
facebook: "#",
|
||||
tiktok: "#",
|
||||
linkedin: "#",
|
||||
},
|
||||
};
|
||||
@@ -0,0 +1,24 @@
|
||||
const SITE_CONFIG = {
|
||||
googleTagManagerId: "GTM-WTMNS3J8",
|
||||
siteUrl: "https://preprod.tutosportexpert.com",
|
||||
siteUrlAliases: [
|
||||
"https://tutosportexpert.com",
|
||||
"https://preprod.tutosportexpert.com",
|
||||
],
|
||||
stripe: {
|
||||
publishableKey:
|
||||
"pk_test_51QblVdAVnr0yCjVxvGKVEnsFExwJ5MJHrfpZha3hUdu6M1boWMVfo69sBvsaMAKPsnusWqI4JoDzsxgxjYOnzEot00ESickqIW",
|
||||
pricingTableIds: {
|
||||
fr: "prctbl_1TihgyAVnr0yCjVxitGGF6te",
|
||||
en: "prctbl_1Tif1XAVnr0yCjVxU6YR803D",
|
||||
es: "prctbl_1Tif20AVnr0yCjVxkV0GyCMy",
|
||||
pt: "prctbl_1TifbgAVnr0yCjVxxjJTNQfC",
|
||||
},
|
||||
},
|
||||
socialLinks: {
|
||||
instagram: "https://instagram.com/tutosportexpert",
|
||||
facebook: "#",
|
||||
tiktok: "#",
|
||||
linkedin: "#",
|
||||
},
|
||||
};
|
||||
@@ -0,0 +1,24 @@
|
||||
const SITE_CONFIG = {
|
||||
googleTagManagerId: "GTM-MFN88L24",
|
||||
siteUrl: "https://www.tutosportexpert.com",
|
||||
siteUrlAliases: [
|
||||
"https://tutosportexpert.com",
|
||||
"https://www.tutosportexpert.com",
|
||||
],
|
||||
stripe: {
|
||||
publishableKey:
|
||||
"pk_live_51QblVdAVnr0yCjVxfn0VB0H62Kjdpfly5Cg8mVenw34xBvSavUoWCmDZJISEYme3y3nf9SXrA2GUFngt5dHHPa0N00mCehFE2N",
|
||||
pricingTableIds: {
|
||||
fr: "prctbl_1TjY4mAVnr0yCjVxprPlzN6a",
|
||||
en: "prctbl_1TjYLDAVnr0yCjVxbfn2vzkN",
|
||||
es: "prctbl_1TjYM8AVnr0yCjVx3hmFKXx3",
|
||||
pt: "prctbl_1TjYMtAVnr0yCjVxKNiktdBr",
|
||||
},
|
||||
},
|
||||
socialLinks: {
|
||||
instagram: "https://instagram.com/tutosportexpert",
|
||||
facebook: "#",
|
||||
tiktok: "#",
|
||||
linkedin: "#",
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user