Skip to content

Commit

Permalink
test: Adiciona testes para [Local Storage]
Browse files Browse the repository at this point in the history
  • Loading branch information
Cezarj59 committed Apr 19, 2024
1 parent 7db66f2 commit 03c6f7c
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 41 deletions.
7 changes: 7 additions & 0 deletions resultado-form.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ <h1>Resultado do Formulário</h1>
var bairro = obterParametroDaUrl('bairro');
var cidade = obterParametroDaUrl('cidade');
var complemento = obterParametroDaUrl('complemento');
var interesses = obterParametroDaUrl('checkboxesInteresses');
var observacoes = obterParametroDaUrl('observacoes');

var resultadoHtml = `
<p><strong>Tipo de Cliente:</strong> ${radiosTipoCliente}</p>
Expand All @@ -72,11 +74,16 @@ <h1>Resultado do Formulário</h1>
<p><strong>Bairro:</strong> ${bairro}</p>
<p><strong>Cidade:</strong> ${cidade}</p>
<p><strong>Complemento:</strong> ${complemento}</p>
<p><strong>Interesses:</strong> ${interesses}</p>
<p><strong>Observações:</strong> ${observacoes}</p>
`;

document.getElementById('resultado').innerHTML = resultadoHtml;
}

// Chama a função para exibir os dados quando a página for carregada
window.onload = exibirDados;

// Chama a função para exibir os dados quando a página for carregada
window.onload = exibirDados;

Expand Down
Loading

0 comments on commit 03c6f7c

Please sign in to comment.