Baixe o app para aproveitar ainda mais
Esta é uma pré-visualização de arquivo. Entre para ver o arquivo original
trabalho4/css/estilo.css label { color: black; width: 15%; font-weight: arial; font-size: 100%; } div { margin: 0% 10% 0% 10%; border-width: 40%; background-color: lightgrey; padding: 5%; } #fundo { border-width: 100%; border-style: outset; border-color: darkgrey; color: darkgrey; padding: 1%; border-bottom-width: 0px; border-top-width: 0; border-right-width: 0px; border-left-width: 0px; } .linha1 { width: 100%; border-radius: 9px; color: blue; } .nasc { width: 20%; border-radius: 9px; } #sexo { width: 140%; font-size: 120%; color: blue; } #estadocivil { width: 40%; font-size: 120%; border-radius: 15%; color: blue; } input { font-size: 100%; color: blue; border-radius: 5px; } body { background-color: lightgrey; background-color: white; box-sizing: 50%; } .interesse { font-size: 120%; color: blue; } #botao { font-size: 80%; border: center; width: 15%; color: red; padding: 1.5%; background-color: rgb(23, 0, 128); } header { text-align: center; background-color: rgba(228, 173, 230, 0.856); position: fixed; top: 0; left: 0; width: 100%; font-size: 240%; } footer { text-align: center; background-color: rgb(110, 108, 108); position: center; bottom: 50%; left: 100%; width: 100%; font-size: 150%; border-style: ; border-color: rgb(0, 128, 100); } trabalho4/debug.log [0606/152751.041:ERROR:crash_report_database_win.cc(429)] unexpected header trabalho4/index.html FICHA DE CADASTRO Nome: Email: Data de Nascimento: / / Estado Civil: Solteiro(a) Casado(a) Outros Sexo: MasculinoFeminino áreas de Interesse: AnÁlise Banco de dados Desenvolvimento Engenharia de software Redes de computadores trabalho4/js/main.js function enviar() { var hoje = new Date(); var dia1 = hoje.getDate(); var mes1 = hoje.getMonth() + 1; var ano1 = hoje.getFullYear(); var email = document.formulario.email.value; var estadocivil = document.formulario.estadocivil.value; var nome = document.formulario.nome.value; var dia = document.formulario.dia.value; var mes = document.formulario.mes.value; var ano = document.formulario.ano.value; var sexo = document.formulario.sexo.value; var frase1 = ""; for (i = 0; i < 10; i++) { i++; var c = document.getElementById("c" + i); var texto = document.getElementById("c" + i).value; var frase = ", " + texto; if (c.checked == true) { if (frase1.length < 1) { var frase1 = texto; } else { var frase1 = frase1 + frase; } } } if (frase1.length < 1) { var frase1 = "NENHUM INTERESSE NAS ÁREAS DISPONÍVEIS"; } var validaemail = false; var validanome = false; var validanascimento = false; var validaidade = false; if (nome == "") { alert("Insira seu Nome Completo!"); document.formulario.nome.focus(); return false; } if (nome.length < 15) { alert("por favor seu nome completo!!!"); document.formulario.nome.focus(); return false; } if (isNaN(nome) == true) { validanome = true; } if (email.indexOf("@") > 0 && email.indexOf(".") > 0 && email.length > 9) { document.formulario.dia.focus(); validaemail = true; } else { alert("Insira um Email Válido!"); document.formulario.email.focus(); return false; } if (isNaN(dia) == true || isNaN(mes) == true || isNaN(ano) == true) { alert("Apenas Números nos Campos de Data!"); document.formulario.dia.focus(); return false; } if (isNaN(dia) == false && isNaN(mes) == false && isNaN(ano) == false) { if (dia < 1 || dia > 31) { alert("A Dia é Inválido!"); document.formulario.dia.focus(); return false; } if (dia.length == 1) { var dia = "0" + dia; } if (mes < 1 || mes > 12 || mes.length > 2) { alert("O Mês é Inválido!"); document.formulario.mes.focus(); return false; } if (mes.length == 1) { var mes = "0" + mes; } if (mes == "04" || mes == "06" || mes == "09" || mes == "11") { if (dia > 30) { alert("Esse Mês Vai só até o Dia 30. "); document.formulario.mes.focus(); return false; } } if (mes == "02") { if (dia > 29) { alert("Esse Mês Vai só até o Dia 29*. \n *Anos Bissextos"); document.formulario.mes.focus(); return false; } } if (ano < 1920 || ano > 2010) { alert("O ano tem que ser igual ou maior que 1920 e menos que 2010!"); document.formulario.ano.focus(); return false; } } validanascimento = true; var datanascimento = dia.toString() + "/" + mes.toString() + "/" + ano.toString(); if (estadocivil == "") { alert("Escolha um Estado Civil"); document.formulario.estadocivil.focus(); return false; } var idade = ano1 - ano; var datahj = mes1.toString() + dia1.toString(); var datansc = mes.toString() + dia.toString(); var concluido = parseInt(datahj - datansc); if (concluido < 0) { idade-- alert("sua idade hoje é " + idade + " Anos"); } else { alert("você já fez \n Você Fez " + idade + " Anos!"); } if (idade < 16 && estadocivil == "SOLTEIRO") { alert("\nPor Você ter Apenas " + idade + " Anos, \n\nPara estado civil de SOLTEIRO é a partir de 16 anos ;"); document.formulario.estadocivil.focus(); return false; } else { validaidade = true; } if (validanome == true && validaemail == true && validanascimento == true && validaidade == true) { alert("Parabéns! " + "Abaixo segue o Resumo dos seus dados: \n NOME: " + nome + "\n SEXO: " + sexo + "\n EMAIL: " + email + "\n DATA NASCIMENTO: " + datanascimento + "\n IDADE: " + idade + "\n ESTADO CIVIL: " + estadocivil + "\n\n ÁREAS DE INTERESSE:\n\n " + frase1 + "\n\n Seus dados foram enviados com sucesso!"); return true; } }
Compartilhar