update
This commit is contained in:
+1
-6
@@ -89,7 +89,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="desarrollo" class='page-sco py-2 py-md-0 h-100' style="display: none;">
|
||||
<div id="desarrollo" class='page-sco py-2 py-md-0 h-100' style="display: none;overflow: hidden;">
|
||||
<div class='container h-100'>
|
||||
<div class='row justify-content-center align-items-center h-100'>
|
||||
<div class='col-11' id="dragAndDrop">
|
||||
@@ -282,7 +282,6 @@
|
||||
$('.drag-item').draggable({
|
||||
revert: 'invalid',
|
||||
revertDuration: 300,
|
||||
containment: "#desarrollo",
|
||||
cursor: "grabbing",
|
||||
start: function (event, ui) {
|
||||
$(this).css({'z-index': 1000, 'transform': 'scale(0.8)'});
|
||||
@@ -335,12 +334,8 @@
|
||||
width: "35em",
|
||||
didClose: () => {
|
||||
if ($('.drag-item:visible').length === 0) {
|
||||
const percentage = (correctCount / totalItems) * 100;
|
||||
$('#desarrollo').hide();
|
||||
$('#cierre').show();
|
||||
if (percentage < 80) {
|
||||
$('.col-reintentar').show();
|
||||
}
|
||||
CourseNav.setSlideVisited();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user