-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
160 lines (142 loc) · 6.18 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Testei - Provas Antigas</title>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" rel="stylesheet">
<!-- Include Choices.js CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/choices.js/public/assets/styles/choices.min.css" />
<!-- Include Choices.js JavaScript -->
<script src="https://cdn.jsdelivr.net/npm/choices.js/public/assets/scripts/choices.min.js"></script>
<link rel="stylesheet" href="css/styles.css">
<style>
/* Custom CSS for the Timer */
.timer-container {
position: fixed;
bottom: 0;
width: 100%;
background-color: #f8f9fa;
box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.1);
padding: 15px 0;
display: flex;
justify-content: center;
align-items: center;
display: none;
/* Timer is hidden initially */
}
.timer-buttons {
display: flex;
justify-content: center;
align-items: center;
}
.timer-display {
font-size: 24px;
font-weight: bold;
margin-right: 20px;
}
.timer-buttons button {
border-radius: 50%;
width: 50px;
height: 50px;
border: none;
margin: 0 10px;
font-size: 20px;
cursor: pointer;
background-color: #007bff;
color: white;
transition: background-color 0.3s;
}
.timer-buttons button:hover {
background-color: #0056b3;
}
</style>
</head>
<body>
<!-- Navbar com controles de Timer -->
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container-fluid">
<a class="navbar-brand" href="#">Testei</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<!-- Other items in the navbar can be added here -->
</ul>
<!-- Timer toggle button aligned to the right -->
<ul class="navbar-nav ms-auto mb-2 mb-lg-0">
<li class="nav-item">
<button id="toggle-timer-bar" class="btn btn-secondary"
onclick="toggleTimerBar()">Mostrar/Ocultar Timer</button>
</li>
</ul>
</div>
</div>
</nav>
<!-- Main Content -->
<div class="container-fluid mt-4">
<div class="row my-4">
<div class="col-md-4 offset-md-4 text-center">
<div class="col-md-4 offset-md-4 text-center">
<select id="test" class="form-select" placeholder="-- Selecione uma prova --">
<option value="" disabled selected>-- Selecione uma prova --</option>
</select>
</div>
</div>
</div>
<!-- Visualizador de PDF e Cartão de Respostas lado a lado -->
<div class="row">
<!-- Visualizador de PDF (Redimensionável, 75% da largura) -->
<div class="col-md-9">
<div class="border p-3">
<iframe id="pdf-frame" src="" width="100%" height="700px"></iframe>
</div>
</div>
<!-- Cartão de Respostas (25% da largura, com rolagem independente) -->
<div class="col-md-3">
<div id="score-card" class="border p-3" style="height: 700px; overflow-y: auto;">
<h3 class="mb-3">Responda as perguntas:</h3>
<form id="questions-form" class="tighter-form">
<!-- As perguntas serão geradas dinamicamente aqui -->
</form>
<button id="calculate-score" class="btn btn-primary mt-3 w-100" onclick="calculateScore()">Calcular
Nota</button>
<button id="download-score" class="btn btn-secondary mt-3 w-100" onclick="downloadScore()">Baixar
Resultado</button>
<div id="score-output" class="mt-3"></div>
</div>
</div>
</div>
</div>
<!-- Timer Container at the Bottom -->
<div id="timer-bar" class="timer-container">
<div class="timer-buttons">
<span id="timer-display" class="timer-display">00:00:00</span>
<button id="play-pause-btn" onclick="togglePlayPause()">
<i id="play-pause-icon" class="fas fa-play"></i>
</button>
<button onclick="resetTimer()">
<i class="fas fa-undo"></i>
</button>
</div>
</div>
<!-- Footer com o link para o GitHub -->
<footer class="footer mt-5">
<div class="container text-center">
<p class="text-muted">Livre e gratuito. Feito com carinho por <a href="https://github.com/lubianat/testei"
target="_blank">@lubianat</a>.</p>
</div>
</footer>
<!-- Bootstrap JS e dependências -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/js/all.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf-autotable/3.5.25/jspdf.plugin.autotable.min.js"></script>
<script src="js/script.js"></script>
</body>
</html>