2025-09-30 16:49:20 -06:00
< style >
. fake {
background-image : url ( img/bg04.jpg ) ;
background-repeat : no-repeat ;
background-position : center ;
background-size : cover ;
background-attachment : fixed ;
}
. fake1 {
background-image : url ( img/bg03.jpg ) ;
background-repeat : no-repeat ;
background-position : center ;
background-size : cover ;
background-attachment : fixed ;
}
. btn-comenzar {
border-radius : 20 px ;
border-bottom-left-radius : 0 ;
border-bottom-right-radius : 0 ;
cursor : pointer ;
}
. custom-grid {
overflow : hidden ;
width : 1320 px ;
height : 500 px ;
margin : 0 auto ;
}
. img-sotable {
cursor : move ;
}
. img-sotable . disabled {
pointer-events : none ;
background-color : #84a816 ;
}
< / style >
2026-06-10 23:15:23 -06:00
< div id = "inicio" class = "page-sco py-2 py-md-0 h-100" >
< div class = "container h-100" >
< div class = "row justify-content-center align-items-center h-100" >
< div class = "col-11" >
< div class = "row justify-content-center" >
2025-09-30 16:49:20 -06:00
< div class = "col-12 text-center animate__animated animate__bounceInDown" >
< div class = "position-relative d-inline-block" >
< h2 class = "text-primary mb-1 fw-bold" > Inicio en la terapia de diálisis peritoneal< / h2 >
2026-06-10 23:15:23 -06:00
< hr class = "border border-2 border-verde-oscuro hr-style my-0 mb-3 opacity-100" / >
2025-09-30 16:49:20 -06:00
< / div >
< / div >
< div class = "col-12" >
< div class = "row justify-content-center align-items-center" >
2025-10-22 09:12:21 -06:00
< div class = "col-3 text-center animate__animated animate__zoomIn" >
2026-06-10 23:15:23 -06:00
< img src = "img/04.0.png" class = "img-fluid" / >
2025-09-30 16:49:20 -06:00
< / div >
< div class = "col-6" >
< div class = "card bg-verde-claro border-0 rounded-3 p-0 bx-shadow" >
< div class = "p-3 pb-0 position-relative mb-3 w-100 animate__animated animate__flipInX" >
2026-06-10 23:15:23 -06:00
< p class = "mb-0 text-verde-oscuro" >
La diálisis peritoneal es un tratamiento que ayuda a eliminar productos de desecho y exceso de
líquidos del organismo mediante el uso del peritoneo, una membrana que recubre los órganos
abdominales y actúa como filtro natural durante el intercambio del líquido de diálisis.< sup
class = "fw-bold"
> 2< / sup
>
< / p >
<!-- <p>Su tratamiento de diálisis peritoneal (DP) equilibra líquidos y elimina compuestos de desecho al <strong class="text - primary">filtrar la sangre
2025-09-30 16:49:20 -06:00
utilizando una membrana interna llamada peritoneo</strong>.</p>
<p class="mb - 0">El peritoneo, envuelve a la mayoría de los órganos abdominales y forma un espacio interno llamado: <strong class="text - primary">cavidad
2026-06-10 23:15:23 -06:00
peritoneal.</strong></p> -->
2025-09-30 16:49:20 -06:00
< / div >
2026-06-10 23:15:23 -06:00
<!-- <div
2025-09-30 16:49:20 -06:00
class="position - relative w - 100 bg - verde - claro - 2 text - center px - 3 py - 2 mb - 3 animate__animated animate__flipInX animate__delay - 1s">
2025-10-22 09:12:21 -06:00
<p class="mb - 0 text - verde - oscuro">El peritoneo, envuelve a la mayoría de sus órganos abdominales y forma un espacio interno llamado <strong>recambio</strong>.
2026-06-10 23:15:23 -06:00
<p class="mb - 0 text - verde - oscuro">
La diálisis peritoneal es un tratamiento que ayuda a eliminar productos de desecho y exceso de líquidos del organismo mediante el uso del peritoneo, una membrana que recubre los órganos abdominales y actúa como filtro natural durante el intercambio del líquido de diálisis.<sup class="fw - bold">2</sup>
</p>
2025-09-30 16:49:20 -06:00
</p>
2026-06-10 23:15:23 -06:00
</div> -->
< div class = "position-relative w-100 text-center animate__animated animate__zoomIn animate__delay-1s" >
2025-09-30 16:49:20 -06:00
< div
2026-06-10 23:15:23 -06:00
class = "btn-comenzar bg-primary d-inline-block px-3 py-2 text-center animate__animated animate__pulse animate__infinite"
>
2025-09-30 16:49:20 -06:00
< h5 class = "text-white fw-bold mb-0" > COMENZAR ACTIVIDAD< / h5 >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
2026-06-10 23:15:23 -06:00
< div id = "desarrollo" class = "page-sco py-2 py-md-0 h-100" style = "display: none" >
< div class = "container h-100" >
< div class = "row justify-content-center align-items-center h-100" >
< div class = "col-11" id = "col-sortable" >
< div class = "row justify-content-center" >
2025-09-30 16:49:20 -06:00
< div class = "col-10 text-center" >
< div class = "position-relative d-inline-block" >
< h2 class = "text-primary mb-1 fw-bold" > Inicio en la terapia de diálisis peritoneal< / h2 >
2026-06-10 23:15:23 -06:00
< hr class = "border border-2 border-verde-oscuro hr-style my-0 mb-3 opacity-100" / >
2025-09-30 16:49:20 -06:00
< / div >
< / div >
< div class = "col-10 mb-3" >
< div class = "card bg-white border-0 rounded-3 bx-shadow py-2 px-3" >
< div class = "row justify-content-center" >
< div class = "col-12" >
< div class = "d-flex flex-row justify-content-center align-items-center gap-3" >
2026-06-10 23:15:23 -06:00
< img src = "img/book0.png" class = "img-fluid" / >
< p class = "mb-0" >
< strong > Instrucciones:< / strong > Arrastre los pasos del recambio para colocarlos en el orden
correcto.
< / p >
2025-09-30 16:49:20 -06:00
< / div >
< / div >
< / div >
< / div >
< / div >
< div class = "col-12 col-actividad" >
< div class = "custom-grid d-flex flex-row gap-3 justify-content-center align-items-center" >
< div class = "img-sotable" data-order = "0" >
2026-06-10 23:15:23 -06:00
< img src = "img/04.1.webp" class = "img-fluid" / >
2025-09-30 16:49:20 -06:00
< / div >
< div class = "img-sotable" data-order = "1" >
2026-06-10 23:15:23 -06:00
< img src = "img/04.2.webp" class = "img-fluid" / >
2025-09-30 16:49:20 -06:00
< / div >
< div class = "img-sotable" data-order = "2" >
2026-06-10 23:15:23 -06:00
< img src = "img/04.3.webp" class = "img-fluid" / >
2025-09-30 16:49:20 -06:00
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
2026-06-10 23:15:23 -06:00
< div id = "cierre" class = "page-sco py-2 py-md-0 h-100" style = "display: none" >
< div class = "container h-100" >
< div class = "row justify-content-center align-items-center h-100" >
< div class = "col-12" >
2025-09-30 16:49:20 -06:00
< div class = "row justify-content-center" >
< div class = "col-12 text-center mb-3" >
2026-06-10 23:15:23 -06:00
< img src = "img/cierre_actividad.png" class = "img-fluid" / >
2025-09-30 16:49:20 -06:00
< / div >
< div class = "col-12 mb-3 text-center" >
< div class = "position-relative d-inline-block" >
< h2 class = "text-primary mb-1 fw-bold" > Inicio en la terapia de diálisis peritoneal< / h2 >
2026-06-10 23:15:23 -06:00
< hr class = "border border-2 border-verde-oscuro hr-style my-0 opacity-100" / >
2025-09-30 16:49:20 -06:00
< / div >
< / div >
< div class = "col-12 text-center mb-3" >
< h4 class = "text-secondary fw-bold" > Ha concluido la actividad.< / h4 >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< script >
$ ( function ( ) {
"use strict" ;
2026-06-10 23:15:23 -06:00
$ ( ".wrap-course-content" ) . addClass ( "fake" ) ;
2025-09-30 16:49:20 -06:00
2026-06-10 23:15:23 -06:00
const bad = CourseNav . createSound ( "audio/feedback-incorrect.mpeg" ) ;
const good = CourseNav . createSound ( "audio/feedback-correct.mpeg" ) ;
2025-09-30 16:49:20 -06:00
2026-06-10 23:15:23 -06:00
$ ( ".btn-comenzar" ) . click ( function ( e ) {
2025-09-30 16:49:20 -06:00
e . preventDefault ( ) ;
CourseNav . soundClick ( ) ;
2026-06-10 23:15:23 -06:00
$ ( "#inicio" ) . hide ( ) ;
$ ( "#desarrollo" ) . show ( ) ;
2025-09-30 16:49:20 -06:00
} ) ;
function shuffleArray ( array ) {
let shuffled ;
do {
shuffled = [ ... array ] ;
for ( let i = shuffled . length - 1 ; i > 0 ; i -- ) {
const j = Math . floor ( Math . random ( ) * ( i + 1 ) ) ;
[ shuffled [ i ] , shuffled [ j ] ] = [ shuffled [ j ] , shuffled [ i ] ] ;
}
} while ( isInCorrectOrder ( shuffled ) ) ;
return shuffled ;
}
function isInCorrectOrder ( array ) {
2026-06-10 23:15:23 -06:00
return array . every ( ( item , index ) => parseInt ( $ ( item ) . data ( "order" ) ) === index ) ;
2025-09-30 16:49:20 -06:00
}
// Shuffle elements
2026-06-10 23:15:23 -06:00
const $sortables = $ ( ".img-sotable" ) ;
2025-09-30 16:49:20 -06:00
const shuffled = shuffleArray ( $sortables . toArray ( ) ) ;
2026-06-10 23:15:23 -06:00
$ ( ".custom-grid" ) . empty ( ) . append ( shuffled ) ;
2025-09-30 16:49:20 -06:00
// Initialize sortable
2026-06-10 23:15:23 -06:00
$ ( ".custom-grid" ) . sortable ( {
items : ".img-sotable" ,
cursor : "grabbing" ,
2025-09-30 16:49:20 -06:00
containment : "#coursenav-main-content" ,
2026-06-10 23:15:23 -06:00
tolerance : "pointer" ,
helper : "original" ,
2025-09-30 16:49:20 -06:00
scroll : false ,
start : function ( event , ui ) {
2026-06-10 23:15:23 -06:00
ui . item . css ( "z-index" , 1000 ) ;
2025-09-30 16:49:20 -06:00
} ,
drag : function ( event , ui ) {
ui . position . left = ui . position . left ;
ui . position . top = ui . position . top ;
} ,
stop : function ( event , ui ) {
2026-06-10 23:15:23 -06:00
$ ( "body" ) . css ( "overflow" , "auto" ) ;
2025-09-30 16:49:20 -06:00
} ,
update : function ( ) {
checkOrder ( ) ;
2026-06-10 23:15:23 -06:00
} ,
2025-09-30 16:49:20 -06:00
} ) ;
function checkOrder ( ) {
2026-06-10 23:15:23 -06:00
const $items = $ ( ".custom-grid .img-sotable" ) ;
2025-09-30 16:49:20 -06:00
let isCorrect = true ;
$items . each ( function ( index ) {
2026-06-10 23:15:23 -06:00
if ( parseInt ( $ ( this ) . data ( "order" ) ) !== index ) {
2025-09-30 16:49:20 -06:00
isCorrect = false ;
return false ;
}
} ) ;
if ( isCorrect ) {
CourseNav . audioController . stopAllSoundsAndPlay ( good ) ;
2026-06-10 23:15:23 -06:00
$ ( ".img-sotable" ) . addClass ( "disabled" ) ;
2025-09-30 16:49:20 -06:00
setTimeout ( ( ) => {
isCompleted ( ) ;
} , 700 ) ;
}
}
function isCompleted ( ) {
2026-06-10 23:15:23 -06:00
$ ( ".wrap-course-content" ) . addClass ( "fake2" ) . removeClass ( "fake1" ) ;
$ ( "#desarrollo" ) . hide ( ) ;
$ ( "#cierre" ) . show ( ) ;
2025-09-30 16:49:20 -06:00
CourseNav . setSlideVisited ( ) ;
}
} ) ;
< / script >