| <!DOCTYPE html> |
| <html lang="pt-BR"> |
| <head> |
| <meta charset="UTF-8" /> |
| <title>Prova de Língua Portuguesa e Matemática</title> |
| <style> |
| body { font-family: Arial, sans-serif; margin: 20px; } |
| .questao { margin-bottom: 15px; } |
| .oculto { display: none; } |
| .resultado { margin-top: 20px; font-weight: bold; } |
| </style> |
| </head> |
| <body> |
|
|
| <div id="inicio"> |
| <label>Nome do aluno: <input type="text" id="nomeAluno" /></label> |
| <button onclick="iniciarProva()">Começar Prova</button> |
| </div> |
|
|
| <form id="formulario" class="oculto"> |
| <h2>Língua Portuguesa - 1º ao 5º ano</h2> |
|
|
| |
| <div class="questao"> |
| <p>1. Qual é o plural de "flor"?</p> |
| <label><input type="radio" name="port1" value="certa" /> Flores</label><br /> |
| <label><input type="radio" name="port1" value="errada" /> Floras</label><br /> |
| <label><input type="radio" name="port1" value="nao" /> Não sei</label> |
| </div> |
|
|
| <div class="questao"> |
| <p>2. Qual palavra está correta?</p> |
| <label><input type="radio" name="port2" value="certa" /> Amigo</label><br /> |
| <label><input type="radio" name="port2" value="errada" /> Amigao</label><br /> |
| <label><input type="radio" name="port2" value="nao" /> Não sei</label> |
| </div> |
|
|
| <div class="questao"> |
| <p>3. Qual destas é uma frase?</p> |
| <label><input type="radio" name="port3" value="certa" /> O gato dorme.</label><br /> |
| <label><input type="radio" name="port3" value="errada" /> Gato feliz.</label><br /> |
| <label><input type="radio" name="port3" value="nao" /> Não sei</label> |
| </div> |
|
|
| <h2>Matemática - 1º ao 5º ano</h2> |
|
|
| |
| <div class="questao"> |
| <p>1. Quanto é 2 + 3?</p> |
| <label><input type="radio" name="mat1" value="certa" /> 5</label><br /> |
| <label><input type="radio" name="mat1" value="errada" /> 6</label><br /> |
| <label><input type="radio" name="mat1" value="nao" /> Não sei</label> |
| </div> |
|
|
| <div class="questao"> |
| <p>2. Quanto é 10 - 4?</p> |
| <label><input type="radio" name="mat2" value="certa" /> 6</label><br /> |
| <label><input type="radio" name="mat2" value="errada" /> 7</label><br /> |
| <label><input type="radio" name="mat2" value="nao" /> Não sei</label> |
| </div> |
|
|
| <div class="questao"> |
| <p>3. Quanto é 3 x 2?</p> |
| <label><input type="radio" name="mat3" value="certa" /> 6</label><br /> |
| <label><input type="radio" name="mat3" value="errada" /> 5</label><br /> |
| <label><input type="radio" name="mat3" value="nao" /> Não sei</label> |
| </div> |
|
|
| <button type="button" onclick="corrigir()">Ver Resultado</button> |
| </form> |
|
|
| <div id="resultado" class="resultado oculto"></div> |
|
|
| <script> |
| function iniciarProva() { |
| const nome = document.getElementById("nomeAluno").value.trim(); |
| if (!nome) { |
| alert("Por favor, digite o nome do aluno."); |
| return; |
| } |
| document.getElementById("inicio").classList.add("oculto"); |
| document.getElementById("formulario").classList.remove("oculto"); |
| } |
| |
| function corrigir() { |
| |
| const respostasPort = [ |
| document.querySelector('input[name="port1"]:checked')?.value, |
| document.querySelector('input[name="port2"]:checked')?.value, |
| document.querySelector('input[name="port3"]:checked')?.value |
| ]; |
| const respostasMat = [ |
| document.querySelector('input[name="mat1"]:checked')?.value, |
| document.querySelector('input[name="mat2"]:checked')?.value, |
| document.querySelector('input[name="mat3"]:checked')?.value |
| ]; |
| |
| |
| if (respostasPort.includes(undefined) || respostasMat.includes(undefined)) { |
| alert("Por favor, responda todas as perguntas ou marque 'Não sei'."); |
| return; |
| } |
| |
| |
| let pontosPort = 0; |
| for (const r of respostasPort) { |
| if (r === "certa") pontosPort++; |
| } |
| |
| let pontosMat = 0; |
| for (const r of respostasMat) { |
| if (r === "certa") pontosMat++; |
| } |
| |
| |
| const passouPort = pontosPort > 2; |
| const passouMat = pontosMat > 2; |
| |
| |
| const res = document.getElementById("resultado"); |
| res.classList.remove("oculto"); |
| |
| res.innerHTML = ` |
| Nome: <strong>${document.getElementById("nomeAluno").value}</strong><br> |
| Nota Língua Portuguesa: ${pontosPort} / 3<br> |
| Nota Matemática: ${pontosMat} / 3<br> |
| Resultado final: <span style="color: ${passouPort && passouMat ? 'green' : 'red'};"> |
| ${passouPort && passouMat ? 'APROVADO' : 'REPROVADO'} |
| </span><br> |
| Código: <strong>MIkael</strong> |
| `; |
| } |
| </script> |
|
|
| <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Rwhehhehe/gi9h" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> |
| </html> |
|
|