This commit is contained in:
2025-10-06 19:38:34 -06:00
parent d596116ab0
commit 20ad0bdb2b
43 changed files with 1444 additions and 42 deletions
+12 -3
View File
@@ -175,7 +175,7 @@
$('#desarrollo').show();
});
const imgDrop = ['img/08.0.png', 'img/08.0.png', 'img/08.0.png', 'img/08.0.png'];
const imgDrop = ['img/08.1.png', 'img/08.3.png', 'img/08.2.png', 'img/08.4.png'];
let questions;
let correctQuestions = 0;
let maxQuestions = 4;
@@ -334,9 +334,18 @@
width: "35em",
didClose: () => {
if ($('.drag-item:visible').length === 0) {
$('#desarrollo').hide();
$('#cierre').show();
const percentage = (correctCount / totalItems) * 100;
const passed = percentage >= 80;
CourseNav.setSlideVisited();
$('.wrap-course-content').addClass('fake1').removeClass('fake');
if (passed) {
$('#desarrollo').hide();
$('#cierre').show();
} else {
$('.col-reintentar').show();
$('#desarrollo').hide();
$('#cierre').show();
}
}
}
});