update
This commit is contained in:
@@ -404,7 +404,7 @@
|
||||
<div class="row align-items-center justify-content-center">
|
||||
<div class="col-12 col-md-3 text-center mb-3 mb-md-0"><img src="img/actividad/medico.png" class="img-fluid animate__animated animate__flipInY" alt=""></div>
|
||||
<div class="col-12 col-md-9 text-center"><div class="w-100 pregunta bubble">${questionData.text}</div></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-xl-5 animate__animated animate__fadeInLeft">
|
||||
<div class="card glass border-0 rounded-15 shadow option-btn cursor h-100 p-1 p-md-3" data-correct="${questionData.options[0].isCorrect}">
|
||||
@@ -441,8 +441,10 @@
|
||||
allowOutsideClick: false,
|
||||
allowEscapeKey: false,
|
||||
focusConfirm: false,
|
||||
target: document.getElementById('coursenav-main-content'),
|
||||
target: "body",
|
||||
didOpen: () => {
|
||||
document.body.style.paddingRight = '';
|
||||
document.body.classList.remove('swal2-height-auto');
|
||||
const swalContent = Swal.getHtmlContainer(); // Obtiene el contenedor HTML actual de Swal
|
||||
// Eliminar cualquier controlador anterior para evitar duplicados
|
||||
$(swalContent)
|
||||
@@ -500,11 +502,15 @@
|
||||
confirmButtonText: "Cerrar",
|
||||
backdrop: "rgba(14, 28, 98, .9)",
|
||||
showCloseButton: false,
|
||||
target: document.getElementById('coursenav-main-content'),
|
||||
target: "body",
|
||||
customClass: {
|
||||
popup: 'w-32em pop-retro',
|
||||
confirmButton: 'btn btn-begin text-white fw-bold py-1 animate__animated animate__pulse animate__infinite'
|
||||
},
|
||||
didOpen: () => {
|
||||
document.body.style.paddingRight = '';
|
||||
document.body.classList.remove('swal2-height-auto');
|
||||
},
|
||||
}).then(() => {
|
||||
updateVisualFeedback(isCorrect); // Actualiza visualización
|
||||
quizManager.answerCurrentQuestion(isCorrect); // Registra respuesta
|
||||
@@ -548,4 +554,4 @@
|
||||
}
|
||||
|
||||
});
|
||||
</script>
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user