-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
19 lines (17 loc) · 771 Bytes
/
script.js
File metadata and controls
19 lines (17 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
function validarFormulario() {
const nome = document.getElementById("nome").value;
const altura = document.getElementById("altura").value;
const peso = document.getElementById("peso").value;
const atividade = document.getElementById("atividade").value;
const mensagemErro = document.getElementById("mensagemErro");
if (!nome || !altura || !peso || !atividade) {
mensagemErro.textContent = "Por favor, preencha todos os campos.";
} else {
mensagemErro.textContent = "";
document.getElementById("loginScreen").style.display = "none";
document.getElementById("resultScreen").style.display = "flex";
}
}
function acessarReceitas() {
window.location.href = "pagina-receitas.html"; // A nova página que você vai criar
}