-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
93 lines (80 loc) · 3.17 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Teste de Visão Online</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.9.2/html2pdf.bundle.min.js"></script>
</head>
<body>
<div class="container">
<h1>Teste de Visão Online</h1>
<p id="instructions">Digite a letra que você vê e escolha a cor ao lado:</p>
<div class="test-area">
<div id="letter" class="letter">A</div>
<div class="color-selection">
<label>
<input type="radio" name="color" value="red"> Vermelho
</label>
<label>
<input type="radio" name="color" value="yellow"> Amarelo
</label>
<label>
<input type="radio" name="color" value="green"> Verde
</label>
</div>
</div>
<input type="text" id="userInput" placeholder="Digite a letra" maxlength="1">
<div class="button-area">
<button onclick="submitAnswer()">Submeter</button>
<button onclick="nextLetter()">Próxima Letra</button>
</div>
<p id="feedback"></p>
<div class="settings">
<div class="level">
<label for="difficulty">Selecione a dificuldade:</label>
<select id="difficulty" onchange="setDifficulty()">
<option value="easy">Fácil</option>
<option value="medium">Médio</option>
<option value="hard">Difícil</option>
<option value="veryHard">Muito Difícil</option>
</select>
</div>
<div class="mode">
<label for="mode">Modo:</label>
<select id="mode" onchange="setMode()">
<option value="practice">Treinamento</option>
<option value="timed">Cronometrado</option>
</select>
</div>
<div class="time">
<label for="timeSelect">Tempo por letra (s):</label>
<input type="range" id="timeSelect" min="10" max="20" value="10" onchange="updateTimeDisplay()">
<span id="timeDisplay">10s</span>
</div>
</div>
<p id="timer">Tempo restante: 10s</p>
<p id="score">Pontuação: 0</p>
<div class="summary" style="display: none;">
<h3>Resumo Final</h3>
<p id="correctAnswers">Respostas Corretas: 0</p>
<p id="incorrectAnswers">Respostas Incorretas: 0</p>
<button onclick="restartTest()">Reiniciar Teste</button>
</div>
<div class="share-buttons">
<h3>Compartilhe:</h3>
<button onclick="shareOnFacebook()"><i class="fab fa-facebook"></i> Facebook</button>
<button onclick="shareOnTwitter()"><i class="fab fa-twitter"></i> Twitter</button>
<button onclick="shareOnWhatsApp()"><i class="fab fa-whatsapp"></i> WhatsApp</button>
</div>
<div class="pdf-button">
<button onclick="saveAsPDF()"><i class="fas fa-file-pdf"></i> Salvar como PDF</button>
</div>
<audio id="correctSound" src="correct.mp3"></audio>
<audio id="incorrectSound" src="incorrect.mp3"></audio>
</div>
<script src="script.js" defer></script>
</body>
</html>