apresenta:

O Futuro da Odontologia Digital no Brasil:

Zircônia, IA e Sistemas Acessíveis

em parceria com:

Preencha os campos abaixo e garanta sua vaga:

    //script completo que abre o whats em outra aba (function () { const WRAPPER_SELECTOR = '#wpcf7-f2804-p2767-o1'; const WHATSAPP_NUMBER = '5541992905657'; const THANK_YOU_URL = 'https://dentaltechexpert.com/pt-br/celmat-lp-1-calculadora-obrigado/'; function getValue(detail, name) { const f = detail && detail.inputs ? detail.inputs.find(i => i.name === name) : null; return f ? String(f.value || '').trim() : ''; } function handler(e) { // Garante que é o formulário certo (wrapper) try { const wrapper = document.querySelector(WRAPPER_SELECTOR); if (wrapper && !e.target.closest(WRAPPER_SELECTOR)) return; } catch (err) {} const nome = getValue(e.detail, 'your-name'); const elementos = getValue(e.detail, 'elementos'); const custo = getValue(e.detail, 'custo'); // Mensagem exatamente no formato solicitado const msg = `Oi, meu nome é ${nome}, faço ${elementos} à ${custo} e gostaria de saber o retorno sobre meu investimento!`; // Abre o WhatsApp em nova aba const waUrl = `https://wa.me/${WHATSAPP_NUMBER}?text=${encodeURIComponent(msg)}`; window.open(waUrl, '_blank'); // Redireciona a aba atual para a página de obrigado // (Se quiser preservar UTMs, troque pela linha comentada abaixo) window.location.href = THANK_YOU_URL + '?elementos=' + elementos + '&custo=' + custo; // window.location.href = THANK_YOU_URL + (window.location.search || ''); } // Registra após o DOM estar pronto document.addEventListener('DOMContentLoaded', function () { const wrapper = document.querySelector(WRAPPER_SELECTOR); if (wrapper) { // Escuta o evento do CF7 apenas nesse formulário wrapper.addEventListener('wpcf7mailsent', handler, false); } else { // Fallback: escuta global e filtra pelo wrapper no handler document.addEventListener('wpcf7mailsent', handler, false); } }); })(); jQuery('#whatsapp').on( "click", function() { window.open('https://wa.me/5541992905657?text=Ol%C3%A1%2C%20tenho%20interesse%20em%20saber%20mais%20sobre%20a%20Fresadora%20da%20CCELMAT.', '_blank'); window.location.href = 'https://dentaltechexpert.com/pt-br/celmat-lp-1-calculadora-obrigado/'; } );