Pular para o conteúdo
html, body { margin: 0 !important; padding: 0 !important; background: #ffffff !important; font-family: Arial, sans-serif; }#quiz-wrapper { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: #ffffff; display: flex; align-items: center; justify-content: center; z-index: 999999; }.quiz-box { width: 100%; max-width: 500px; text-align: center; padding: 20px; }.progress { height: 6px; width: 100%; background: #eee; border-radius: 10px; margin-bottom: 25px; }.progress-bar { height: 6px; width: 0%; background: #22c55e; border-radius: 10px; transition: 0.4s; }h1 { font-size: 26px; margin-bottom: 10px; color: #111; }p { font-size: 16px; color: #555; margin-bottom: 25px; }.btn { display: block; width: 100%; padding: 16px; margin: 10px 0; border-radius: 12px; border: none; font-size: 16px; cursor: pointer; font-weight: bold; }.btn-main { background: #1e3a8a; color: #fff; }.btn-alt { background: #eee; color: #333; }

Você está negativado?

Responda e veja se pode ser aprovado hoje

const quiz = [ { question: “Você está negativado?”, answers: [“Sim 😔”, “Não 🙂”] }, { question: “Qual crédito você quer?”, answers: [“Cartão 💳”, “Empréstimo 💰”, “Os dois 🚀”] }, { question: “Você tem renda mensal?”, answers: [“Sim comprovada 📄”, “Sim informal 💼”, “Não 😕”] }, { question: “Quer aprovação rápida?”, answers: [“Sim ⚡”, “Posso esperar ⏳”] } ];let current = 0; let escolhaCredito = “”;function loadQuestion() { document.getElementById(“question”).innerText = quiz[current].question;const answersDiv = document.getElementById(“answers”); answersDiv.innerHTML = “”;quiz[current].answers.forEach(answer => { const btn = document.createElement(“button”); btn.className = “btn btn-main”; btn.innerText = answer;btn.onclick = () => { if (current === 1) { escolhaCredito = answer; } nextQuestion(); };answersDiv.appendChild(btn); });document.getElementById(“progress”).style.width = ((current / quiz.length) * 100) + “%”; }function nextQuestion() { current++; if (current < quiz.length) { loadQuestion(); } else { showResult(); } }function showResult() { document.getElementById("progress").style.width = "100%";document.getElementById("question").innerText = "🎉 Boa notícia!"; document.getElementById("subtitle").innerText = "Encontramos opções ideais para você";document.getElementById("answers").innerHTML = ` `; }function redirect() { let url = “”;if (escolhaCredito.includes(“Cartão”)) { url = “https://gastronomiaenegocios.com.br/cartoes-de-credito-como-escolher-o-melhor-para-suas-financas/”; } else if (escolhaCredito.includes(“Empréstimo”)) { url = “https://gastronomiaenegocios.com.br/emprestimos-negativados-como-sair-dessa-situacao-dificil/”; } else { url = “https://gastronomiaenegocios.com.br/como-escolher-o-cartao-certo-guia-pratico-para-suas-financas/”; }window.location.href = url; }loadQuestion();