
@@ -491,10 +510,6 @@
},
didClose: () => {
CourseNav.audioController.stopAudio();
- if (currentObjectBtn) {
- // currentObjectBtn.addClass('completed disabled');
- checkAllCompleted();
- }
},
});
}
@@ -518,7 +533,7 @@
} else if (opcion.text.toLowerCase().includes('verdadero')) {
icono = '
';
}
-
+
answersHtml += `
${icono}${opcion.text}
`;
});
@@ -550,6 +565,8 @@
correctQuestions++;
}
+ CourseNav.audioController.stopAllSoundsAndPlay(isCorrect ? good : bad);
+
Swal.fire({
target: document.getElementById('wrap-course-content'),
imageUrl: isCorrect ? 'img/good.png' : 'img/bad.png',
@@ -564,18 +581,22 @@
width: "35em",
didOpen: () => {
moveIndicator();
+ if (currentObjectBtn) {
+ currentObjectBtn.addClass(isCorrect ? 'good' : 'bad');
+ }
},
didClose: () => {
- // continuarJuego();
+ checkAllCompleted();
}
});
}
function moveIndicator() {
- const positions = ['left: 90px', 'left: 170px', 'left: 250px', 'left: 330px', 'left: 410px', 'left: 493px', 'left: 573px', 'left: 652px', 'left: 736px'];
- if (correctQuestions <= 9) {
- $('#indicador').attr('style', positions[correctQuestions - 1]);
+ const positions = ['left: 90px', 'left: 170px', 'left: 250px', 'left: 330px', 'left: 410px', 'left: 493px', 'left: 573px', 'left: 652px', 'left: 736px', 'left: 816px'];
+ if (correctQuestions > 0 && correctQuestions <= 10) {
+ const position = Math.min(correctQuestions - 1, 9);
+ $('#indicador').attr('style', positions[position]);
}
}
@@ -588,8 +609,11 @@
const porcentaje = (correctQuestions / questions.length) * 100;
const aprobado = porcentaje >= 60;
+ $('.wrap-course-content').addClass('fake2').removeClass('fake1');
+
+ CourseNav.setSlideVisited();
+
if (aprobado) {
- CourseNav.setSlideVisited();
$('#desarrollo').hide();
$('#cierre').show();
} else {
@@ -601,4 +625,4 @@
}
}
});
-
\ No newline at end of file
+
diff --git a/contenido/17.html b/contenido/17.html
index 0a4018c..81bfd36 100644
--- a/contenido/17.html
+++ b/contenido/17.html
@@ -1,6 +1,6 @@
@@ -281,7 +285,6 @@
$('.btn-comenzar').click(function (e) {
e.preventDefault();
CourseNav.soundClick();
- $('.wrap-course-content').addClass('fake1').removeClass('fake');
$('#inicio').hide();
$('#desarrollo').show();
inicializarTodasLasOpciones();
@@ -370,8 +373,8 @@
todasLasOpciones.forEach((opcion, index) => {
const $option = $(`
-
${opcion.text}
@@ -473,7 +476,7 @@
// Mostrar feedback después de un delay
setTimeout(() => {
mostrarFeedback(isCorrectForCurrentQuestion, currentQuestion);
- }, 1000);
+ }, 250);
}
function mostrarFeedback(isCorrect, pregunta) {
@@ -503,7 +506,7 @@
if (currentQuestionIndex >= questions.length) {
setTimeout(() => {
finalizarJuego();
- }, 700);
+ }, 500);
} else {
preguntasActual++;
mostrarPregunta();
@@ -522,8 +525,11 @@
const porcentaje = (preguntasCorrectas / questions.length) * 100;
const aprobado = porcentaje >= 60;
+ $('.wrap-course-content').addClass('fake1').removeClass('fake');
+
+ CourseNav.setSlideVisited();
+
if (aprobado) {
- CourseNav.setSlideVisited();
$('#desarrollo').hide();
$('#cierre').show();
} else {
@@ -539,4 +545,4 @@
preguntasMax = questions.length;
});
});
-
\ No newline at end of file
+
diff --git a/contenido/18.html b/contenido/18.html
index bfbf214..ec54991 100644
--- a/contenido/18.html
+++ b/contenido/18.html
@@ -15,6 +15,14 @@
background-attachment: fixed;
}
+ .fake2 {
+ background-image: url(img/bg03.jpg);
+ background-repeat: no-repeat;
+ background-position: center;
+ background-size: cover;
+ background-attachment: fixed;
+ }
+
.btn-comenzar {
border-radius: 20px;
border-bottom-left-radius: 0;
@@ -68,6 +76,9 @@
.btn-answer:hover .letter {
background-color: #6c9d7a;
}
+ .btn-reintentar {
+ cursor: pointer;
+ }
@@ -402,7 +413,7 @@
if (preguntasActual >= preguntasMax) {
setTimeout(() => {
finalizarJuego();
- }, 700);
+ }, 400);
} else {
mostrarPregunta();
}
@@ -420,8 +431,11 @@
const porcentaje = (preguntasCorrectas / preguntasMax) * 100;
const aprobado = porcentaje >= 60;
+ $('.wrap-course-content').addClass('fake2').removeClass('fake1');
+
+ CourseNav.setSlideVisited();
+
if (aprobado) {
- CourseNav.setSlideVisited();
$('#desarrollo').hide();
$('#cierre').show();
} else {
@@ -437,4 +451,4 @@
questions = shuffleArray(procesarPreguntas(hojaDatos));
});
});
-
\ No newline at end of file
+
diff --git a/img/08.1.png b/img/08.1.png
new file mode 100644
index 0000000..93e232b
Binary files /dev/null and b/img/08.1.png differ
diff --git a/img/08.2.png b/img/08.2.png
new file mode 100644
index 0000000..68608e3
Binary files /dev/null and b/img/08.2.png differ
diff --git a/img/08.3.png b/img/08.3.png
new file mode 100644
index 0000000..e14d990
Binary files /dev/null and b/img/08.3.png differ
diff --git a/img/08.4.png b/img/08.4.png
new file mode 100644
index 0000000..addd3b0
Binary files /dev/null and b/img/08.4.png differ
diff --git a/img/13.0.png b/img/13.0.png
new file mode 100644
index 0000000..e2695a1
Binary files /dev/null and b/img/13.0.png differ
diff --git a/img/13.1.png b/img/13.1.png
new file mode 100644
index 0000000..b0faeeb
Binary files /dev/null and b/img/13.1.png differ
diff --git a/img/13.2.png b/img/13.2.png
new file mode 100644
index 0000000..8538d11
Binary files /dev/null and b/img/13.2.png differ
diff --git a/img/13.3.png b/img/13.3.png
new file mode 100644
index 0000000..b18089e
Binary files /dev/null and b/img/13.3.png differ
diff --git a/img/13.4.png b/img/13.4.png
new file mode 100644
index 0000000..0e0ac0c
Binary files /dev/null and b/img/13.4.png differ
diff --git a/img/13.5.png b/img/13.5.png
new file mode 100644
index 0000000..0e01f53
Binary files /dev/null and b/img/13.5.png differ
diff --git a/img/14.0.png b/img/14.0.png
new file mode 100644
index 0000000..802ee2b
Binary files /dev/null and b/img/14.0.png differ
diff --git a/img/14.1.png b/img/14.1.png
new file mode 100644
index 0000000..41cc882
Binary files /dev/null and b/img/14.1.png differ
diff --git a/img/14.10.png b/img/14.10.png
new file mode 100644
index 0000000..65ea74e
Binary files /dev/null and b/img/14.10.png differ
diff --git a/img/14.11.png b/img/14.11.png
new file mode 100644
index 0000000..fb2bf3a
Binary files /dev/null and b/img/14.11.png differ
diff --git a/img/14.2.png b/img/14.2.png
new file mode 100644
index 0000000..fd7f612
Binary files /dev/null and b/img/14.2.png differ
diff --git a/img/14.3.png b/img/14.3.png
new file mode 100644
index 0000000..0864e75
Binary files /dev/null and b/img/14.3.png differ
diff --git a/img/14.4.png b/img/14.4.png
new file mode 100644
index 0000000..aeaa2e1
Binary files /dev/null and b/img/14.4.png differ
diff --git a/img/14.5.png b/img/14.5.png
new file mode 100644
index 0000000..e6a4ecb
Binary files /dev/null and b/img/14.5.png differ
diff --git a/img/14.6.png b/img/14.6.png
new file mode 100644
index 0000000..72c6aae
Binary files /dev/null and b/img/14.6.png differ
diff --git a/img/14.7.png b/img/14.7.png
new file mode 100644
index 0000000..23e2952
Binary files /dev/null and b/img/14.7.png differ
diff --git a/img/14.8.png b/img/14.8.png
new file mode 100644
index 0000000..5dec664
Binary files /dev/null and b/img/14.8.png differ
diff --git a/img/14.9.png b/img/14.9.png
new file mode 100644
index 0000000..6ce3e0a
Binary files /dev/null and b/img/14.9.png differ
diff --git a/img/15.0.png b/img/15.0.png
new file mode 100644
index 0000000..c0610c4
Binary files /dev/null and b/img/15.0.png differ
diff --git a/img/15.1.png b/img/15.1.png
new file mode 100644
index 0000000..a8a29ad
Binary files /dev/null and b/img/15.1.png differ
diff --git a/img/15.2.png b/img/15.2.png
new file mode 100644
index 0000000..083c943
Binary files /dev/null and b/img/15.2.png differ
diff --git a/img/15.3.png b/img/15.3.png
new file mode 100644
index 0000000..028ee92
Binary files /dev/null and b/img/15.3.png differ
diff --git a/img/15.4.png b/img/15.4.png
new file mode 100644
index 0000000..35df6f3
Binary files /dev/null and b/img/15.4.png differ
diff --git a/img/15.5.png b/img/15.5.png
new file mode 100644
index 0000000..5bee5b3
Binary files /dev/null and b/img/15.5.png differ
diff --git a/img/15.6.png b/img/15.6.png
new file mode 100644
index 0000000..af51019
Binary files /dev/null and b/img/15.6.png differ
diff --git a/img/15.7.png b/img/15.7.png
new file mode 100644
index 0000000..b49464b
Binary files /dev/null and b/img/15.7.png differ
diff --git a/img/15.8.png b/img/15.8.png
new file mode 100644
index 0000000..5ec1a61
Binary files /dev/null and b/img/15.8.png differ