Rwhehhehe commited on
Commit
27244c9
·
verified ·
1 Parent(s): 00e03fc

Add 3 files

Browse files
Files changed (3) hide show
  1. README.md +7 -5
  2. index.html +94 -19
  3. prompts.txt +0 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Matem Tica
3
- emoji: 🏢
4
- colorFrom: indigo
5
- colorTo: green
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: matem-tica
3
+ emoji: 🐳
4
+ colorFrom: red
5
+ colorTo: blue
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,94 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="pt-BR">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <title>Prova de Matemática - 1º Ano</title>
7
+ <style>
8
+ body { font-family: Arial, sans-serif; max-width: 600px; margin: 20px auto; padding: 10px; }
9
+ .question { margin-bottom: 20px; }
10
+ .feedback { margin-top: 5px; font-weight: bold; }
11
+ #result { font-size: 1.2em; font-weight: bold; margin-top: 30px; }
12
+ button { padding: 8px 12px; font-size: 1em; }
13
+ input[type="text"] { padding: 5px; font-size: 1em; width: 50px; }
14
+ </style>
15
+ </head>
16
+ <body>
17
+
18
+ <h1>Prova de Matemática - 1º Ano</h1>
19
+
20
+ <div id="quiz-container"></div>
21
+
22
+ <button id="submit-btn">Enviar Resposta</button>
23
+
24
+ <div id="result"></div>
25
+
26
+ <script>
27
+ const questions = [
28
+ { pergunta: "Quanto é 2 + 3?", resposta: "5" },
29
+ { pergunta: "Quanto é 4 - 1?", resposta: "3" },
30
+ { pergunta: "Quanto é 5 + 0?", resposta: "5" },
31
+ { pergunta: "Quanto é 3 + 3?", resposta: "6" },
32
+ { pergunta: "Quanto é 10 - 7?", resposta: "3" }
33
+ ];
34
+
35
+ let currentQuestion = 0;
36
+ let score = 0;
37
+
38
+ const quizContainer = document.getElementById('quiz-container');
39
+ const submitBtn = document.getElementById('submit-btn');
40
+ const resultDiv = document.getElementById('result');
41
+
42
+ function loadQuestion() {
43
+ resultDiv.textContent = '';
44
+ quizContainer.innerHTML = `
45
+ <div class="question">
46
+ <p><strong>Pergunta ${currentQuestion + 1}:</strong> ${questions[currentQuestion].pergunta}</p>
47
+ <input type="text" id="answer" autocomplete="off" />
48
+ <div id="feedback" class="feedback"></div>
49
+ </div>
50
+ `;
51
+ document.getElementById('answer').focus();
52
+ }
53
+
54
+ submitBtn.addEventListener('click', () => {
55
+ const answerInput = document.getElementById('answer');
56
+ const userAnswer = answerInput.value.trim();
57
+
58
+ if(userAnswer === "") {
59
+ alert("Por favor, responda a pergunta antes de enviar.");
60
+ return;
61
+ }
62
+
63
+ const feedbackDiv = document.getElementById('feedback');
64
+ if(userAnswer === questions[currentQuestion].resposta) {
65
+ feedbackDiv.textContent = "Certo!";
66
+ feedbackDiv.style.color = "green";
67
+ score++;
68
+ } else {
69
+ feedbackDiv.textContent = "Errado! A resposta correta é " + questions[currentQuestion].resposta;
70
+ feedbackDiv.style.color = "red";
71
+ }
72
+
73
+ submitBtn.disabled = true; // evita enviar várias vezes
74
+
75
+ // Depois de 2 segundos, vai para a próxima pergunta ou mostra o resultado
76
+ setTimeout(() => {
77
+ currentQuestion++;
78
+ if(currentQuestion < questions.length) {
79
+ loadQuestion();
80
+ submitBtn.disabled = false;
81
+ } else {
82
+ quizContainer.innerHTML = '';
83
+ submitBtn.style.display = 'none';
84
+ resultDiv.textContent = `Prova finalizada! Sua nota é ${score} de ${questions.length}.`;
85
+ }
86
+ }, 2000);
87
+ });
88
+
89
+ // Carrega a primeira pergunta quando a página abre
90
+ loadQuestion();
91
+ </script>
92
+
93
+ <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/matem-tica" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
94
+ </html>
prompts.txt ADDED
File without changes