update
This commit is contained in:
+12
-3
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user