Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b4f834f46e | |||
| dc52a83add | |||
| d3a6461a3a | |||
| 1bb1258c16 | |||
| c06fcdc411 | |||
| 78dc574de5 | |||
| 0fdda4320f | |||
| b234ae0d22 | |||
| 4bc2a47a96 | |||
| 07100d82de | |||
| a57cba5f67 |
@@ -0,0 +1,198 @@
|
|||||||
|
{
|
||||||
|
"useCourseNav.getStudentName": {
|
||||||
|
"prefix": "cn.getStudentName",
|
||||||
|
"body": [
|
||||||
|
"CourseNav.getStudentName(${1})"
|
||||||
|
],
|
||||||
|
"description": "CourseNav: getStudentName"
|
||||||
|
},
|
||||||
|
"useCourseNav.getLessonLocation": {
|
||||||
|
"prefix": "cn.getLessonLocation",
|
||||||
|
"body": [
|
||||||
|
"CourseNav.getLessonLocation(${1})"
|
||||||
|
],
|
||||||
|
"description": "CourseNav: getLessonLocation"
|
||||||
|
},
|
||||||
|
"useCourseNav.setLessonLocation": {
|
||||||
|
"prefix": "cn.setLessonLocation",
|
||||||
|
"body": [
|
||||||
|
"CourseNav.setLessonLocation(${1})"
|
||||||
|
],
|
||||||
|
"description": "CourseNav: setLessonLocation"
|
||||||
|
},
|
||||||
|
"useCourseNav.getLessonStatus": {
|
||||||
|
"prefix": "cn.getLessonStatus",
|
||||||
|
"body": [
|
||||||
|
"CourseNav.getLessonStatus(${1})"
|
||||||
|
],
|
||||||
|
"description": "CourseNav: getLessonStatus"
|
||||||
|
},
|
||||||
|
"useCourseNav.setLessonStatus": {
|
||||||
|
"prefix": "cn.setLessonStatus",
|
||||||
|
"body": [
|
||||||
|
"CourseNav.setLessonStatus(${1})"
|
||||||
|
],
|
||||||
|
"description": "CourseNav: setLessonStatus"
|
||||||
|
},
|
||||||
|
"useCourseNav.getScore": {
|
||||||
|
"prefix": "cn.getScore",
|
||||||
|
"body": [
|
||||||
|
"CourseNav.getScore(${1})"
|
||||||
|
],
|
||||||
|
"description": "CourseNav: getScore"
|
||||||
|
},
|
||||||
|
"useCourseNav.setScore": {
|
||||||
|
"prefix": "cn.setScore",
|
||||||
|
"body": [
|
||||||
|
"CourseNav.setScore(${1})"
|
||||||
|
],
|
||||||
|
"description": "CourseNav: setScore"
|
||||||
|
},
|
||||||
|
"useCourseNav.getSuspendData": {
|
||||||
|
"prefix": "cn.getSuspendData",
|
||||||
|
"body": [
|
||||||
|
"CourseNav.getSuspendData(${1})"
|
||||||
|
],
|
||||||
|
"description": "CourseNav: getSuspendData"
|
||||||
|
},
|
||||||
|
"useCourseNav.setSuspendData": {
|
||||||
|
"prefix": "cn.setSuspendData",
|
||||||
|
"body": [
|
||||||
|
"CourseNav.setSuspendData(${1})"
|
||||||
|
],
|
||||||
|
"description": "CourseNav: setSuspendData"
|
||||||
|
},
|
||||||
|
"useCourseNav.createSound": {
|
||||||
|
"prefix": "cn.createSound",
|
||||||
|
"body": [
|
||||||
|
"CourseNav.createSound(${1})"
|
||||||
|
],
|
||||||
|
"description": "CourseNav: createSound"
|
||||||
|
},
|
||||||
|
"useCourseNav.setSlideVisited": {
|
||||||
|
"prefix": "cn.setSlideVisited",
|
||||||
|
"body": [
|
||||||
|
"CourseNav.setSlideVisited(${1})"
|
||||||
|
],
|
||||||
|
"description": "CourseNav: setSlideVisited"
|
||||||
|
},
|
||||||
|
"useCourseNav.soundClick": {
|
||||||
|
"prefix": "cn.soundClick",
|
||||||
|
"body": [
|
||||||
|
"CourseNav.soundClick(${1})"
|
||||||
|
],
|
||||||
|
"description": "CourseNav: soundClick"
|
||||||
|
},
|
||||||
|
"useCourseNav.isVisited": {
|
||||||
|
"prefix": "cn.isVisited",
|
||||||
|
"body": [
|
||||||
|
"CourseNav.isVisited(${1})"
|
||||||
|
],
|
||||||
|
"description": "CourseNav: isVisited"
|
||||||
|
},
|
||||||
|
"useCourseNav.nextSlide": {
|
||||||
|
"prefix": "cn.nextSlide",
|
||||||
|
"body": [
|
||||||
|
"CourseNav.nextSlide(${1})"
|
||||||
|
],
|
||||||
|
"description": "CourseNav: nextSlide"
|
||||||
|
},
|
||||||
|
"useCourseNav.save": {
|
||||||
|
"prefix": "cn.save",
|
||||||
|
"body": [
|
||||||
|
"CourseNav.save(${1})"
|
||||||
|
],
|
||||||
|
"description": "CourseNav: save"
|
||||||
|
},
|
||||||
|
"useCourseNav.reload": {
|
||||||
|
"prefix": "cn.reload",
|
||||||
|
"body": [
|
||||||
|
"CourseNav.reload(${1})"
|
||||||
|
],
|
||||||
|
"description": "CourseNav: reload"
|
||||||
|
},
|
||||||
|
"useCourseNav.gotoSlide": {
|
||||||
|
"prefix": "cn.gotoSlide",
|
||||||
|
"body": [
|
||||||
|
"CourseNav.gotoSlide(${1})"
|
||||||
|
],
|
||||||
|
"description": "CourseNav: gotoSlide"
|
||||||
|
},
|
||||||
|
"useCourseNav.isCompletedSlideIndex": {
|
||||||
|
"prefix": "cn.isCompletedSlideIndex",
|
||||||
|
"body": [
|
||||||
|
"CourseNav.isCompletedSlideIndex(${1})"
|
||||||
|
],
|
||||||
|
"description": "CourseNav: isCompletedSlideIndex"
|
||||||
|
},
|
||||||
|
"useCourseNav.getCurrentSlide": {
|
||||||
|
"prefix": "cn.getCurrentSlide",
|
||||||
|
"body": [
|
||||||
|
"CourseNav.getCurrentSlide(${1})"
|
||||||
|
],
|
||||||
|
"description": "CourseNav: getCurrentSlide"
|
||||||
|
},
|
||||||
|
"useCourseNav.prevSlide": {
|
||||||
|
"prefix": "cn.prevSlide",
|
||||||
|
"body": [
|
||||||
|
"CourseNav.prevSlide(${1})"
|
||||||
|
],
|
||||||
|
"description": "CourseNav: prevSlide"
|
||||||
|
},
|
||||||
|
"useCourseNav.resetCourse": {
|
||||||
|
"prefix": "cn.resetCourse",
|
||||||
|
"body": [
|
||||||
|
"CourseNav.resetCourse(${1})"
|
||||||
|
],
|
||||||
|
"description": "CourseNav: resetCourse"
|
||||||
|
},
|
||||||
|
"useCourseNav.adjustMainContentHeight": {
|
||||||
|
"prefix": "cn.adjustMainContentHeight",
|
||||||
|
"body": [
|
||||||
|
"CourseNav.adjustMainContentHeight(${1})"
|
||||||
|
],
|
||||||
|
"description": "CourseNav: adjustMainContentHeight"
|
||||||
|
},
|
||||||
|
"useCourseNav.markSlidesAsVisited": {
|
||||||
|
"prefix": "cn.markSlidesAsVisited",
|
||||||
|
"body": [
|
||||||
|
"CourseNav.markSlidesAsVisited(${1})"
|
||||||
|
],
|
||||||
|
"description": "CourseNav: markSlidesAsVisited"
|
||||||
|
},
|
||||||
|
"useCourseNav.updateProgressBar": {
|
||||||
|
"prefix": "cn.updateProgressBar",
|
||||||
|
"body": [
|
||||||
|
"CourseNav.updateProgressBar(${1})"
|
||||||
|
],
|
||||||
|
"description": "CourseNav: updateProgressBar"
|
||||||
|
},
|
||||||
|
"useCourseNav.completarLeccion": {
|
||||||
|
"prefix": "cn.completarLeccion",
|
||||||
|
"body": [
|
||||||
|
"CourseNav.completarLeccion(${1})"
|
||||||
|
],
|
||||||
|
"description": "CourseNav: completarLeccion"
|
||||||
|
},
|
||||||
|
"useCourseNav.audioController": {
|
||||||
|
"prefix": "cn.audio",
|
||||||
|
"body": [
|
||||||
|
"CourseNav.audioController"
|
||||||
|
],
|
||||||
|
"description": "CourseNav: controlador de audio"
|
||||||
|
},
|
||||||
|
"useCourseNav.getScormData": {
|
||||||
|
"prefix": "cn.getScormData",
|
||||||
|
"body": [
|
||||||
|
"CourseNav.getScormData('${1:key}')"
|
||||||
|
],
|
||||||
|
"description": "CourseNav: Obtiene valor de SCORM/sessionStorage"
|
||||||
|
},
|
||||||
|
"useCourseNav.setScormData": {
|
||||||
|
"prefix": "cn.setScormData",
|
||||||
|
"body": [
|
||||||
|
"CourseNav.setScormData('${1:key}', ${2:value})"
|
||||||
|
],
|
||||||
|
"description": "CourseNav: Guarda valor en SCORM/sessionStorage"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,61 @@
|
|||||||
|
{
|
||||||
|
"🎵 Reproducir sonido con createSound": {
|
||||||
|
"prefix": "howl-play",
|
||||||
|
"body": [
|
||||||
|
"const sonido = createSound('audio/$1.mp3');",
|
||||||
|
"stopAllSoundsAndPlay(sonido);"
|
||||||
|
],
|
||||||
|
"description": "Crea y reproduce un sonido con utilidades Howler"
|
||||||
|
},
|
||||||
|
|
||||||
|
"🔇 Silenciar todos los sonidos": {
|
||||||
|
"prefix": "howl-mute-on",
|
||||||
|
"body": [
|
||||||
|
"setGlobalMute(true);"
|
||||||
|
],
|
||||||
|
"description": "Silencia todos los sonidos con Howler"
|
||||||
|
},
|
||||||
|
|
||||||
|
"🔊 Activar todos los sonidos": {
|
||||||
|
"prefix": "howl-mute-off",
|
||||||
|
"body": [
|
||||||
|
"setGlobalMute(false);"
|
||||||
|
],
|
||||||
|
"description": "Activa todos los sonidos con Howler"
|
||||||
|
},
|
||||||
|
|
||||||
|
"🔁 Detener todos los sonidos": {
|
||||||
|
"prefix": "howl-stop",
|
||||||
|
"body": [
|
||||||
|
"stopAllSounds();"
|
||||||
|
],
|
||||||
|
"description": "Detiene todos los sonidos activos"
|
||||||
|
},
|
||||||
|
|
||||||
|
"🎚️ Ajustar volumen global": {
|
||||||
|
"prefix": "howl-volume",
|
||||||
|
"body": [
|
||||||
|
"setGlobalVolume($1); // valor entre 0.0 y 1.0"
|
||||||
|
],
|
||||||
|
"description": "Controlar volumen global con Howler"
|
||||||
|
},
|
||||||
|
|
||||||
|
"🕵️ Verificar si un sonido está reproduciéndose": {
|
||||||
|
"prefix": "howl-is-playing",
|
||||||
|
"body": [
|
||||||
|
"if (isPlaying(sonido)) {",
|
||||||
|
" console.log('Está reproduciendo');",
|
||||||
|
"} else {",
|
||||||
|
" console.log('No está sonando');",
|
||||||
|
"}"
|
||||||
|
],
|
||||||
|
"description": "Verifica si un sonido está activo"
|
||||||
|
},
|
||||||
|
"🎵 crear sonido con createSound": {
|
||||||
|
"prefix": "newsound",
|
||||||
|
"body": [
|
||||||
|
"createSound('audio/$1.mp3');",
|
||||||
|
],
|
||||||
|
"description": "Crea un sonido con utilidades Howler"
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -0,0 +1,111 @@
|
|||||||
|
{
|
||||||
|
// Place your curso workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
|
||||||
|
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
|
||||||
|
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
|
||||||
|
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
|
||||||
|
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
|
||||||
|
// Placeholders with the same ids are connected.
|
||||||
|
// Example:
|
||||||
|
// "Print to console": {
|
||||||
|
// "scope": "javascript,typescript",
|
||||||
|
// "prefix": "log",
|
||||||
|
// "body": [
|
||||||
|
// "console.log('$1');",
|
||||||
|
// "$2"
|
||||||
|
// ],
|
||||||
|
// "description": "Log output to console"
|
||||||
|
// }
|
||||||
|
"Nuevo sco": {
|
||||||
|
"scope": "html",
|
||||||
|
"prefix": "sco",
|
||||||
|
"body": [
|
||||||
|
"<style></style>",
|
||||||
|
"<section class='page-sco py-md-4 py-2'></section>",
|
||||||
|
"<script>",
|
||||||
|
" $(function () {",
|
||||||
|
" 'use strict';",
|
||||||
|
" });",
|
||||||
|
"</script>",
|
||||||
|
],
|
||||||
|
"description": "sco"
|
||||||
|
},
|
||||||
|
"Mitad bs5": {
|
||||||
|
"scope": "html",
|
||||||
|
"prefix": "md",
|
||||||
|
"body": [
|
||||||
|
"<div class=\"container-xxl\">",
|
||||||
|
" <div class=\"row justify-content-center\">",
|
||||||
|
" <div class=\"col-12 col-md-6\"></div>",
|
||||||
|
" <div class=\"col-12 col-md-6\"></div>",
|
||||||
|
" </div>",
|
||||||
|
"</div>"
|
||||||
|
],
|
||||||
|
"description": "mitad"
|
||||||
|
},
|
||||||
|
"Mitad cols": {
|
||||||
|
"scope": "html",
|
||||||
|
"prefix": "mcol",
|
||||||
|
"body": [
|
||||||
|
|
||||||
|
" <div class=\"row justify-content-center\">",
|
||||||
|
" <div class=\"col-12 col-md-6\"></div>",
|
||||||
|
" <div class=\"col-12 col-md-6\"></div>",
|
||||||
|
" </div>"
|
||||||
|
],
|
||||||
|
"description": "mitad"
|
||||||
|
},
|
||||||
|
"bs5 sm (min-width: 576px)": {
|
||||||
|
"prefix": "bs5mq-sm",
|
||||||
|
"body": [
|
||||||
|
"@media (min-width: 576px) {",
|
||||||
|
" $0",
|
||||||
|
"}"
|
||||||
|
],
|
||||||
|
"description": "Bootstrap 5 media query sm (≥576px)"
|
||||||
|
},
|
||||||
|
"bs5 md (min-width: 768px)": {
|
||||||
|
"prefix": "bs5mq-md",
|
||||||
|
"body": [
|
||||||
|
"@media (min-width: 768px) {",
|
||||||
|
" $0",
|
||||||
|
"}"
|
||||||
|
],
|
||||||
|
"description": "Bootstrap 5 media query md (≥768px)"
|
||||||
|
},
|
||||||
|
"bs5 lg (min-width: 992px)": {
|
||||||
|
"prefix": "bs5mq-lg",
|
||||||
|
"body": [
|
||||||
|
"@media (min-width: 992px) {",
|
||||||
|
" $0",
|
||||||
|
"}"
|
||||||
|
],
|
||||||
|
"description": "Bootstrap 5 media query lg (≥992px)"
|
||||||
|
},
|
||||||
|
"bs5 xl (min-width: 1200px)": {
|
||||||
|
"prefix": "bs5mq-xl",
|
||||||
|
"body": [
|
||||||
|
"@media (min-width: 1200px) {",
|
||||||
|
" $0",
|
||||||
|
"}"
|
||||||
|
],
|
||||||
|
"description": "Bootstrap 5 media query xl (≥1200px)"
|
||||||
|
},
|
||||||
|
"bs5 xxl (min-width: 1400px)": {
|
||||||
|
"prefix": "bs5mq-xxl",
|
||||||
|
"body": [
|
||||||
|
"@media (min-width: 1400px) {",
|
||||||
|
" $0",
|
||||||
|
"}"
|
||||||
|
],
|
||||||
|
"description": "Bootstrap 5 media query xxl (≥1400px)"
|
||||||
|
},
|
||||||
|
"bs5 card simple":{
|
||||||
|
"prefix": "bs5card",
|
||||||
|
"body": [
|
||||||
|
"<div class=\"card custom-card\">",
|
||||||
|
" <div class=\"card-body\"></div>",
|
||||||
|
"</div>",
|
||||||
|
],
|
||||||
|
"description": "Card simple"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
"topics": [
|
"topics": [
|
||||||
{
|
{
|
||||||
"title": "Portada",
|
"title": "Portada",
|
||||||
"content": "contenido/01.html"
|
"content": "contenido/ruleta.html"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Portada",
|
"title": "Portada",
|
||||||
@@ -23,6 +23,42 @@
|
|||||||
{
|
{
|
||||||
"title": "Navegación",
|
"title": "Navegación",
|
||||||
"content": "contenido/05.html"
|
"content": "contenido/05.html"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Navegación",
|
||||||
|
"content": "contenido/06.html"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Navegación",
|
||||||
|
"content": "contenido/07.html"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Navegación",
|
||||||
|
"content": "contenido/08.html"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Navegación",
|
||||||
|
"content": "contenido/09.html"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Navegación",
|
||||||
|
"content": "contenido/10.html"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Navegación",
|
||||||
|
"content": "contenido/11.html"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Navegación",
|
||||||
|
"content": "contenido/12.html"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Navegación",
|
||||||
|
"content": "contenido/13.html"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Navegación",
|
||||||
|
"content": "contenido/14.html"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -137,7 +137,7 @@
|
|||||||
<div class="col-3">
|
<div class="col-3">
|
||||||
<img src="img/2.2.png" alt="Riñones" class="img-fluid">
|
<img src="img/2.2.png" alt="Riñones" class="img-fluid">
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xl-5 col-8">
|
<div class="col-6">
|
||||||
<div class="main-video bg-primary rounded">
|
<div class="main-video bg-primary rounded">
|
||||||
<div
|
<div
|
||||||
class="video-custom rounded overflow-hidden border-0 border-primary shadow-sm position-relative">
|
class="video-custom rounded overflow-hidden border-0 border-primary shadow-sm position-relative">
|
||||||
@@ -176,7 +176,7 @@
|
|||||||
<script>
|
<script>
|
||||||
$(function () {
|
$(function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
$('body').addClass('fake');
|
$('.wrap-course-content').addClass('fake');
|
||||||
});
|
});
|
||||||
|
|
||||||
// Solución definitiva al error de declaración duplicada
|
// Solución definitiva al error de declaración duplicada
|
||||||
@@ -214,6 +214,7 @@
|
|||||||
videoElement.addEventListener('ended', function () {
|
videoElement.addEventListener('ended', function () {
|
||||||
playPauseButton.innerHTML = playIconHTML;
|
playPauseButton.innerHTML = playIconHTML;
|
||||||
videoSeekBar.value = 0;
|
videoSeekBar.value = 0;
|
||||||
|
CourseNav.setSlideVisited();
|
||||||
});
|
});
|
||||||
|
|
||||||
// Mute/Unmute
|
// Mute/Unmute
|
||||||
|
|||||||
@@ -114,7 +114,7 @@
|
|||||||
<script>
|
<script>
|
||||||
$(function () {
|
$(function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
$('body').addClass('fake');
|
$('.wrap-course-content').addClass('fake');
|
||||||
|
|
||||||
let questions;
|
let questions;
|
||||||
let currentQuestionIndex = 0;
|
let currentQuestionIndex = 0;
|
||||||
|
|||||||
@@ -16,7 +16,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.bg-custom-transparent {
|
.bg-custom-transparent {
|
||||||
background: rgba(240, 244, 242, 0.6);
|
background: rgba(242, 232, 222, .76);
|
||||||
|
background: linear-gradient(to bottom, rgba(242, 232, 222, .6) 0%, rgba(240, 244, 242, .9) 100%);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* .bg-custom-transparent img {
|
/* .bg-custom-transparent img {
|
||||||
@@ -25,8 +26,7 @@
|
|||||||
|
|
||||||
.drop-card {
|
.drop-card {
|
||||||
border: none;
|
border: none;
|
||||||
width: 200px;
|
width: 100%;
|
||||||
min-width: 80px;
|
|
||||||
height: 40px;
|
height: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -53,6 +53,10 @@
|
|||||||
max-width: 40%;
|
max-width: 40%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.content-enfermedad {
|
||||||
|
width: 24%;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
.form-append>div:first-child {
|
.form-append>div:first-child {
|
||||||
width: 20%;
|
width: 20%;
|
||||||
@@ -90,7 +94,7 @@
|
|||||||
<div class="row justify-content-center">
|
<div class="row justify-content-center">
|
||||||
<div class="col-12 mb-3">
|
<div class="col-12 mb-3">
|
||||||
<div class="card bg-transparent border-0 rounded-0 shadow-none p-0">
|
<div class="card bg-transparent border-0 rounded-0 shadow-none p-0">
|
||||||
<div class="d-flex flex-row justify-content-center gap-4">
|
<div class="d-flex flex-row justify-content-center gap-3">
|
||||||
<div class="content-enfermedad text-center">
|
<div class="content-enfermedad text-center">
|
||||||
<div class="card rounded bg-custom-transparent border-0 shadow px-3 py-2 mt-2 text-center">
|
<div class="card rounded bg-custom-transparent border-0 shadow px-3 py-2 mt-2 text-center">
|
||||||
<div class="card-header bg-transparent">
|
<div class="card-header bg-transparent">
|
||||||
@@ -100,7 +104,7 @@
|
|||||||
<div class="bg-secondary text-white fw-bold py-2 px-2">
|
<div class="bg-secondary text-white fw-bold py-2 px-2">
|
||||||
1
|
1
|
||||||
</div>
|
</div>
|
||||||
<div class="option"></div>
|
<div class="option w-100"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -113,7 +117,7 @@
|
|||||||
<div class="bg-secondary text-white fw-bold py-2 px-2">
|
<div class="bg-secondary text-white fw-bold py-2 px-2">
|
||||||
2
|
2
|
||||||
</div>
|
</div>
|
||||||
<div class="option"></div>
|
<div class="option w-100"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -126,7 +130,7 @@
|
|||||||
<div class="bg-secondary text-white fw-bold py-2 px-2">
|
<div class="bg-secondary text-white fw-bold py-2 px-2">
|
||||||
3
|
3
|
||||||
</div>
|
</div>
|
||||||
<div class="option"></div>
|
<div class="option w-100"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -139,7 +143,7 @@
|
|||||||
<div class="bg-secondary text-white fw-bold py-2 px-2">
|
<div class="bg-secondary text-white fw-bold py-2 px-2">
|
||||||
4
|
4
|
||||||
</div>
|
</div>
|
||||||
<div class="option"></div>
|
<div class="option w-100"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -176,7 +180,7 @@
|
|||||||
<script>
|
<script>
|
||||||
$(function () {
|
$(function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
$('body').addClass('fake');
|
$('.wrap-course-content').addClass('fake');
|
||||||
|
|
||||||
let questions;
|
let questions;
|
||||||
let currentQuestionIndex = 0;
|
let currentQuestionIndex = 0;
|
||||||
@@ -341,7 +345,7 @@
|
|||||||
questions = procesarPreguntas(hojaDatos);
|
questions = procesarPreguntas(hojaDatos);
|
||||||
CreateDragAndDrop();
|
CreateDragAndDrop();
|
||||||
initializeDragAndDrop();
|
initializeDragAndDrop();
|
||||||
igualarAlturaBgCustomTransparent();
|
//igualarAlturaBgCustomTransparent();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
@@ -356,8 +360,8 @@
|
|||||||
$('.bg-custom-transparent').css('height', maxHeight + 'px');
|
$('.bg-custom-transparent').css('height', maxHeight + 'px');
|
||||||
}
|
}
|
||||||
|
|
||||||
$(window).on('resize', igualarAlturaBgCustomTransparent);
|
/* $(window).on('resize', igualarAlturaBgCustomTransparent);
|
||||||
igualarAlturaBgCustomTransparent();
|
igualarAlturaBgCustomTransparent(); */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -11,30 +11,18 @@
|
|||||||
width: 50%;
|
width: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.button-prev,
|
|
||||||
.button-next {
|
|
||||||
cursor: pointer;
|
|
||||||
width: 40px;
|
|
||||||
z-index: 50;
|
|
||||||
transition: opacity 0.3s;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bg-custom {
|
|
||||||
background: #f0f4f2;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bg-custom-transparent {
|
|
||||||
background: rgba(240, 244, 242, 0.6);
|
|
||||||
}
|
|
||||||
|
|
||||||
.drop-card {
|
.drop-card {
|
||||||
border: 3px dashed var(--bs-primary);
|
border: 3px dashed var(--bs-primary);
|
||||||
width: 50px;
|
width: 56px;
|
||||||
height: 50px;
|
height: 56px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* .content-enfermedad {
|
||||||
|
width: 25%;
|
||||||
|
} */
|
||||||
|
|
||||||
.content-enfermedad img {
|
.content-enfermedad img {
|
||||||
height: 200px;
|
height: 250px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-drag {
|
.card-drag {
|
||||||
@@ -58,131 +46,51 @@
|
|||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
max-width: 40%;
|
max-width: 40%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.card-sort {
|
|
||||||
min-height: 60px;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
user-select: none;
|
|
||||||
transition: transform 0.2s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
.card-sort:hover {
|
|
||||||
transform: scale(1.05);
|
|
||||||
}
|
|
||||||
|
|
||||||
.ui-sortable-helper {
|
|
||||||
transform: rotate(5deg);
|
|
||||||
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
|
|
||||||
}
|
|
||||||
|
|
||||||
.swiper-container {
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
#activity1 img {
|
|
||||||
max-height: 250px;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
||||||
<div class='page-sco py-2 py-md-4 h-100'>
|
<div class='page-sco py-2 py-md-4 h-100'>
|
||||||
<div class='container h-100'>
|
<div class='container h-100'>
|
||||||
<div class='row justify-content-center align-items-center h-100'>
|
<div class='row justify-content-center align-items-center h-100'>
|
||||||
<div class='col-12'>
|
<div class='col-12'>
|
||||||
<div class='row justify-content-center'>
|
<div class='row justify-content-center'>
|
||||||
<div class="col-11 mb-2">
|
<div class="col-11">
|
||||||
<h2 class="text-center fw-bold text-primary">¿Cómo funciona la diálisis peritoneal?</h2>
|
<h2 class="text-center fw-bold text-primary">¿Cómo funciona la diálisis peritoneal?</h2>
|
||||||
<hr class="border border-3 border-verde-oscuro hr-style mx-auto my-0">
|
<hr class="border border-3 border-verde-oscuro hr-style mx-auto my-0">
|
||||||
<h3 class="text-verde-oscuro fw-bold"><span class="text-gris">></span> Glucosa</h3>
|
<h3 class="text-verde-oscuro fw-bold"><span class="text-lila-claro">></span> Glucosa</h3>
|
||||||
|
</div>
|
||||||
|
<div class="col-12 mb-3">
|
||||||
|
<div class="card border-0 my-2 rounded bg-secondary shadow p-3 text-center">
|
||||||
|
<div class="d-flex justify-content-center align-items-center flex-row">
|
||||||
|
<img src="img/2.1.png" class="img-fluid mx-3">
|
||||||
|
<p class="mb-0"><strong>Instrucciones:</strong> Observa los tapones, cada uno tiene un color que indica la concentración de su solución. Tu tarea es arrastrarlos hacia la solución que les corresponde.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-12 mb-3">
|
||||||
|
<div id="content-drags" class="d-flex flex-row justify-content-center gap-3"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<div class="row justify-content-center align-content-center">
|
<div class="card bg-transparent border-0 rounded-0 shadow-none p-0">
|
||||||
<div class="col-1 d-flex justify-content-center align-items-center" style="z-index: 50;">
|
<div class="d-flex flex-row justify-content-center gap-3">
|
||||||
<img src="img/left.png" class="img-fluid button-prev" style="display: none;" alt="Left">
|
<div class="content-enfermedad text-center">
|
||||||
</div>
|
<div class="card rounded bg-custom-transparent border-0 shadow px-3 py-2 my-3">
|
||||||
<div class="col-10">
|
<img src="img/5.1a.png" class="img-fluid">
|
||||||
<div class="swiper-container">
|
</div>
|
||||||
<div class="swiper-wrapper">
|
</div>
|
||||||
<div class="swiper-slide">
|
<div class="content-enfermedad text-center">
|
||||||
<div class="card bg-transparent text-white border-0">
|
<div class="card rounded bg-custom-transparent border-0 shadow px-3 py-2 my-3">
|
||||||
<div class="card-body text-center d-flex flex-column justify-content-center align-items-center">
|
<img src="img/5.2a.png" class="img-fluid">
|
||||||
<div class="col-12">
|
</div>
|
||||||
<div class="card border-0 my-2 rounded bg-secondary shadow p-3 text-center">
|
</div>
|
||||||
<div class="d-flex justify-content-center align-items-center flex-row">
|
<div class="content-enfermedad text-center">
|
||||||
<img src="img/2.1.png" class="img-fluid mx-3">
|
<div class="card rounded bg-custom-transparent border-0 shadow px-3 py-2 my-3">
|
||||||
<p class="mb-0"><strong>Instrucciones:</strong> Observa los tapones, cada uno tiene un
|
<img src="img/5.3a.png" class="img-fluid">
|
||||||
color
|
</div>
|
||||||
que indica la concentración de su solución. Tu tarea es arrastrarlos hacia la solución
|
</div>
|
||||||
que
|
<div class="content-enfermedad text-center">
|
||||||
les corresponde.</p>
|
<div class="card rounded bg-custom-transparent border-0 shadow px-3 py-2 my-3">
|
||||||
</div>
|
<img src="img/5.4a.png" class="img-fluid">
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div id="drag-drop-activity" class="col-12">
|
|
||||||
<div class="row justify-content-center">
|
|
||||||
<div class="col-12">
|
|
||||||
<div id="content-drags" class="d-flex flex-row justify-content-center gap-3"></div>
|
|
||||||
</div>
|
|
||||||
<div class="col-12 mt-3">
|
|
||||||
<div class="card bg-transparent border-0 rounded-0 shadow-none p-0">
|
|
||||||
<div class="d-flex flex-row justify-content-center gap-3">
|
|
||||||
<div class="content-enfermedad text-center">
|
|
||||||
<div class="card rounded bg-custom-transparent border-0 shadow px-3 py-2 mt-2">
|
|
||||||
<img src="img/5.1a.png" class="img-fluid">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="content-enfermedad text-center">
|
|
||||||
<div class="card rounded bg-custom-transparent border-0 shadow px-3 py-2 mt-2">
|
|
||||||
<img src="img/5.2a.png" class="img-fluid">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="content-enfermedad text-center">
|
|
||||||
<div class="card rounded bg-custom-transparent border-0 shadow px-3 py-2 mt-2">
|
|
||||||
<img src="img/5.3a.png" class="img-fluid">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="content-enfermedad text-center">
|
|
||||||
<div class="card rounded bg-custom-transparent border-0 shadow px-3 py-2 mt-2">
|
|
||||||
<img src="img/5.4a.png" class="img-fluid">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="swiper-slide">
|
|
||||||
<div class="card border-0 bg-transparent">
|
|
||||||
<div class="card-body d-flex flex-column justify-content-center align-items-center">
|
|
||||||
<div class="col-9">
|
|
||||||
<div class="card border-0 my-2 rounded bg-secondary shadow p-3 text-center">
|
|
||||||
<div class="d-flex justify-content-center align-items-center flex-row">
|
|
||||||
<img src="img/2.1.png" class="img-fluid mx-3">
|
|
||||||
<p class="mb-0"><strong>Instrucciones:</strong> Arrastre los pasos del recambio para
|
|
||||||
colocarlos en el orden correcto.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="activity1" class="my-4">
|
|
||||||
<div id="sortable-cards" class="d-flex flex-row gap-3 justify-content-center flex-wrap">
|
|
||||||
<!-- Las tarjetas se generarán dinámicamente -->
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="col-1 d-flex justify-content-center align-items-center" style="z-index: 50;">
|
|
||||||
<img src="img/right.png" class="img-fluid button-next" alt="Left">
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -211,7 +119,7 @@
|
|||||||
<script>
|
<script>
|
||||||
$(function () {
|
$(function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
$('body').addClass('fake');
|
$('.wrap-course-content').addClass('fake');
|
||||||
let questions;
|
let questions;
|
||||||
let currentQuestionIndex = 0;
|
let currentQuestionIndex = 0;
|
||||||
let currentQuestion;
|
let currentQuestion;
|
||||||
@@ -375,175 +283,6 @@
|
|||||||
questions = procesarPreguntas(hojaDatos);
|
questions = procesarPreguntas(hojaDatos);
|
||||||
CreateDragAndDrop();
|
CreateDragAndDrop();
|
||||||
initializeDragAndDrop();
|
initializeDragAndDrop();
|
||||||
igualarAlturaBgCustomTransparent();
|
|
||||||
});
|
|
||||||
|
|
||||||
// Ajustar altura de todos los elementos .bg-custom-transparent al más alto
|
|
||||||
function igualarAlturaBgCustomTransparent() {
|
|
||||||
var maxHeight = 0;
|
|
||||||
$('.bg-custom-transparent').each(function () {
|
|
||||||
$(this).css('height', 'auto'); // Resetear altura para medir correctamente
|
|
||||||
var h = $(this).outerHeight();
|
|
||||||
if (h > maxHeight) maxHeight = h;
|
|
||||||
});
|
|
||||||
$('.bg-custom-transparent').css('height', maxHeight + 'px');
|
|
||||||
}
|
|
||||||
$(window).on('resize', igualarAlturaBgCustomTransparent);
|
|
||||||
igualarAlturaBgCustomTransparent();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Función para mezclar array (algoritmo Fisher-Yates)
|
|
||||||
function shuffleArray(array) {
|
|
||||||
const 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]];
|
|
||||||
}
|
|
||||||
return shuffled;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Crear y mezclar las tarjetas
|
|
||||||
function createShuffledCards() {
|
|
||||||
const cards = [1, 2, 3];
|
|
||||||
const shuffledCards = shuffleArray(cards);
|
|
||||||
const container = $('#sortable-cards');
|
|
||||||
|
|
||||||
// Limpiar contenedor
|
|
||||||
container.empty();
|
|
||||||
|
|
||||||
// Crear tarjetas mezcladas
|
|
||||||
shuffledCards.forEach(number => {
|
|
||||||
const cardHtml = `
|
|
||||||
<div class="card border-0 card-sort bg-verde-claro text-white fw-bold text-center"
|
|
||||||
data-order="${number}"
|
|
||||||
style="cursor:grab;">
|
|
||||||
<div class="card-body px-0 py-0">
|
|
||||||
<img src="img/5.${number}b.png" class="img-fluid">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
`;
|
|
||||||
container.append(cardHtml);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// Verificar si las tarjetas están en orden correcto
|
|
||||||
function checkOrder() {
|
|
||||||
let correct = true;
|
|
||||||
$('#sortable-cards .card-sort').each(function (index) {
|
|
||||||
if ($(this).data('order') === index + 1) {
|
|
||||||
$(this).removeClass('bg-verde-claro').addClass('bg-success');
|
|
||||||
} else {
|
|
||||||
$(this).css('background', ''); // reset
|
|
||||||
correct = false;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return correct;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Inicializar Swiper
|
|
||||||
var mySwiper = new Swiper('.swiper-container', {
|
|
||||||
loop: false,
|
|
||||||
allowTouchMove: false,
|
|
||||||
simulateTouch: false,
|
|
||||||
navigation: {
|
|
||||||
nextEl: '.button-next',
|
|
||||||
prevEl: '.button-prev',
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
// Función para actualizar botones de navegación
|
|
||||||
function updateNavButtons(swiper) {
|
|
||||||
var prevBtn = document.querySelector('.button-prev');
|
|
||||||
var nextBtn = document.querySelector('.button-next');
|
|
||||||
var totalSlides = swiper.slides ? swiper.slides.length : 0;
|
|
||||||
|
|
||||||
if (totalSlides <= 1) {
|
|
||||||
$(prevBtn).hide();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (swiper.activeIndex === 0) {
|
|
||||||
$(prevBtn).hide();
|
|
||||||
$(nextBtn).show();
|
|
||||||
} else if (swiper.activeIndex === totalSlides - 1) {
|
|
||||||
$(nextBtn).hide();
|
|
||||||
$(prevBtn).show();
|
|
||||||
} else {
|
|
||||||
$(prevBtn).show();
|
|
||||||
$(nextBtn).show();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Eventos de Swiper
|
|
||||||
mySwiper.on('slideChange', function () {
|
|
||||||
updateNavButtons(mySwiper);
|
|
||||||
});
|
|
||||||
|
|
||||||
// Inicializar estado de los botones
|
|
||||||
updateNavButtons(mySwiper);
|
|
||||||
|
|
||||||
// Crear tarjetas mezcladas al cargar
|
|
||||||
createShuffledCards();
|
|
||||||
|
|
||||||
// Configurar sortable
|
|
||||||
$('#sortable-cards').sortable({
|
|
||||||
axis: 'x',
|
|
||||||
containment: '#activity1',
|
|
||||||
cursor: 'grabbing',
|
|
||||||
tolerance: 'pointer',
|
|
||||||
update: function (event, ui) {
|
|
||||||
if (checkOrder()) {
|
|
||||||
const html = $("#pop0").html();
|
|
||||||
Swal.fire({
|
|
||||||
html: html,
|
|
||||||
target: "body",
|
|
||||||
customClass: {
|
|
||||||
popup: 'pop_html_style border border-3 border-primary rounded-4',
|
|
||||||
confirmButton: 'btn text-white bg-primary amor fw-semibold animate__animated animate__pulse animate__infinite'
|
|
||||||
},
|
|
||||||
confirmButtonText: "Cerrar",
|
|
||||||
showConfirmButton: true,
|
|
||||||
allowOutsideClick: false,
|
|
||||||
allowEscapeKey: false,
|
|
||||||
focusConfirm: false,
|
|
||||||
backdrop: "rgba(65, 60, 60, .95)",
|
|
||||||
width: "35em",
|
|
||||||
didOpen: () => {
|
|
||||||
},
|
|
||||||
didClose: () => {
|
|
||||||
CourseNav.audioController.stopAudio();
|
|
||||||
//CourseNav.soundClick();
|
|
||||||
CourseNav.setSlideVisited();
|
|
||||||
/* setTimeout(() => {
|
|
||||||
Swal.close();
|
|
||||||
CourseNav.nextSlide();
|
|
||||||
}, 100); */
|
|
||||||
},
|
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
|
||||||
start: function (event, ui) {
|
|
||||||
ui.item.addClass('ui-sortable-helper');
|
|
||||||
},
|
|
||||||
stop: function (event, ui) {
|
|
||||||
ui.item.removeClass('ui-sortable-helper');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
// Hacer las tarjetas arrastrables
|
|
||||||
$('#sortable-cards').on('mousedown touchstart', '.card-sort', function () {
|
|
||||||
$(this).css('cursor', 'grabbing');
|
|
||||||
});
|
|
||||||
|
|
||||||
$(document).on('mouseup touchend', function () {
|
|
||||||
$('.card-sort').css('cursor', 'grab');
|
|
||||||
});
|
|
||||||
|
|
||||||
// Botón para reiniciar el juego (opcional)
|
|
||||||
$('.button-prev').on('click', function () {
|
|
||||||
setTimeout(createShuffledCards, 300); // Crear nuevas tarjetas mezcladas
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
@@ -0,0 +1,549 @@
|
|||||||
|
<style>
|
||||||
|
.fake {
|
||||||
|
background-image: url(img/bg05.jpg);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center;
|
||||||
|
background-size: cover;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hr-style {
|
||||||
|
opacity: 1;
|
||||||
|
width: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button-prev,
|
||||||
|
.button-next {
|
||||||
|
cursor: pointer;
|
||||||
|
width: 40px;
|
||||||
|
z-index: 50;
|
||||||
|
transition: opacity 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bg-custom {
|
||||||
|
background: #f0f4f2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bg-custom-transparent {
|
||||||
|
background: rgba(240, 244, 242, 0.6);
|
||||||
|
}
|
||||||
|
|
||||||
|
.drop-card {
|
||||||
|
border: 3px dashed var(--bs-primary);
|
||||||
|
width: 50px;
|
||||||
|
height: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content-enfermedad img {
|
||||||
|
height: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-drag {
|
||||||
|
cursor: grab;
|
||||||
|
width: 50px;
|
||||||
|
height: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-drag img {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-drag.ui-draggable-dragging {
|
||||||
|
cursor: grabbing;
|
||||||
|
}
|
||||||
|
|
||||||
|
.img-retro {
|
||||||
|
top: -75px;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
margin: 0 auto;
|
||||||
|
max-width: 40%;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.card-sort {
|
||||||
|
min-height: 60px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
user-select: none;
|
||||||
|
transition: transform 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-sort:hover {
|
||||||
|
transform: scale(1.05);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui-sortable-helper {
|
||||||
|
transform: rotate(5deg);
|
||||||
|
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
.swiper-container {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
#activity1 img {
|
||||||
|
max-height: 250px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
<div class='page-sco py-2 py-md-4 h-100'>
|
||||||
|
<div class='container h-100'>
|
||||||
|
<div class='row justify-content-center align-items-center h-100'>
|
||||||
|
<div class='col-12'>
|
||||||
|
<div class='row justify-content-center'>
|
||||||
|
<div class="col-11 mb-2">
|
||||||
|
<h2 class="text-center fw-bold text-primary">¿Cómo funciona la diálisis peritoneal?</h2>
|
||||||
|
<hr class="border border-3 border-verde-oscuro hr-style mx-auto my-0">
|
||||||
|
<h3 class="text-verde-oscuro fw-bold"><span class="text-gris">></span> Glucosa</h3>
|
||||||
|
</div>
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="row justify-content-center align-content-center">
|
||||||
|
<div class="col-1 d-flex justify-content-center align-items-center" style="z-index: 50;">
|
||||||
|
<img src="img/left.png" class="img-fluid button-prev" style="display: none;" alt="Left">
|
||||||
|
</div>
|
||||||
|
<div class="col-10">
|
||||||
|
<div class="swiper-container">
|
||||||
|
<div class="swiper-wrapper">
|
||||||
|
<div class="swiper-slide">
|
||||||
|
<div class="card bg-transparent text-white border-0">
|
||||||
|
<div class="card-body text-center d-flex flex-column justify-content-center align-items-center">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="card border-0 my-2 rounded bg-secondary shadow p-3 text-center">
|
||||||
|
<div class="d-flex justify-content-center align-items-center flex-row">
|
||||||
|
<img src="img/2.1.png" class="img-fluid mx-3">
|
||||||
|
<p class="mb-0"><strong>Instrucciones:</strong> Observa los tapones, cada uno tiene un
|
||||||
|
color
|
||||||
|
que indica la concentración de su solución. Tu tarea es arrastrarlos hacia la solución
|
||||||
|
que
|
||||||
|
les corresponde.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="drag-drop-activity" class="col-12">
|
||||||
|
<div class="row justify-content-center">
|
||||||
|
<div class="col-12">
|
||||||
|
<div id="content-drags" class="d-flex flex-row justify-content-center gap-3"></div>
|
||||||
|
</div>
|
||||||
|
<div class="col-12 mt-3">
|
||||||
|
<div class="card bg-transparent border-0 rounded-0 shadow-none p-0">
|
||||||
|
<div class="d-flex flex-row justify-content-center gap-3">
|
||||||
|
<div class="content-enfermedad text-center">
|
||||||
|
<div class="card rounded bg-custom-transparent border-0 shadow px-3 py-2 mt-2">
|
||||||
|
<img src="img/5.1a.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="content-enfermedad text-center">
|
||||||
|
<div class="card rounded bg-custom-transparent border-0 shadow px-3 py-2 mt-2">
|
||||||
|
<img src="img/5.2a.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="content-enfermedad text-center">
|
||||||
|
<div class="card rounded bg-custom-transparent border-0 shadow px-3 py-2 mt-2">
|
||||||
|
<img src="img/5.3a.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="content-enfermedad text-center">
|
||||||
|
<div class="card rounded bg-custom-transparent border-0 shadow px-3 py-2 mt-2">
|
||||||
|
<img src="img/5.4a.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="swiper-slide">
|
||||||
|
<div class="card border-0 bg-transparent">
|
||||||
|
<div class="card-body d-flex flex-column justify-content-center align-items-center">
|
||||||
|
<div class="col-9">
|
||||||
|
<div class="card border-0 my-2 rounded bg-secondary shadow p-3 text-center">
|
||||||
|
<div class="d-flex justify-content-center align-items-center flex-row">
|
||||||
|
<img src="img/2.1.png" class="img-fluid mx-3">
|
||||||
|
<p class="mb-0"><strong>Instrucciones:</strong> Arrastre los pasos del recambio para
|
||||||
|
colocarlos en el orden correcto.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="activity1" class="my-4">
|
||||||
|
<div id="sortable-cards" class="d-flex flex-row gap-3 justify-content-center flex-wrap">
|
||||||
|
<!-- Las tarjetas se generarán dinámicamente -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-1 d-flex justify-content-center align-items-center" style="z-index: 50;">
|
||||||
|
<img src="img/right.png" class="img-fluid button-next" alt="Left">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="d-none">
|
||||||
|
<div id="pop0">
|
||||||
|
<div class="container-fluid">
|
||||||
|
<div class=" w-100 text-center">
|
||||||
|
<img src="img/3.5.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
<div class="row justify-content-center">
|
||||||
|
<div class="col-12 text-center mb-2">
|
||||||
|
<h3 class="text-secondary-dark fw-bold">¡Bien hecho!</h3>
|
||||||
|
</div>
|
||||||
|
<div class="col-12 text-center">
|
||||||
|
<p class="mb-0">Has concluido la actividad.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
$(function () {
|
||||||
|
'use strict';
|
||||||
|
$('body').addClass('fake');
|
||||||
|
let questions;
|
||||||
|
let currentQuestionIndex = 0;
|
||||||
|
let currentQuestion;
|
||||||
|
let correctQuestions = 0;
|
||||||
|
const bad = CourseNav.createSound('audio/feedback-incorrect.mpeg');
|
||||||
|
const good = CourseNav.createSound('audio/feedback-correct.mpeg');
|
||||||
|
|
||||||
|
const urlExcelFile = 'Drag_Drop3.xlsx';
|
||||||
|
|
||||||
|
function readExcelFile(url, callback) {
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
xhr.open('GET', url, true);
|
||||||
|
xhr.responseType = 'arraybuffer';
|
||||||
|
xhr.onload = function (e) {
|
||||||
|
var arrayBuffer = xhr.response;
|
||||||
|
var data = new Uint8Array(arrayBuffer);
|
||||||
|
var workbook = XLSX.read(data, { type: "array" });
|
||||||
|
var result = {};
|
||||||
|
workbook.SheetNames.forEach(sheetName => {
|
||||||
|
var sheet = workbook.Sheets[sheetName];
|
||||||
|
result[sheetName] = XLSX.utils.sheet_to_json(sheet);
|
||||||
|
});
|
||||||
|
callback(result);
|
||||||
|
};
|
||||||
|
xhr.send();
|
||||||
|
}
|
||||||
|
|
||||||
|
function procesarPreguntas(data) {
|
||||||
|
const preguntas = data.map(fila => {
|
||||||
|
const opciones = [];
|
||||||
|
Object.keys(fila).forEach(key => {
|
||||||
|
if (key.startsWith('opcion')) {
|
||||||
|
opciones.push({
|
||||||
|
text: fila[key].trim(),
|
||||||
|
correct: key === 'opcion_c'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return {
|
||||||
|
pregunta: fila.pregunta.trim(),
|
||||||
|
opciones: opciones,
|
||||||
|
retroalimentacion_correcta: fila.retroalimentacion_correcta.trim(),
|
||||||
|
retroalimentacion_incorrecta: fila.retroalimentacion_incorrecta.trim()
|
||||||
|
};
|
||||||
|
});
|
||||||
|
return preguntas;
|
||||||
|
}
|
||||||
|
|
||||||
|
function shuffleArray(array) {
|
||||||
|
for (let i = array.length - 1; i > 0; i--) {
|
||||||
|
const j = Math.floor(Math.random() * (i + 1));
|
||||||
|
[array[i], array[j]] = [array[j], array[i]];
|
||||||
|
}
|
||||||
|
return array;
|
||||||
|
}
|
||||||
|
|
||||||
|
function CreateDragAndDrop() {
|
||||||
|
$('.content-enfermedad').each(function (index) {
|
||||||
|
if (questions && questions[index]) {
|
||||||
|
const dropDiv = `<div class="position-relative card bg-transparent drop-card shadow-none rounded-0 p-0 mx-auto" data-drop="${index}"></div>`;
|
||||||
|
$(dropDiv).insertAfter($(this).find('.card'));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// Crear todas las respuestas en #content-drags
|
||||||
|
let allOptions = [];
|
||||||
|
questions.forEach((question, index) => {
|
||||||
|
question.opciones.forEach(opcion => {
|
||||||
|
allOptions.push({ text: opcion.text, index: index });
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
allOptions = shuffleArray(allOptions);
|
||||||
|
allOptions.forEach(option => {
|
||||||
|
const dragDiv = `<div class="card card-drag bg-transparent border border-2 border-secondary rounded-0 shadow-none text-white text-center" data-drag="${option.index}">${option.text}</div>`;
|
||||||
|
$('#content-drags').append(dragDiv);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function initializeDragAndDrop() {
|
||||||
|
$('.card-drag').draggable({
|
||||||
|
revert: 'invalid',
|
||||||
|
revertDuration: 300,
|
||||||
|
containment: "#drag-drop-activity",
|
||||||
|
cursor: "grabbing",
|
||||||
|
start: function (event, ui) {
|
||||||
|
$(this).css('z-index', 1000);
|
||||||
|
ui.position.left = 0;
|
||||||
|
ui.position.top = 0;
|
||||||
|
},
|
||||||
|
drag: function (event, ui) {
|
||||||
|
var changeLeft = ui.position.left - ui.originalPosition.left;
|
||||||
|
var newLeft = ui.originalPosition.left + changeLeft;
|
||||||
|
var changeTop = ui.position.top - ui.originalPosition.top;
|
||||||
|
var newTop = ui.originalPosition.top + changeTop;
|
||||||
|
ui.position.left = newLeft;
|
||||||
|
ui.position.top = newTop;
|
||||||
|
},
|
||||||
|
stop: function (event, ui) {
|
||||||
|
$(this).css('z-index', 1);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
$('.drop-card').droppable({
|
||||||
|
accept: '.card-drag',
|
||||||
|
tolerance: 'pointer',
|
||||||
|
drop: function (event, ui) {
|
||||||
|
const dragData = ui.helper.data('drag');
|
||||||
|
const dropData = $(this).data('drop');
|
||||||
|
|
||||||
|
if (dragData == dropData) {
|
||||||
|
good.play();
|
||||||
|
ui.helper.css({ position: 'static', top: 'auto', left: 'auto' }).appendTo(this);
|
||||||
|
ui.helper.draggable('disable');
|
||||||
|
$(this).droppable('disable');
|
||||||
|
|
||||||
|
// Verificar si todos están completados
|
||||||
|
if ($('.drop-card:not(.ui-droppable-disabled)').length === 0) {
|
||||||
|
Completed();
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
bad.play();
|
||||||
|
ui.helper.draggable('option', 'revert', true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function Completed() {
|
||||||
|
const html = $("#pop0").html();
|
||||||
|
Swal.fire({
|
||||||
|
html: html,
|
||||||
|
target: "body",
|
||||||
|
customClass: {
|
||||||
|
popup: 'pop_html_style border border-3 border-primary rounded-4',
|
||||||
|
confirmButton: 'btn text-white bg-primary amor fw-semibold animate__animated animate__pulse animate__infinite'
|
||||||
|
},
|
||||||
|
confirmButtonText: "Cerrar",
|
||||||
|
showConfirmButton: true,
|
||||||
|
allowOutsideClick: false,
|
||||||
|
allowEscapeKey: false,
|
||||||
|
focusConfirm: false,
|
||||||
|
backdrop: "rgba(65, 60, 60, .95)",
|
||||||
|
width: "35em",
|
||||||
|
didOpen: () => {
|
||||||
|
},
|
||||||
|
didClose: () => {
|
||||||
|
CourseNav.audioController.stopAudio();
|
||||||
|
//CourseNav.soundClick();
|
||||||
|
CourseNav.setSlideVisited();
|
||||||
|
/* setTimeout(() => {
|
||||||
|
Swal.close();
|
||||||
|
CourseNav.nextSlide();
|
||||||
|
}, 100); */
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
readExcelFile(urlExcelFile, function (data) {
|
||||||
|
const hojaDatos = data["DragAndDrop"];
|
||||||
|
questions = procesarPreguntas(hojaDatos);
|
||||||
|
CreateDragAndDrop();
|
||||||
|
initializeDragAndDrop();
|
||||||
|
igualarAlturaBgCustomTransparent();
|
||||||
|
});
|
||||||
|
|
||||||
|
// Ajustar altura de todos los elementos .bg-custom-transparent al más alto
|
||||||
|
function igualarAlturaBgCustomTransparent() {
|
||||||
|
var maxHeight = 0;
|
||||||
|
$('.bg-custom-transparent').each(function () {
|
||||||
|
$(this).css('height', 'auto'); // Resetear altura para medir correctamente
|
||||||
|
var h = $(this).outerHeight();
|
||||||
|
if (h > maxHeight) maxHeight = h;
|
||||||
|
});
|
||||||
|
$('.bg-custom-transparent').css('height', maxHeight + 'px');
|
||||||
|
}
|
||||||
|
$(window).on('resize', igualarAlturaBgCustomTransparent);
|
||||||
|
igualarAlturaBgCustomTransparent();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Función para mezclar array (algoritmo Fisher-Yates)
|
||||||
|
function shuffleArray(array) {
|
||||||
|
const 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]];
|
||||||
|
}
|
||||||
|
return shuffled;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Crear y mezclar las tarjetas
|
||||||
|
function createShuffledCards() {
|
||||||
|
const cards = [1, 2, 3];
|
||||||
|
const shuffledCards = shuffleArray(cards);
|
||||||
|
const container = $('#sortable-cards');
|
||||||
|
|
||||||
|
// Limpiar contenedor
|
||||||
|
container.empty();
|
||||||
|
|
||||||
|
// Crear tarjetas mezcladas
|
||||||
|
shuffledCards.forEach(number => {
|
||||||
|
const cardHtml = `
|
||||||
|
<div class="card border-0 card-sort bg-verde-claro text-white fw-bold text-center"
|
||||||
|
data-order="${number}"
|
||||||
|
style="cursor:grab;">
|
||||||
|
<div class="card-body px-0 py-0">
|
||||||
|
<img src="img/5.${number}b.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
`;
|
||||||
|
container.append(cardHtml);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// Verificar si las tarjetas están en orden correcto
|
||||||
|
function checkOrder() {
|
||||||
|
let correct = true;
|
||||||
|
$('#sortable-cards .card-sort').each(function (index) {
|
||||||
|
if ($(this).data('order') === index + 1) {
|
||||||
|
$(this).removeClass('bg-verde-claro').addClass('bg-success');
|
||||||
|
} else {
|
||||||
|
$(this).css('background', ''); // reset
|
||||||
|
correct = false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return correct;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Inicializar Swiper
|
||||||
|
var mySwiper = new Swiper('.swiper-container', {
|
||||||
|
loop: false,
|
||||||
|
allowTouchMove: false,
|
||||||
|
simulateTouch: false,
|
||||||
|
navigation: {
|
||||||
|
nextEl: '.button-next',
|
||||||
|
prevEl: '.button-prev',
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
// Función para actualizar botones de navegación
|
||||||
|
function updateNavButtons(swiper) {
|
||||||
|
var prevBtn = document.querySelector('.button-prev');
|
||||||
|
var nextBtn = document.querySelector('.button-next');
|
||||||
|
var totalSlides = swiper.slides ? swiper.slides.length : 0;
|
||||||
|
|
||||||
|
if (totalSlides <= 1) {
|
||||||
|
$(prevBtn).hide();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (swiper.activeIndex === 0) {
|
||||||
|
$(prevBtn).hide();
|
||||||
|
$(nextBtn).show();
|
||||||
|
} else if (swiper.activeIndex === totalSlides - 1) {
|
||||||
|
$(nextBtn).hide();
|
||||||
|
$(prevBtn).show();
|
||||||
|
} else {
|
||||||
|
$(prevBtn).show();
|
||||||
|
$(nextBtn).show();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Eventos de Swiper
|
||||||
|
mySwiper.on('slideChange', function () {
|
||||||
|
updateNavButtons(mySwiper);
|
||||||
|
});
|
||||||
|
|
||||||
|
// Inicializar estado de los botones
|
||||||
|
updateNavButtons(mySwiper);
|
||||||
|
|
||||||
|
// Crear tarjetas mezcladas al cargar
|
||||||
|
createShuffledCards();
|
||||||
|
|
||||||
|
// Configurar sortable
|
||||||
|
$('#sortable-cards').sortable({
|
||||||
|
axis: 'x',
|
||||||
|
containment: '#activity1',
|
||||||
|
cursor: 'grabbing',
|
||||||
|
tolerance: 'pointer',
|
||||||
|
update: function (event, ui) {
|
||||||
|
if (checkOrder()) {
|
||||||
|
const html = $("#pop0").html();
|
||||||
|
Swal.fire({
|
||||||
|
html: html,
|
||||||
|
target: "body",
|
||||||
|
customClass: {
|
||||||
|
popup: 'pop_html_style border border-3 border-primary rounded-4',
|
||||||
|
confirmButton: 'btn text-white bg-primary amor fw-semibold animate__animated animate__pulse animate__infinite'
|
||||||
|
},
|
||||||
|
confirmButtonText: "Cerrar",
|
||||||
|
showConfirmButton: true,
|
||||||
|
allowOutsideClick: false,
|
||||||
|
allowEscapeKey: false,
|
||||||
|
focusConfirm: false,
|
||||||
|
backdrop: "rgba(65, 60, 60, .95)",
|
||||||
|
width: "35em",
|
||||||
|
didOpen: () => {
|
||||||
|
},
|
||||||
|
didClose: () => {
|
||||||
|
CourseNav.audioController.stopAudio();
|
||||||
|
//CourseNav.soundClick();
|
||||||
|
CourseNav.setSlideVisited();
|
||||||
|
/* setTimeout(() => {
|
||||||
|
Swal.close();
|
||||||
|
CourseNav.nextSlide();
|
||||||
|
}, 100); */
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
start: function (event, ui) {
|
||||||
|
ui.item.addClass('ui-sortable-helper');
|
||||||
|
},
|
||||||
|
stop: function (event, ui) {
|
||||||
|
ui.item.removeClass('ui-sortable-helper');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// Hacer las tarjetas arrastrables
|
||||||
|
$('#sortable-cards').on('mousedown touchstart', '.card-sort', function () {
|
||||||
|
$(this).css('cursor', 'grabbing');
|
||||||
|
});
|
||||||
|
|
||||||
|
$(document).on('mouseup touchend', function () {
|
||||||
|
$('.card-sort').css('cursor', 'grab');
|
||||||
|
});
|
||||||
|
|
||||||
|
// Botón para reiniciar el juego (opcional)
|
||||||
|
$('.button-prev').on('click', function () {
|
||||||
|
setTimeout(createShuffledCards, 300); // Crear nuevas tarjetas mezcladas
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
@@ -0,0 +1,192 @@
|
|||||||
|
<style>
|
||||||
|
.fake {
|
||||||
|
background-image: url(img/bg05.jpg);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center;
|
||||||
|
background-size: cover;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hr-style {
|
||||||
|
opacity: 1;
|
||||||
|
width: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sortable-cards .card {
|
||||||
|
width: 23%;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<div class='page-sco py-2 py-md-4 h-100'>
|
||||||
|
<div class='container h-100'>
|
||||||
|
<div class='row justify-content-center align-items-center h-100'>
|
||||||
|
<div class='col-12'>
|
||||||
|
<div class='row justify-content-center'>
|
||||||
|
<div class="col-11 mb-2">
|
||||||
|
<h2 class="text-center fw-bold text-primary">¿Cómo funciona la diálisis peritoneal?</h2>
|
||||||
|
<hr class="border border-3 border-verde-oscuro hr-style mx-auto my-0">
|
||||||
|
</div>
|
||||||
|
<div class="col-9 mb-3">
|
||||||
|
<div class="card border-0 my-2 rounded bg-secondary shadow p-3 text-center">
|
||||||
|
<div class="d-flex justify-content-center align-items-center flex-row">
|
||||||
|
<img src="img/2.1.png" class="img-fluid mx-3">
|
||||||
|
<p class="mb-0"><strong>Instrucciones:</strong> Arrastre los pasos del recambio para
|
||||||
|
colocarlos en el orden correcto.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-12">
|
||||||
|
<div id="activity1" class="my-4">
|
||||||
|
<div id="sortable-cards" class="d-flex flex-row gap-3 justify-content-center flex-wrap">
|
||||||
|
<!-- Las tarjetas se generarán dinámicamente -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="d-none">
|
||||||
|
<div id="pop0">
|
||||||
|
<div class="container-fluid">
|
||||||
|
<div class=" w-100 text-center">
|
||||||
|
<img src="img/3.5.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
<div class="row justify-content-center">
|
||||||
|
<div class="col-12 text-center mb-2">
|
||||||
|
<h3 class="text-secondary-dark fw-bold">¡Bien hecho!</h3>
|
||||||
|
</div>
|
||||||
|
<div class="col-12 text-center">
|
||||||
|
<p class="mb-0">Has concluido la actividad.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
$(function () {
|
||||||
|
"use strict";
|
||||||
|
$('.wrap-course-content').addClass('fake');
|
||||||
|
|
||||||
|
// Función para mezclar array (algoritmo Fisher-Yates)
|
||||||
|
function shuffleArray(array) {
|
||||||
|
const 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]];
|
||||||
|
}
|
||||||
|
return shuffled;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Crear y mezclar las tarjetas
|
||||||
|
function createShuffledCards() {
|
||||||
|
const cards = [1, 2, 3];
|
||||||
|
const shuffledCards = shuffleArray(cards);
|
||||||
|
const container = $('#sortable-cards');
|
||||||
|
|
||||||
|
// Limpiar contenedor
|
||||||
|
container.empty();
|
||||||
|
|
||||||
|
// Crear tarjetas mezcladas
|
||||||
|
shuffledCards.forEach(number => {
|
||||||
|
const cardHtml = `
|
||||||
|
<div class="card border-0 card-sort bg-verde-claro text-white fw-bold text-center"
|
||||||
|
data-order="${number}"
|
||||||
|
style="cursor:grab;">
|
||||||
|
<div class="card-body px-0 py-0">
|
||||||
|
<img src="img/5.${number}b.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
`;
|
||||||
|
container.append(cardHtml);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// Verificar si las tarjetas están en orden correcto
|
||||||
|
function checkOrder() {
|
||||||
|
let correct = true;
|
||||||
|
$('#sortable-cards .card-sort').each(function (index) {
|
||||||
|
if ($(this).data('order') === index + 1) {
|
||||||
|
$(this).removeClass('bg-verde-claro').addClass('bg-verde-pasto');
|
||||||
|
} else {
|
||||||
|
$(this).removeClass('bg-verde-pasto').addClass('bg-verde-claro');
|
||||||
|
correct = false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return correct;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Crear tarjetas mezcladas al cargar
|
||||||
|
createShuffledCards();
|
||||||
|
|
||||||
|
// Configurar sortable
|
||||||
|
$('#sortable-cards').sortable({
|
||||||
|
axis: 'x',
|
||||||
|
containment: '#activity1',
|
||||||
|
cursor: 'grabbing',
|
||||||
|
tolerance: 'pointer',
|
||||||
|
helper: "clone",
|
||||||
|
cursorAt: { top: 50, left: 50 },
|
||||||
|
update: function (event, ui) {
|
||||||
|
if (checkOrder()) {
|
||||||
|
$('#sortable-cards').sortable('disable');
|
||||||
|
const html = $("#pop0").html();
|
||||||
|
Swal.fire({
|
||||||
|
html: html,
|
||||||
|
target: "body",
|
||||||
|
customClass: {
|
||||||
|
popup: 'pop_html_style border border-3 border-primary rounded-4',
|
||||||
|
confirmButton: 'btn text-white bg-primary amor fw-semibold animate__animated animate__pulse animate__infinite'
|
||||||
|
},
|
||||||
|
confirmButtonText: "Cerrar",
|
||||||
|
showConfirmButton: true,
|
||||||
|
allowOutsideClick: false,
|
||||||
|
allowEscapeKey: false,
|
||||||
|
focusConfirm: false,
|
||||||
|
backdrop: "rgba(65, 60, 60, .95)",
|
||||||
|
width: "35em",
|
||||||
|
didOpen: () => {
|
||||||
|
},
|
||||||
|
didClose: () => {
|
||||||
|
CourseNav.audioController.stopAudio();
|
||||||
|
//CourseNav.soundClick();
|
||||||
|
CourseNav.setSlideVisited();
|
||||||
|
/* setTimeout(() => {
|
||||||
|
Swal.close();
|
||||||
|
CourseNav.nextSlide();
|
||||||
|
}, 100); */
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
start: function (event, ui) {
|
||||||
|
ui.item.addClass('ui-sortable-helper');
|
||||||
|
if (ui.position) {
|
||||||
|
ui.position.left = 0;
|
||||||
|
ui.position.top = 0;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
drag: function (event, ui) {
|
||||||
|
if (ui.position && ui.originalPosition) {
|
||||||
|
var changeLeft = ui.position.left - ui.originalPosition.left;
|
||||||
|
var newLeft = ui.originalPosition.left + changeLeft;
|
||||||
|
var changeTop = ui.position.top - ui.originalPosition.top;
|
||||||
|
var newTop = ui.originalPosition.top + changeTop;
|
||||||
|
ui.position.left = newLeft;
|
||||||
|
ui.position.top = newTop;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
stop: function (event, ui) {
|
||||||
|
ui.item.removeClass('ui-sortable-helper');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// Hacer las tarjetas arrastrables
|
||||||
|
$('#sortable-cards').on('mousedown touchstart', '.card-sort', function () {
|
||||||
|
$(this).css('cursor', 'grabbing');
|
||||||
|
});
|
||||||
|
|
||||||
|
$(document).on('mouseup touchend', function () {
|
||||||
|
$('.card-sort').css('cursor', 'grab');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
@@ -0,0 +1,391 @@
|
|||||||
|
<style>
|
||||||
|
.fake {
|
||||||
|
background-image: url(img/bg04.jpg);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center;
|
||||||
|
background-size: cover;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hr-style {
|
||||||
|
opacity: 1;
|
||||||
|
width: 40%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bg-custom {
|
||||||
|
box-shadow: 0 0 10px rgba(0, 0, 0, .5);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-answer {
|
||||||
|
background-color: #808080;
|
||||||
|
border-radius: 20px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-answer:hover {
|
||||||
|
background-color: #925c8d;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-answer.selected {
|
||||||
|
background-color: #925c8d;
|
||||||
|
}
|
||||||
|
|
||||||
|
.completed {
|
||||||
|
filter: grayscale(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.disabled {
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.object-btn {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content-medidor {
|
||||||
|
background-color: #fff;
|
||||||
|
box-shadow: 0 0 12px rgba(0, 0, 0, .5);
|
||||||
|
border-radius: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.termometro {
|
||||||
|
position: relative;
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(6, 1fr);
|
||||||
|
grid-template-rows: auto;
|
||||||
|
gap: 0;
|
||||||
|
background: #E7E7E7;
|
||||||
|
background: linear-gradient(to left, #E7E7E7 0%, #C3C3C3 100%);
|
||||||
|
border-radius: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.med_style {
|
||||||
|
border-radius: 0;
|
||||||
|
border: 1px solid #000;
|
||||||
|
border-right: 3px solid #c3c3c3;
|
||||||
|
width: 80px;
|
||||||
|
height: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.med_style:nth-child(6) {
|
||||||
|
border-top-right-radius: 40px;
|
||||||
|
border-bottom-right-radius: 40px;
|
||||||
|
border-left: 0;
|
||||||
|
border-right: 1px solid #000;
|
||||||
|
background: #76c300;
|
||||||
|
background: linear-gradient(to top, #76c300 0%, #386100 100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.med_style:first-child {
|
||||||
|
border-top-left-radius: 40px;
|
||||||
|
border-bottom-left-radius: 40px;
|
||||||
|
background: #DF0000;
|
||||||
|
background: linear-gradient(to top, #DF0000 0%, #4F0700 100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.med_style:nth-child(2),
|
||||||
|
.med_style:nth-child(3),
|
||||||
|
.med_style:nth-child(4),
|
||||||
|
.med_style:nth-child(5) {
|
||||||
|
border-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.med_style:nth-child(3) {
|
||||||
|
background: #ffce00;
|
||||||
|
background: linear-gradient(to top, #ffce00 0%, #fe6a00 100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.med_style:nth-child(2) {
|
||||||
|
background: #ff8400;
|
||||||
|
background: linear-gradient(to top, #ff8400 0%, #c93000 100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.med_style:nth-child(4) {
|
||||||
|
background: #a4f800;
|
||||||
|
background: linear-gradient(to top, #a4f800 0%, #ffe600 100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.med_style:nth-child(5) {
|
||||||
|
background: #aaff00;
|
||||||
|
background: linear-gradient(to top, #aaff00 0%, #4e8600 100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.indicador-med {
|
||||||
|
position: absolute;
|
||||||
|
width: 60px;
|
||||||
|
height: 60px;
|
||||||
|
border-radius: 100%;
|
||||||
|
bottom: -60px;
|
||||||
|
left: 10px;
|
||||||
|
transition: left 0.5s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
<div class='page-sco py-2 py-md-4 h-100'>
|
||||||
|
<div class='container h-100'>
|
||||||
|
<div class='row justify-content-center align-items-center h-100'>
|
||||||
|
<div class='col-12'>
|
||||||
|
<div class='row justify-content-center'>
|
||||||
|
<div class="col-10 mb-2">
|
||||||
|
<h2 class="text-center fw-bold text-primary">Tipos de diálisis peritoneal</h2>
|
||||||
|
<hr class="border border-3 border-verde-oscuro hr-style mx-auto my-0">
|
||||||
|
</div>
|
||||||
|
<div class="col-12 px-0 mb-3">
|
||||||
|
<div class="card bg-white border-0 my-2 rounded-0 bg-custom p-3 text-center">
|
||||||
|
<div class="d-flex justify-content-center align-items-center flex-row">
|
||||||
|
<img src="img/3.1.png" class="img-fluid mx-3">
|
||||||
|
<p class="mb-0"><strong>Instrucciones:</strong> Presiona cada ícono, lee con atención las oraciones que se presentan acerca de los tipos de diálisis y determina si son falsas o verdaderas para llenar el medidor de salud del paciente.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="actividad-objects" class="col-12">
|
||||||
|
<div class="row justify-content-center align-items-center">
|
||||||
|
<div class="col-12 text-center mb-5">
|
||||||
|
<div class="content-medidor p-2 d-inline-flex flex-row justify-content-center align-items-center gap-3">
|
||||||
|
<img src="img/07.7.png" class="img-fluid">
|
||||||
|
<div class="termometro p-1">
|
||||||
|
<div id="#med0" class="med_style"></div>
|
||||||
|
<div id="#med1" class="med_style"></div>
|
||||||
|
<div id="#med2" class="med_style"></div>
|
||||||
|
<div id="#med3" class="med_style"></div>
|
||||||
|
<div id="#med4" class="med_style"></div>
|
||||||
|
<div id="#med5" class="med_style"></div>
|
||||||
|
<div id="indicador" class="indicador-med d-flex flex-row justify-content-center align-items-center">
|
||||||
|
<img src="img/07.5.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<img src="img/07.6.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="d-flex flex-row justify-content-center align-items-center gap-3">
|
||||||
|
<div class="object-btn text-center d-inline-block animate__animated animate__pulse animate__infinite" data-obj="0">
|
||||||
|
<img src="img/07.0.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
<div class="object-btn text-center d-inline-block animate__animated animate__pulse animate__infinite" data-obj="1">
|
||||||
|
<img src="img/07.1.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
<div class="object-btn text-center d-inline-block animate__animated animate__pulse animate__infinite" data-obj="2">
|
||||||
|
<img src="img/07.2.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
<div class="object-btn text-center d-inline-block animate__animated animate__pulse animate__infinite" data-obj="3">
|
||||||
|
<img src="img/07.3.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
<div class="object-btn text-center d-inline-block animate__animated animate__pulse animate__infinite" data-obj="4">
|
||||||
|
<img src="img/07.4.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="d-none">
|
||||||
|
<div id="pops-questions">
|
||||||
|
<div class="container-fluid">
|
||||||
|
<div class="row justify-content-center align-items-center">
|
||||||
|
<div id="txt-question" class="col-12 text-center text-verde-oscuro fw-bold mb-3"></div>
|
||||||
|
<div class="col-12">
|
||||||
|
<div id="txt-answers" class="d-flex flex-row justify-content-center align-items-center gap-3"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="pop0">
|
||||||
|
<div class="container-fluid">
|
||||||
|
<div class=" w-100 text-center">
|
||||||
|
<img src="img/3.5.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
<div class="row justify-content-center">
|
||||||
|
<div class="col-12 text-center mb-2">
|
||||||
|
<h3 class="text-secondary-dark fw-bold">¡Bien hecho!</h3>
|
||||||
|
</div>
|
||||||
|
<div class="col-12 text-center">
|
||||||
|
<p class="mb-0">Has concluido la actividad.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
$(function () {
|
||||||
|
"use strict";
|
||||||
|
$('.wrap-course-content').addClass('fake');
|
||||||
|
|
||||||
|
let questions;
|
||||||
|
let currentQuestionIndex = 0;
|
||||||
|
let currentQuestion;
|
||||||
|
let correctQuestions = 0;
|
||||||
|
let currentObjectBtn;
|
||||||
|
let isCorrectAnswer = false;
|
||||||
|
const bad = CourseNav.createSound('audio/feedback-incorrect.mpeg');
|
||||||
|
const good = CourseNav.createSound('audio/feedback-correct.mpeg');
|
||||||
|
|
||||||
|
const urlExcelFile = 'verdadero_falso.xlsx';
|
||||||
|
|
||||||
|
function readExcelFile(url, callback) {
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
xhr.open('GET', url, true);
|
||||||
|
xhr.responseType = 'arraybuffer';
|
||||||
|
xhr.onload = function (e) {
|
||||||
|
var arrayBuffer = xhr.response;
|
||||||
|
var data = new Uint8Array(arrayBuffer);
|
||||||
|
var workbook = XLSX.read(data, { type: "array" });
|
||||||
|
var result = {};
|
||||||
|
workbook.SheetNames.forEach(sheetName => {
|
||||||
|
var sheet = workbook.Sheets[sheetName];
|
||||||
|
result[sheetName] = XLSX.utils.sheet_to_json(sheet);
|
||||||
|
});
|
||||||
|
callback(result);
|
||||||
|
};
|
||||||
|
xhr.send();
|
||||||
|
}
|
||||||
|
|
||||||
|
function procesarPreguntas(data) {
|
||||||
|
const preguntas = data.map(fila => {
|
||||||
|
const opciones = [];
|
||||||
|
Object.keys(fila).forEach(key => {
|
||||||
|
if (key.startsWith('opcion')) {
|
||||||
|
opciones.push({
|
||||||
|
text: fila[key].trim(),
|
||||||
|
correct: key === 'opcion_c'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return {
|
||||||
|
pregunta: fila.pregunta.trim(),
|
||||||
|
opciones: opciones,
|
||||||
|
retroalimentacion_correcta: fila.retroalimentacion_correcta ? fila.retroalimentacion_correcta.trim() : '',
|
||||||
|
retroalimentacion_incorrecta: fila.retroalimentacion_incorrecta ? fila.retroalimentacion_incorrecta.trim() : ''
|
||||||
|
};
|
||||||
|
});
|
||||||
|
return preguntas;
|
||||||
|
}
|
||||||
|
|
||||||
|
function shuffleArray(array) {
|
||||||
|
for (let i = array.length - 1; i > 0; i--) {
|
||||||
|
const j = Math.floor(Math.random() * (i + 1));
|
||||||
|
[array[i], array[j]] = [array[j], array[i]];
|
||||||
|
}
|
||||||
|
return array;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Cargar preguntas al inicio
|
||||||
|
readExcelFile(urlExcelFile, function(data) {
|
||||||
|
const sheetData = data[Object.keys(data)[0]];
|
||||||
|
questions = procesarPreguntas(sheetData);
|
||||||
|
});
|
||||||
|
|
||||||
|
$('.object-btn').click(function (e) {
|
||||||
|
e.preventDefault();
|
||||||
|
if ($(this).hasClass('disabled')) return;
|
||||||
|
CourseNav.soundClick();
|
||||||
|
currentObjectBtn = $(this);
|
||||||
|
if (questions && questions.length > 0) {
|
||||||
|
showRandomQuestion();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
function showRandomQuestion() {
|
||||||
|
// Seleccionar pregunta aleatoria
|
||||||
|
const randomIndex = Math.floor(Math.random() * questions.length);
|
||||||
|
currentQuestion = questions[randomIndex];
|
||||||
|
|
||||||
|
const html = $("#pops-questions").html();
|
||||||
|
Swal.fire({
|
||||||
|
html: html,
|
||||||
|
target: "body",
|
||||||
|
customClass: {
|
||||||
|
popup: 'pop_html_style border border-3 border-primary rounded-4',
|
||||||
|
confirmButton: 'btn text-white bg-primary amor fw-semibold animate__animated animate__pulse animate__infinite'
|
||||||
|
},
|
||||||
|
confirmButtonText: "Cerrar",
|
||||||
|
showConfirmButton: false,
|
||||||
|
allowOutsideClick: false,
|
||||||
|
allowEscapeKey: false,
|
||||||
|
focusConfirm: false,
|
||||||
|
backdrop: "rgba(65, 60, 60, .95)",
|
||||||
|
width: "45em",
|
||||||
|
didOpen: () => {
|
||||||
|
displayQuestion();
|
||||||
|
},
|
||||||
|
didClose: () => {
|
||||||
|
CourseNav.audioController.stopAudio();
|
||||||
|
if (currentObjectBtn) {
|
||||||
|
currentObjectBtn.addClass('completed disabled');
|
||||||
|
checkAllCompleted();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function displayQuestion() {
|
||||||
|
const contentSwal = $(Swal.getHtmlContainer());
|
||||||
|
const txtPregunta = contentSwal.find('#txt-question');
|
||||||
|
const txtAnswers = contentSwal.find('#txt-answers');
|
||||||
|
|
||||||
|
txtPregunta.html(currentQuestion.pregunta);
|
||||||
|
|
||||||
|
// Aleatorizar respuestas
|
||||||
|
const shuffledOpciones = shuffleArray([...currentQuestion.opciones]);
|
||||||
|
|
||||||
|
let answersHtml = '';
|
||||||
|
shuffledOpciones.forEach((opcion, index) => {
|
||||||
|
answersHtml += `<div class="btn-answer text-white p-2 px-3" data-correct="${opcion.correct}">${opcion.text}</div>`;
|
||||||
|
});
|
||||||
|
|
||||||
|
txtAnswers.html(answersHtml);
|
||||||
|
|
||||||
|
// Event listener para respuestas
|
||||||
|
contentSwal.find('.btn-answer').click(function() {
|
||||||
|
isCorrectAnswer = $(this).data('correct');
|
||||||
|
$(this).addClass('selected');
|
||||||
|
if (isCorrectAnswer) {
|
||||||
|
good.play();
|
||||||
|
correctQuestions++;
|
||||||
|
moveIndicator();
|
||||||
|
Swal.close();
|
||||||
|
} else {
|
||||||
|
bad.play();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function moveIndicator() {
|
||||||
|
const positions = ['left: 90px', 'left: 170px', 'left: 250px', 'left: 330px', 'left: 410px'];
|
||||||
|
if (correctQuestions <= 5) {
|
||||||
|
$('#indicador').attr('style', positions[correctQuestions - 1]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function checkAllCompleted() {
|
||||||
|
const totalButtons = $('.object-btn').length;
|
||||||
|
const completedButtons = $('.object-btn.completed').length;
|
||||||
|
|
||||||
|
if (totalButtons === completedButtons) {
|
||||||
|
setTimeout(() => {
|
||||||
|
const html = $("#pop0").html();
|
||||||
|
Swal.fire({
|
||||||
|
html: html,
|
||||||
|
target: "body",
|
||||||
|
customClass: {
|
||||||
|
popup: 'pop_html_style border border-3 border-primary rounded-4',
|
||||||
|
confirmButton: 'btn text-white bg-primary amor fw-semibold animate__animated animate__pulse animate__infinite'
|
||||||
|
},
|
||||||
|
confirmButtonText: "Cerrar",
|
||||||
|
showConfirmButton: true,
|
||||||
|
allowOutsideClick: false,
|
||||||
|
allowEscapeKey: false,
|
||||||
|
backdrop: "rgba(65, 60, 60, .95)",
|
||||||
|
width: "35em",
|
||||||
|
didClose: () => {
|
||||||
|
CourseNav.setSlideVisited();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}, 250);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
@@ -0,0 +1,315 @@
|
|||||||
|
<style>
|
||||||
|
.fake {
|
||||||
|
background-image: url(img/bg04.jpg);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center;
|
||||||
|
background-size: cover;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hr-style {
|
||||||
|
opacity: 1;
|
||||||
|
width: 85%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.custom-grid {
|
||||||
|
position: relative;
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(6, 1fr);
|
||||||
|
grid-template-rows: auto;
|
||||||
|
gap: 10px;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
max-width: 1280px; /* Esto limita el ancho total */
|
||||||
|
margin: 0 auto;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-container {
|
||||||
|
width: 100%;
|
||||||
|
aspect-ratio: 1;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-container.disabled {
|
||||||
|
filter: grayscale(1);
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
<div class='page-sco py-2 py-md-4 h-100'>
|
||||||
|
<div class='container h-100'>
|
||||||
|
<div class='row justify-content-center align-items-center h-100'>
|
||||||
|
<div class='col-12'>
|
||||||
|
<div class='row justify-content-center'>
|
||||||
|
<div class="col-10 mb-2">
|
||||||
|
<h2 class="text-center fw-bold text-primary">¿Qué necesito para poder realizar la Diálisis Peritoneal Continua Ambulatoria (DPCA)?</h2>
|
||||||
|
<hr class="border border-3 border-verde-oscuro hr-style mx-auto my-0">
|
||||||
|
</div>
|
||||||
|
<div class="col-10 px-0 mb-1">
|
||||||
|
<div class="card bg-verde-gris border-0 my-2 rounded-4 bg-custom p-3 text-center">
|
||||||
|
<div class="d-flex justify-content-center align-items-center flex-row">
|
||||||
|
<img src="img/08.0.png" class="img-fluid mx-3">
|
||||||
|
<p class="mb-0"><strong>Instrucciones:</strong> Da clic en las tarjetas para encontrar los pares y descubrir los elementos necesarios para llevar a cabo la DPCA.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-12">
|
||||||
|
<di class="tablero d-flex flex-column justify-content-center align-items-center gap-2">
|
||||||
|
<div class="row-questions custom-grid" id="row-questions">
|
||||||
|
<div class="card-container">
|
||||||
|
<div class="front">
|
||||||
|
<img src="img/08.front.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
<div class="back">
|
||||||
|
<img src="img/08.1.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card-container">
|
||||||
|
<div class="front">
|
||||||
|
<img src="img/08.front.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
<div class="back">
|
||||||
|
<img src="img/08.2.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card-container">
|
||||||
|
<div class="front">
|
||||||
|
<img src="img/08.front.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
<div class="back">
|
||||||
|
<img src="img/08.3.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card-container">
|
||||||
|
<div class="front">
|
||||||
|
<img src="img/08.front.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
<div class="back">
|
||||||
|
<img src="img/08.4.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card-container">
|
||||||
|
<div class="front">
|
||||||
|
<img src="img/08.front.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
<div class="back">
|
||||||
|
<img src="img/08.5.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card-container">
|
||||||
|
<div class="front">
|
||||||
|
<img src="img/08.front.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
<div class="back">
|
||||||
|
<img src="img/08.6.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row-answer custom-grid" id="row-answer">
|
||||||
|
<div class="card-container">
|
||||||
|
<div class="front">
|
||||||
|
<img src="img/08.front.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
<div class="back">
|
||||||
|
<img src="img/08.1c.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card-container">
|
||||||
|
<div class="front">
|
||||||
|
<img src="img/08.front.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
<div class="back">
|
||||||
|
<img src="img/08.2c.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card-container">
|
||||||
|
<div class="front">
|
||||||
|
<img src="img/08.front.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
<div class="back">
|
||||||
|
<img src="img/08.3c.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card-container">
|
||||||
|
<div class="front">
|
||||||
|
<img src="img/08.front.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
<div class="back">
|
||||||
|
<img src="img/08.4c.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card-container">
|
||||||
|
<div class="front">
|
||||||
|
<img src="img/08.front.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
<div class="back">
|
||||||
|
<img src="img/08.5c.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card-container">
|
||||||
|
<div class="front">
|
||||||
|
<img src="img/08.front.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
<div class="back">
|
||||||
|
<img src="img/08.6c.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="d-none">
|
||||||
|
<div id="retro-pop">
|
||||||
|
<div class="container-fluid">
|
||||||
|
<div class=" w-100 text-center">
|
||||||
|
<img src="img/3.5.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
<div class="row justify-content-center">
|
||||||
|
<div class="col-12 text-center mb-2">
|
||||||
|
<h3 class="text-secondary-dark fw-bold">¡Bien hecho!</h3>
|
||||||
|
</div>
|
||||||
|
<div class="col-12 text-center">
|
||||||
|
<p class="mb-0">Has concluido la actividad.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
$(function () {
|
||||||
|
"use strict";
|
||||||
|
$('.wrap-course-content').addClass('fake');
|
||||||
|
const flip_sound = CourseNav.createSound('audio/flip.mp3');
|
||||||
|
const feedbackcorrect = CourseNav.createSound('audio/feedback-correct.mpeg');
|
||||||
|
const feedbackincorrect = CourseNav.createSound('audio/feedback-incorrect.mpeg');
|
||||||
|
|
||||||
|
// Función para asignar pares a cada tarjeta
|
||||||
|
function assignPairs(fatherId) {
|
||||||
|
const optionsContainer = document.getElementById(fatherId);
|
||||||
|
const optionsArray = Array.from(optionsContainer.children);
|
||||||
|
optionsArray.forEach((option, index) => {
|
||||||
|
option.setAttribute('data-par', index);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// Función para mezclar las tarjetas dentro del contenedor especificado
|
||||||
|
function randomizeOptions(fatherId) {
|
||||||
|
const optionsContainer = document.getElementById(fatherId);
|
||||||
|
const optionsArray = Array.from(optionsContainer.children);
|
||||||
|
const shuffledOptions = optionsArray.sort(() => Math.random() - 0.5);
|
||||||
|
shuffledOptions.forEach(option => optionsContainer.appendChild(option));
|
||||||
|
}
|
||||||
|
|
||||||
|
// Inicializar el plugin flip y configurar la lógica del memorama con la restricción de fila
|
||||||
|
function initializeFlip() {
|
||||||
|
let flippedCards = [];
|
||||||
|
let lastFlippedRow = ""; // Para rastrear la última fila girada
|
||||||
|
|
||||||
|
$(".card-container").flip({
|
||||||
|
trigger: 'manual' // Control manual del volteo
|
||||||
|
});
|
||||||
|
|
||||||
|
$(".card-container").on("click", function () {
|
||||||
|
const $card = $(this);
|
||||||
|
const currentRow = $card.closest(".row-answer").length > 0 ? "row-answer" : "row-questions";
|
||||||
|
|
||||||
|
// Limitar el giro a una carta por fila y evitar tres giros
|
||||||
|
if (flippedCards.length < 2 && (flippedCards.length === 0 || currentRow !== lastFlippedRow)) {
|
||||||
|
$card.flip(true);
|
||||||
|
flippedCards.push($card);
|
||||||
|
lastFlippedRow = currentRow;
|
||||||
|
flip_sound.play();
|
||||||
|
// Si hay dos cartas volteadas, verificar coincidencia
|
||||||
|
if (flippedCards.length === 2) {
|
||||||
|
const [firstCard, secondCard] = flippedCards;
|
||||||
|
|
||||||
|
if (firstCard.data("par") === secondCard.data("par")) {
|
||||||
|
// Las tarjetas coinciden, dejarlas volteadas y marcar como emparejadas
|
||||||
|
firstCard.addClass("disabled");
|
||||||
|
secondCard.addClass("disabled");
|
||||||
|
// Agregar el efecto de resplandor
|
||||||
|
gsap.to(firstCard, {
|
||||||
|
duration: 1,
|
||||||
|
boxShadow: "0px 0px 20px 10px #fff",
|
||||||
|
onComplete: function () {
|
||||||
|
// Quitar el efecto de resplandor después de 2 segundos
|
||||||
|
gsap.to(firstCard, {
|
||||||
|
duration: 1,
|
||||||
|
delay: 1,
|
||||||
|
boxShadow: "0px 0px 0px 0px #fff"
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
// Agregar el efecto de resplandor
|
||||||
|
gsap.to(secondCard, {
|
||||||
|
duration: 1,
|
||||||
|
boxShadow: "0px 0px 20px 10px #fff",
|
||||||
|
onComplete: function () {
|
||||||
|
// Quitar el efecto de resplandor después de 2 segundos
|
||||||
|
gsap.to(secondCard, {
|
||||||
|
duration: 1,
|
||||||
|
delay: 1,
|
||||||
|
boxShadow: "0px 0px 0px 0px #fff"
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
CourseNav.audioController.stopAllSoundsAndPlay(feedbackcorrect);
|
||||||
|
flippedCards = [];
|
||||||
|
checkGameCompletion();
|
||||||
|
} else {
|
||||||
|
CourseNav.audioController.stopAllSoundsAndPlay(feedbackincorrect);
|
||||||
|
// Las tarjetas no coinciden, voltearlas de nuevo después de un breve retraso
|
||||||
|
setTimeout(() => {
|
||||||
|
firstCard.flip(false);
|
||||||
|
secondCard.flip(false);
|
||||||
|
flippedCards = [];
|
||||||
|
lastFlippedRow = ""; // Reiniciar el rastreo de fila
|
||||||
|
}, 850);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// Verificar si todas las tarjetas han sido emparejadas
|
||||||
|
function checkGameCompletion() {
|
||||||
|
const totalPairs = $(".card-container").length / 2;
|
||||||
|
const matchedPairs = $(".card-container.disabled").length / 2;
|
||||||
|
|
||||||
|
if (matchedPairs === totalPairs) {
|
||||||
|
setTimeout(showFeedbackPopup, 250);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function showFeedbackPopup() {
|
||||||
|
const html = $("#retro-pop").html();
|
||||||
|
Swal.fire({
|
||||||
|
html: html,
|
||||||
|
target: "body",
|
||||||
|
customClass: {
|
||||||
|
popup: 'pop_html_style border border-3 border-primary rounded-4',
|
||||||
|
confirmButton: 'btn text-white bg-primary amor fw-semibold animate__animated animate__pulse animate__infinite'
|
||||||
|
},
|
||||||
|
confirmButtonText: "Cerrar",
|
||||||
|
showConfirmButton: true,
|
||||||
|
allowOutsideClick: false,
|
||||||
|
allowEscapeKey: false,
|
||||||
|
backdrop: "rgba(65, 60, 60, .95)",
|
||||||
|
width: "35em",
|
||||||
|
didClose: () => {
|
||||||
|
CourseNav.setSlideVisited();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
assignPairs('row-answer');
|
||||||
|
assignPairs('row-questions');
|
||||||
|
randomizeOptions('row-answer');
|
||||||
|
randomizeOptions('row-questions');
|
||||||
|
initializeFlip();
|
||||||
|
});
|
||||||
|
</script>
|
||||||
@@ -0,0 +1,250 @@
|
|||||||
|
<style>
|
||||||
|
.fake {
|
||||||
|
background-image: url(img/bg06.jpg);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center;
|
||||||
|
background-size: cover;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hr-style {
|
||||||
|
opacity: 1;
|
||||||
|
width: 80%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bg-custom {
|
||||||
|
background: #f0f4f2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tablero {
|
||||||
|
position: relative;
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(6, 1fr);
|
||||||
|
grid-template-rows: repeat(2, 1fr);
|
||||||
|
gap: 10px;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
max-width: 1280px; /* Esto limita el ancho total */
|
||||||
|
margin: 0 auto;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-container2 {
|
||||||
|
width: 100%;
|
||||||
|
aspect-ratio: 1;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<div 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-12'>
|
||||||
|
<div class='row justify-content-center'>
|
||||||
|
<div class="col-10 mb-2">
|
||||||
|
<h2 class="text-center fw-bold text-primary">¿Qué necesito para poder realizar la Diálisis Peritoneal Automatizada (DPA)?</h2>
|
||||||
|
<hr class="border border-3 border-verde-oscuro hr-style mx-auto my-0">
|
||||||
|
</div>
|
||||||
|
<div class="col-9 mb-1">
|
||||||
|
<div class="card border-0 my-2 rounded-15 bg-custom shadow p-3 py-2 text-center">
|
||||||
|
<div class="d-flex justify-content-center align-items-center flex-row">
|
||||||
|
<img src="img/3.1.png" class="img-fluid mx-3">
|
||||||
|
<p class="mb-0"><strong>Instrucciones:</strong> Da clic en los elementos para descubrir cuáles son necesarios para realizar la DPA.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="tablero">
|
||||||
|
<div class="card-container2" data-correct="0">
|
||||||
|
<div class="front">
|
||||||
|
<img src="img/09.0.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
<div class="back">
|
||||||
|
<img src="img/09.12.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card-container2" data-correct="1">
|
||||||
|
<div class="front">
|
||||||
|
<img src="img/09.1.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
<div class="back">
|
||||||
|
<img src="img/09.13.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card-container2" data-correct="0">
|
||||||
|
<div class="front">
|
||||||
|
<img src="img/09.2.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
<div class="back">
|
||||||
|
<img src="img/09.12.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card-container2" data-correct="0">
|
||||||
|
<div class="front">
|
||||||
|
<img src="img/09.3.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
<div class="back">
|
||||||
|
<img src="img/09.12.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card-container2" data-correct="1">
|
||||||
|
<div class="front">
|
||||||
|
<img src="img/09.4.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
<div class="back">
|
||||||
|
<img src="img/09.13.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card-container2" data-correct="0">
|
||||||
|
<div class="front">
|
||||||
|
<img src="img/09.5.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
<div class="back">
|
||||||
|
<img src="img/09.12.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card-container2" data-correct="0">
|
||||||
|
<div class="front">
|
||||||
|
<img src="img/09.6.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
<div class="back">
|
||||||
|
<img src="img/09.12.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card-container2" data-correct="0">
|
||||||
|
<div class="front">
|
||||||
|
<img src="img/09.7.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
<div class="back">
|
||||||
|
<img src="img/09.12.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card-container2" data-correct="0">
|
||||||
|
<div class="front">
|
||||||
|
<img src="img/09.8.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
<div class="back">
|
||||||
|
<img src="img/09.12.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card-container2" data-correct="1">
|
||||||
|
<div class="front">
|
||||||
|
<img src="img/09.9.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
<div class="back">
|
||||||
|
<img src="img/09.13.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card-container2" data-correct="1">
|
||||||
|
<div class="front">
|
||||||
|
<img src="img/09.10.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
<div class="back">
|
||||||
|
<img src="img/09.13.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card-container2" data-correct="1">
|
||||||
|
<div class="front">
|
||||||
|
<img src="img/09.11.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
<div class="back">
|
||||||
|
<img src="img/09.13.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="d-none">
|
||||||
|
<div id="pop0">
|
||||||
|
<div class="container-fluid">
|
||||||
|
<div class=" w-100 text-center">
|
||||||
|
<img src="img/09.14.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
<div class="row justify-content-center">
|
||||||
|
<div class="col-12 text-center mb-2">
|
||||||
|
<h3 class="text-secondary-dark fw-bold">¡Recuerda!</h3>
|
||||||
|
</div>
|
||||||
|
<div class="col-12 text-center">
|
||||||
|
<p class="mb-0">Siempre debes lavar tus manos antes de empezar cualquier terapia.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
$(function () {
|
||||||
|
"use strict";
|
||||||
|
$('.wrap-course-content').addClass('fake');
|
||||||
|
const flip_sound = CourseNav.createSound('audio/flip.mp3');
|
||||||
|
const feedbackcorrect = CourseNav.createSound('audio/feedback-correct.mpeg');
|
||||||
|
const feedbackincorrect = CourseNav.createSound('audio/feedback-incorrect.mpeg');
|
||||||
|
|
||||||
|
$(".card-container2").flip({
|
||||||
|
trigger: 'manual' // Control manual del volteo
|
||||||
|
});
|
||||||
|
|
||||||
|
function shuffleArray(array) {
|
||||||
|
for (let i = array.length - 1; i > 0; i--) {
|
||||||
|
const j = Math.floor(Math.random() * (i + 1));
|
||||||
|
[array[i], array[j]] = [array[j], array[i]];
|
||||||
|
}
|
||||||
|
return array;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Shuffle cards
|
||||||
|
const tablero = document.querySelector('.tablero');
|
||||||
|
const cards = Array.from(tablero.querySelectorAll('.card-container2'));
|
||||||
|
const shuffledCards = shuffleArray(cards);
|
||||||
|
shuffledCards.forEach(card => tablero.appendChild(card));
|
||||||
|
|
||||||
|
$(".card-container2").click(function (e) {
|
||||||
|
e.preventDefault();
|
||||||
|
const $card = $(this);
|
||||||
|
if ($card.hasClass('disabled')) return;
|
||||||
|
flip_sound.play();
|
||||||
|
$card.flip(true);
|
||||||
|
if($card.data('correct') == '0') {
|
||||||
|
CourseNav.audioController.stopAllSoundsAndPlay(feedbackcorrect);
|
||||||
|
$card.addClass('disabled');
|
||||||
|
}else{
|
||||||
|
CourseNav.audioController.stopAllSoundsAndPlay(feedbackincorrect);
|
||||||
|
setTimeout(() => {
|
||||||
|
$card.flip(false);
|
||||||
|
}, 700);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Check if all correct cards are completed
|
||||||
|
const correctCards = $('.card-container2[data-correct="0"]');
|
||||||
|
const completedCorrectCards = $('.card-container2[data-correct="0"].disabled');
|
||||||
|
if (correctCards.length === completedCorrectCards.length) {
|
||||||
|
checkAllCompleted();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
function checkAllCompleted() {
|
||||||
|
setTimeout(() => {
|
||||||
|
const html = $("#pop0").html();
|
||||||
|
Swal.fire({
|
||||||
|
html: html,
|
||||||
|
target: "body",
|
||||||
|
customClass: {
|
||||||
|
popup: 'pop_html_style border border-3 border-primary rounded-4',
|
||||||
|
confirmButton: 'btn text-white bg-primary amor fw-semibold animate__animated animate__pulse animate__infinite'
|
||||||
|
},
|
||||||
|
confirmButtonText: "Cerrar",
|
||||||
|
showConfirmButton: true,
|
||||||
|
allowOutsideClick: false,
|
||||||
|
allowEscapeKey: false,
|
||||||
|
backdrop: "rgba(65, 60, 60, .95)",
|
||||||
|
width: "35em",
|
||||||
|
didClose: () => {
|
||||||
|
CourseNav.setSlideVisited();
|
||||||
|
$(".card-container2").addClass('disabled');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}, 250);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
<style>
|
||||||
|
.fake {
|
||||||
|
background-image: url(img/bg07.jpg);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center;
|
||||||
|
background-size: cover;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-style {
|
||||||
|
border-radius: 20px;
|
||||||
|
border-top-left-radius: 0;
|
||||||
|
border-bottom-left-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hr-style {
|
||||||
|
opacity: 1;
|
||||||
|
width: 60%;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<div 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-12 ps-0'>
|
||||||
|
<div class='row justify-content-center align-items-center'>
|
||||||
|
<div class="col-5 animate__animated animate__lightSpeedInLeft">
|
||||||
|
<div class="card card-style bg-verde-oscuro ps-5 pr-3 py-3 border-0 text-center">
|
||||||
|
<h2 class="text-white fw-bold">¿Qué es un catéter?</h2>
|
||||||
|
<hr class="hr-style border border-3 border-verde-ceniza hr-style mx-auto my-0">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-7 text-center animate__animated animate__zoomIn">
|
||||||
|
<img src="img/10.0.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
$(function () {
|
||||||
|
"use strict";
|
||||||
|
$('.wrap-course-content').addClass('fake');
|
||||||
|
CourseNav.setSlideVisited();
|
||||||
|
});
|
||||||
|
</script>
|
||||||
@@ -0,0 +1,461 @@
|
|||||||
|
<style>
|
||||||
|
.fake {
|
||||||
|
background-image: url(img/bg11.jpg);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center;
|
||||||
|
background-size: cover;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hr-style {
|
||||||
|
opacity: 1;
|
||||||
|
width: 40%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content-cards {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dislike-indicator {
|
||||||
|
top: 50%;
|
||||||
|
left: 20px;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
z-index: 10;
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.like-indicator {
|
||||||
|
top: 50%;
|
||||||
|
right: 20px;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
z-index: 10;
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.indicator-circle {
|
||||||
|
width: 60px;
|
||||||
|
height: 60px;
|
||||||
|
font-size: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gradient-bg {
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gradient-left {
|
||||||
|
left: 0;
|
||||||
|
top: 10%;
|
||||||
|
width: 50%;
|
||||||
|
height: 80%;
|
||||||
|
background: #925c8d;
|
||||||
|
background: linear-gradient(270deg, rgba(146, 92, 141, 1) 0%, rgba(146, 92, 141, 0) 100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.gradient-right {
|
||||||
|
right: 0;
|
||||||
|
top: 10%;
|
||||||
|
width: 50%;
|
||||||
|
height: 80%;
|
||||||
|
background: #6c9d7a;
|
||||||
|
background: linear-gradient(90deg, rgba(108, 157, 122, 1) 0%, rgba(108, 157, 122, 0) 100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.bg-image {
|
||||||
|
z-index: 2;
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bg-image-left {
|
||||||
|
left: 20px;
|
||||||
|
bottom: 60px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bg-image-right {
|
||||||
|
right: 20px;
|
||||||
|
bottom: 60px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bg-image img {
|
||||||
|
width: 220px;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-stack {
|
||||||
|
position: relative;
|
||||||
|
width: 326px;
|
||||||
|
height: 326px;
|
||||||
|
margin: 0 auto;
|
||||||
|
z-index: 5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tinder-card {
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
cursor: grab;
|
||||||
|
transition: transform 0.3s ease;
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tinder-card img {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: cover;
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<div 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-12">
|
||||||
|
<div class="row justify-content-center">
|
||||||
|
<div class="col-10 mb-2 animate__animated animate__bounceInDown">
|
||||||
|
<h2 class="text-center fw-bold text-primary">Características del sitio de salida</h2>
|
||||||
|
<hr class="border border-3 border-verde-oscuro hr-style mx-auto my-0" />
|
||||||
|
</div>
|
||||||
|
<div class="col-12 px-0 mb-1 animate__animated animate__lightSpeedInLeft" id="col-instrucciones">
|
||||||
|
<div class="card bg-white border-0 my-2 rounded-0 bg-custom px-3 py-2 text-center">
|
||||||
|
<div class="d-flex justify-content-center align-items-center flex-row gap-2">
|
||||||
|
<img src="img/3.1.png" class="img-fluid mx-3" />
|
||||||
|
<div class="parrafos text-start">
|
||||||
|
<p class="mb-2"><strong>Instrucciones:</strong> Observa las imágenes del sitio de salida que se presentan en las tarjetas.</p>
|
||||||
|
<p class="mb-0">
|
||||||
|
Si consideras que se encuentra sano, desliza la tarjeta a la <strong class="text-verde-pino">derecha</strong>. Si crees que no está sano,
|
||||||
|
desliza la tarjeta a la <strong class="text-verde-pino">izquierda</strong>.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="row justify-content-center">
|
||||||
|
<div class="col-12 mb-2">
|
||||||
|
<div class="d-flex justify-content-center align-items-center gap-2 flex-row indicadores-avance"></div>
|
||||||
|
</div>
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="position-relative content-cards text-center">
|
||||||
|
<!-- Like/Dislike indicators -->
|
||||||
|
<div class="position-absolute dislike-indicator" id="dislike-indicator">
|
||||||
|
<div class="bg-danger text-white rounded-circle d-flex align-items-center justify-content-center indicator-circle">✕</div>
|
||||||
|
<div class="text-danger fw-bold mt-2">NO SANO</div>
|
||||||
|
</div>
|
||||||
|
<div class="position-absolute like-indicator" id="like-indicator">
|
||||||
|
<div class="bg-success text-white rounded-circle d-flex align-items-center justify-content-center indicator-circle">✓</div>
|
||||||
|
<div class="text-success fw-bold mt-2">SANO</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Degradados de fondo -->
|
||||||
|
<div class="position-absolute w-100 h-100 gradient-bg">
|
||||||
|
<div class="position-absolute gradient-left"></div>
|
||||||
|
<div class="position-absolute gradient-right"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Imágenes de fondo -->
|
||||||
|
<div class="position-absolute bg-image bg-image-left">
|
||||||
|
<img src="img/11.nosano.png" alt="No Sano" />
|
||||||
|
</div>
|
||||||
|
<div class="position-absolute bg-image bg-image-right">
|
||||||
|
<img src="img/11.sano.png" alt="Sano" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="card-stack" class="card-stack">
|
||||||
|
<div data-index="0" class="tinder-card">
|
||||||
|
<img src="img/11.0.png" alt="Imagen 1" />
|
||||||
|
</div>
|
||||||
|
<div data-index="1" class="tinder-card">
|
||||||
|
<img src="img/11.1.png" alt="Imagen 2" />
|
||||||
|
</div>
|
||||||
|
<div data-index="2" class="tinder-card">
|
||||||
|
<img src="img/11.2.png" alt="Imagen 3" />
|
||||||
|
</div>
|
||||||
|
<div data-index="3" class="tinder-card">
|
||||||
|
<img src="img/11.3.png" alt="Imagen 4" />
|
||||||
|
</div>
|
||||||
|
<div data-index="4" class="tinder-card">
|
||||||
|
<img src="img/11.4.png" alt="Imagen 5" />
|
||||||
|
</div>
|
||||||
|
<div data-index="5" class="tinder-card">
|
||||||
|
<img src="img/11.5.png" alt="Imagen 6" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="d-none">
|
||||||
|
<div id="pop0">
|
||||||
|
<div class="container-fluid">
|
||||||
|
<div class=" w-100 text-center">
|
||||||
|
<img src="img/3.5.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
<div class="row justify-content-center">
|
||||||
|
<div class="col-12 text-center mb-2">
|
||||||
|
<h3 class="text-secondary-dark fw-bold">Ten en cuenta que…</h3>
|
||||||
|
</div>
|
||||||
|
<div class="col-12 text-center">
|
||||||
|
<p class="mb-0">En caso de alguna complicación, se debe acudir a la unidad de diálisis.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
$(function () {
|
||||||
|
"use strict";
|
||||||
|
$(".wrap-course-content").addClass("fake");
|
||||||
|
const feedbackcorrect = CourseNav.createSound("audio/feedback-correct.mpeg");
|
||||||
|
const feedbackincorrect = CourseNav.createSound("audio/feedback-incorrect.mpeg");
|
||||||
|
|
||||||
|
const respuestasCorrectas = ["true", "true", "false", "false", "false"];
|
||||||
|
|
||||||
|
function shuffleArray(array) {
|
||||||
|
for (let i = array.length - 1; i > 0; i--) {
|
||||||
|
const j = Math.floor(Math.random() * (i + 1));
|
||||||
|
[array[i], array[j]] = [array[j], array[i]];
|
||||||
|
}
|
||||||
|
return array;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Shuffle cards and answers
|
||||||
|
const cards = Array.from(document.querySelectorAll(".tinder-card"));
|
||||||
|
const cardsData = cards.map((card, index) => ({
|
||||||
|
element: card,
|
||||||
|
answer: respuestasCorrectas[index],
|
||||||
|
}));
|
||||||
|
|
||||||
|
const shuffledData = shuffleArray(cardsData);
|
||||||
|
const stack = document.getElementById("card-stack");
|
||||||
|
stack.innerHTML = "";
|
||||||
|
|
||||||
|
const shuffledAnswers = [];
|
||||||
|
shuffledData.forEach((item, index) => {
|
||||||
|
item.element.style.zIndex = shuffledData.length - index;
|
||||||
|
stack.appendChild(item.element);
|
||||||
|
shuffledAnswers[index] = item.answer;
|
||||||
|
});
|
||||||
|
|
||||||
|
let currentCardIndex = 0;
|
||||||
|
let userAnswers = [];
|
||||||
|
let isProcessing = false;
|
||||||
|
let isDragging = false;
|
||||||
|
let startX = 0;
|
||||||
|
let startY = 0;
|
||||||
|
let currentX = 0;
|
||||||
|
let currentY = 0;
|
||||||
|
|
||||||
|
function initTinderCards() {
|
||||||
|
const currentCard = shuffledData[currentCardIndex]?.element;
|
||||||
|
if (!currentCard) return;
|
||||||
|
|
||||||
|
currentCard.addEventListener("mousedown", handleStart, { passive: false });
|
||||||
|
currentCard.addEventListener("touchstart", handleStart, { passive: false });
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleStart(e) {
|
||||||
|
if (isProcessing) return;
|
||||||
|
e.preventDefault();
|
||||||
|
isDragging = true;
|
||||||
|
const touch = e.type === "touchstart" ? e.touches[0] : e;
|
||||||
|
startX = touch.clientX;
|
||||||
|
startY = touch.clientY;
|
||||||
|
|
||||||
|
const card = e.target.closest(".tinder-card");
|
||||||
|
card.style.transition = "none";
|
||||||
|
card.style.cursor = "grabbing";
|
||||||
|
|
||||||
|
document.addEventListener("mousemove", handleMove, { passive: false });
|
||||||
|
document.addEventListener("touchmove", handleMove, { passive: false });
|
||||||
|
document.addEventListener("mouseup", handleEnd);
|
||||||
|
document.addEventListener("touchend", handleEnd);
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleMove(e) {
|
||||||
|
if (!isDragging || isProcessing) return;
|
||||||
|
e.preventDefault();
|
||||||
|
|
||||||
|
const touch = e.type === "touchmove" ? e.touches[0] : e;
|
||||||
|
currentX = touch.clientX - startX;
|
||||||
|
currentY = touch.clientY - startY;
|
||||||
|
|
||||||
|
const card = shuffledData[currentCardIndex]?.element;
|
||||||
|
if (!card) return;
|
||||||
|
|
||||||
|
const rotation = currentX * 0.1;
|
||||||
|
card.style.transform = `translate(${currentX}px, ${currentY}px) rotate(${rotation}deg)`;
|
||||||
|
|
||||||
|
const likeIndicator = document.getElementById("like-indicator");
|
||||||
|
const dislikeIndicator = document.getElementById("dislike-indicator");
|
||||||
|
|
||||||
|
if (currentX > 50) {
|
||||||
|
likeIndicator.style.opacity = Math.min(1, (currentX - 50) / 100);
|
||||||
|
dislikeIndicator.style.opacity = 0;
|
||||||
|
} else if (currentX < -50) {
|
||||||
|
dislikeIndicator.style.opacity = Math.min(1, (Math.abs(currentX) - 50) / 100);
|
||||||
|
likeIndicator.style.opacity = 0;
|
||||||
|
} else {
|
||||||
|
likeIndicator.style.opacity = 0;
|
||||||
|
dislikeIndicator.style.opacity = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleEnd(e) {
|
||||||
|
if (!isDragging || isProcessing) return;
|
||||||
|
isDragging = false;
|
||||||
|
|
||||||
|
document.removeEventListener("mousemove", handleMove);
|
||||||
|
document.removeEventListener("touchmove", handleMove);
|
||||||
|
document.removeEventListener("mouseup", handleEnd);
|
||||||
|
document.removeEventListener("touchend", handleEnd);
|
||||||
|
|
||||||
|
const card = shuffledData[currentCardIndex]?.element;
|
||||||
|
if (!card) return;
|
||||||
|
|
||||||
|
card.style.transition = "transform 0.3s ease";
|
||||||
|
card.style.cursor = "grab";
|
||||||
|
|
||||||
|
const likeIndicator = document.getElementById("like-indicator");
|
||||||
|
const dislikeIndicator = document.getElementById("dislike-indicator");
|
||||||
|
|
||||||
|
likeIndicator.style.opacity = 0;
|
||||||
|
dislikeIndicator.style.opacity = 0;
|
||||||
|
|
||||||
|
if (Math.abs(currentX) > 100) {
|
||||||
|
isProcessing = true;
|
||||||
|
const isLike = currentX > 0;
|
||||||
|
const correctAnswer = shuffledAnswers[currentCardIndex] === "true";
|
||||||
|
const isCorrect = (isLike && correctAnswer) || (!isLike && !correctAnswer);
|
||||||
|
|
||||||
|
animateCardOut(card, isLike, isCorrect);
|
||||||
|
processSwipe(isLike, isCorrect);
|
||||||
|
} else {
|
||||||
|
card.style.transform = "";
|
||||||
|
}
|
||||||
|
|
||||||
|
currentX = 0;
|
||||||
|
currentY = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
function animateCardOut(card, isLike, isCorrect) {
|
||||||
|
if (isCorrect) {
|
||||||
|
const direction = isLike ? 1 : -1;
|
||||||
|
card.style.transform = `translateX(${direction * 400}px) rotate(${direction * 30}deg)`;
|
||||||
|
card.style.opacity = "0";
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
|
card.style.display = "none";
|
||||||
|
nextCard();
|
||||||
|
}, 300);
|
||||||
|
} else {
|
||||||
|
// Animación de rebote para respuesta incorrecta
|
||||||
|
card.style.transform = "scale(0.95)";
|
||||||
|
setTimeout(() => {
|
||||||
|
card.style.transform = "";
|
||||||
|
isProcessing = false;
|
||||||
|
}, 200);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function nextCard() {
|
||||||
|
currentCardIndex++;
|
||||||
|
updateProgress();
|
||||||
|
if (currentCardIndex < shuffledData.length) {
|
||||||
|
initTinderCards();
|
||||||
|
isProcessing = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
initTinderCards();
|
||||||
|
|
||||||
|
function processSwipe(isLike, isCorrect) {
|
||||||
|
if (isCorrect) {
|
||||||
|
feedbackcorrect.play();
|
||||||
|
|
||||||
|
userAnswers.push({
|
||||||
|
cardIndex: currentCardIndex,
|
||||||
|
userAnswer: isLike,
|
||||||
|
isCorrect: true,
|
||||||
|
});
|
||||||
|
|
||||||
|
if (currentCardIndex + 1 >= shuffledAnswers.length) {
|
||||||
|
setTimeout(() => {
|
||||||
|
updateProgress();
|
||||||
|
showResults();
|
||||||
|
}, 500);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
feedbackincorrect.play();
|
||||||
|
// No avanzar, permitir reintentar
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function updateProgress() {
|
||||||
|
const indicators = document.querySelector(".indicadores-avance");
|
||||||
|
indicators.innerHTML = "";
|
||||||
|
|
||||||
|
for (let i = 0; i < shuffledAnswers.length; i++) {
|
||||||
|
const indicator = document.createElement("div");
|
||||||
|
indicator.style.cssText = "width: 40px; height: 40px; margin: 0 8px; display: flex; align-items: center; justify-content: center;";
|
||||||
|
|
||||||
|
if (i < userAnswers.length) {
|
||||||
|
const img = document.createElement("img");
|
||||||
|
img.style.cssText = "width: 100%; height: 100%;";
|
||||||
|
img.src = "img/11.good.png";
|
||||||
|
indicator.appendChild(img);
|
||||||
|
} else if (i === currentCardIndex) {
|
||||||
|
indicator.style.cssText += "background-color: #2196F3; border-radius: 50%; color: white; font-size: 18px; font-weight: bold;";
|
||||||
|
indicator.innerHTML = (i + 1).toString();
|
||||||
|
} else {
|
||||||
|
indicator.style.cssText += "background-color: #E0E0E0; border-radius: 50%; color: #999; font-size: 18px; font-weight: bold;";
|
||||||
|
indicator.innerHTML = (i + 1).toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
indicators.appendChild(indicator);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function showResults() {
|
||||||
|
// Ocultar instrucciones
|
||||||
|
document.getElementById("col-instrucciones").style.display = "none";
|
||||||
|
|
||||||
|
const resultHTML = `
|
||||||
|
<div class="text-center">
|
||||||
|
<h3>¡Actividad completada!</h3>
|
||||||
|
<p>¡Todas las respuestas fueron correctas!</p>
|
||||||
|
</div>
|
||||||
|
`;
|
||||||
|
checkAllCompleted();
|
||||||
|
document.querySelector(".content-cards").innerHTML = resultHTML;
|
||||||
|
CourseNav.setSlideVisited(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
function checkAllCompleted() {
|
||||||
|
const html = $("#pop0").html();
|
||||||
|
Swal.fire({
|
||||||
|
html: html,
|
||||||
|
target: document.getElementById('wrap-course-content'),
|
||||||
|
customClass: {
|
||||||
|
popup: "pop_html_style border border-3 border-primary rounded-4",
|
||||||
|
confirmButton: "btn text-white bg-primary amor fw-semibold animate__animated animate__pulse animate__infinite",
|
||||||
|
},
|
||||||
|
confirmButtonText: "Cerrar",
|
||||||
|
showConfirmButton: true,
|
||||||
|
allowOutsideClick: false,
|
||||||
|
allowEscapeKey: false,
|
||||||
|
backdrop: "rgba(65, 60, 60, .95)",
|
||||||
|
width: "35em",
|
||||||
|
didClose: () => {
|
||||||
|
CourseNav.setSlideVisited();
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// Initialize progress indicators
|
||||||
|
updateProgress();
|
||||||
|
});
|
||||||
|
</script>
|
||||||
@@ -0,0 +1,186 @@
|
|||||||
|
<style>
|
||||||
|
.fake {
|
||||||
|
background-image: url(img/bg12.jpg);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center;
|
||||||
|
background-size: cover;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hr-style {
|
||||||
|
opacity: 1;
|
||||||
|
width: 40%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-respuesta {
|
||||||
|
max-width: 500px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<div 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-12'>
|
||||||
|
<div class='row justify-content-center'>
|
||||||
|
<div class="col-10 mb-2">
|
||||||
|
<h2 class="text-center fw-bold text-primary">Cuidados del sitio de salida y complicaciones</h2>
|
||||||
|
<hr class="border border-3 border-verde-oscuro hr-style mx-auto my-0">
|
||||||
|
</div>
|
||||||
|
<div class="col-10 px-0 mb-1">
|
||||||
|
<div class="card bg-lila-claro border-0 my-2 rounded-4 bg-custom px-3 py-2 text-center">
|
||||||
|
<div class="d-flex justify-content-center align-items-center flex-row">
|
||||||
|
<img src="img/12.3.png" class="img-fluid mx-3">
|
||||||
|
<p class="mb-0 text-white text-start">Lee lo que opinan dos doctores sobre los cuidados del sitio de salida y las complicaciones que pueden surgir si no se
|
||||||
|
hace correctamente. Analiza cuidadosamente sus argumentos y elige quién tiene la razón.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-12">
|
||||||
|
<div id="puzzle-versus" class="d-flex flex-row justify-content-center align-items-center gap-2"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="d-none">
|
||||||
|
<div id="pop0">
|
||||||
|
<div class="container-fluid">
|
||||||
|
<div class=" w-100 text-center">
|
||||||
|
<img src="img/3.5.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
<div class="row justify-content-center">
|
||||||
|
<div class="col-12 text-center mb-2">
|
||||||
|
<h3 class="text-secondary-dark fw-bold">¡Bien hecho!</h3>
|
||||||
|
</div>
|
||||||
|
<div class="col-12 text-center">
|
||||||
|
<p class="mb-0">Has concluido la actividad.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
$(function () {
|
||||||
|
"use strict";
|
||||||
|
$('.wrap-course-content').addClass('fake');
|
||||||
|
const feedbackcorrect = CourseNav.createSound('audio/feedback-correct.mpeg');
|
||||||
|
const feedbackincorrect = CourseNav.createSound('audio/feedback-incorrect.mpeg');
|
||||||
|
|
||||||
|
const imgPerso = ['img/12.0.png','img/12.1.png'];
|
||||||
|
const urlExcelFile = 'versus.xlsx';
|
||||||
|
let versusData;
|
||||||
|
let currentQuestionIndex = 0;
|
||||||
|
|
||||||
|
function readExcelFile(url, callback) {
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
xhr.open('GET', url, true);
|
||||||
|
xhr.responseType = 'arraybuffer';
|
||||||
|
xhr.onload = function (e) {
|
||||||
|
var arrayBuffer = xhr.response;
|
||||||
|
var data = new Uint8Array(arrayBuffer);
|
||||||
|
var workbook = XLSX.read(data, { type: "array" });
|
||||||
|
var result = {};
|
||||||
|
workbook.SheetNames.forEach(sheetName => {
|
||||||
|
var sheet = workbook.Sheets[sheetName];
|
||||||
|
result[sheetName] = XLSX.utils.sheet_to_json(sheet);
|
||||||
|
});
|
||||||
|
callback(result);
|
||||||
|
};
|
||||||
|
xhr.send();
|
||||||
|
}
|
||||||
|
|
||||||
|
function shuffleArray(array) {
|
||||||
|
for (let i = array.length - 1; i > 0; i--) {
|
||||||
|
const j = Math.floor(Math.random() * (i + 1));
|
||||||
|
[array[i], array[j]] = [array[j], array[i]];
|
||||||
|
}
|
||||||
|
return array;
|
||||||
|
}
|
||||||
|
|
||||||
|
function createVersusStructure() {
|
||||||
|
const container = $('#puzzle-versus');
|
||||||
|
|
||||||
|
if (!versusData || currentQuestionIndex >= versusData.length) {
|
||||||
|
console.log('No hay más datos disponibles');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const data = versusData[currentQuestionIndex];
|
||||||
|
console.log('Pregunta actual:', data);
|
||||||
|
|
||||||
|
const shuffledImages = shuffleArray([...imgPerso]);
|
||||||
|
const responses = [data.opcion, data.opcion_c];
|
||||||
|
const randomOrder = Math.random() < 0.5;
|
||||||
|
|
||||||
|
const leftResponse = randomOrder ? responses[0] : responses[1];
|
||||||
|
const rightResponse = randomOrder ? responses[1] : responses[0];
|
||||||
|
const leftIsCorrect = randomOrder ? true : false; // opcion_c es la correcta
|
||||||
|
|
||||||
|
const structure = `
|
||||||
|
<div class="btn-respuesta" data-correct="${leftIsCorrect}">
|
||||||
|
<div class="d-flex flex-column justify-content-center align-items-center gap-0">
|
||||||
|
<img src="${shuffledImages[0]}" alt="personaje">
|
||||||
|
<div class="card bg-verde-ceniza border-0 shadow rounded-15 pt-5 px-3 pb-3 text-center text-respuesta">${leftResponse || ''}</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<img src="img/12.2.png" class="img-fluid">
|
||||||
|
<div class="btn-respuesta" data-correct="${!leftIsCorrect}">
|
||||||
|
<div class="d-flex flex-column justify-content-center align-items-center gap-0">
|
||||||
|
<img src="${shuffledImages[1]}" alt="personaje">
|
||||||
|
<div class="card bg-verde-ceniza border-0 shadow rounded-15 pt-5 px-3 pb-3 text-center text-respuesta">${rightResponse || ''}</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
`;
|
||||||
|
|
||||||
|
container.html(structure);
|
||||||
|
|
||||||
|
$('.btn-respuesta').click(function() {
|
||||||
|
const isCorrect = $(this).data('correct');
|
||||||
|
|
||||||
|
if (isCorrect) {
|
||||||
|
feedbackcorrect.play();
|
||||||
|
currentQuestionIndex++;
|
||||||
|
|
||||||
|
if (currentQuestionIndex >= versusData.length) {
|
||||||
|
checkAllCompleted();
|
||||||
|
} else {
|
||||||
|
setTimeout(() => createVersusStructure(), 1000);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
feedbackincorrect.play();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function checkAllCompleted() {
|
||||||
|
setTimeout(() => {
|
||||||
|
const html = $("#pop0").html();
|
||||||
|
Swal.fire({
|
||||||
|
html: html,
|
||||||
|
target: "body",
|
||||||
|
customClass: {
|
||||||
|
popup: 'pop_html_style border border-3 border-primary rounded-4',
|
||||||
|
confirmButton: 'btn text-white bg-primary amor fw-semibold animate__animated animate__pulse animate__infinite'
|
||||||
|
},
|
||||||
|
confirmButtonText: "Cerrar",
|
||||||
|
showConfirmButton: true,
|
||||||
|
allowOutsideClick: false,
|
||||||
|
allowEscapeKey: false,
|
||||||
|
backdrop: "rgba(65, 60, 60, .95)",
|
||||||
|
width: "35em",
|
||||||
|
didClose: () => {
|
||||||
|
CourseNav.setSlideVisited();
|
||||||
|
$(".card-container2").addClass('disabled');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}, 250);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Cargar datos del Excel
|
||||||
|
readExcelFile(urlExcelFile, function(data) {
|
||||||
|
const sheetData = data[Object.keys(data)[0]];
|
||||||
|
versusData = sheetData;
|
||||||
|
console.log('Datos cargados:', versusData);
|
||||||
|
createVersusStructure();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
@@ -0,0 +1,454 @@
|
|||||||
|
<style>
|
||||||
|
.fake {
|
||||||
|
background-image: url("img/bg11.jpg");
|
||||||
|
background-size: cover;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wruleta {
|
||||||
|
transition: transform 4s cubic-bezier(0.25, 0.1, 0.25, 1);
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wruleta.spinning {
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#spin-btn {
|
||||||
|
background: linear-gradient(45deg, #ff6b6b, #ee5a24);
|
||||||
|
border: none;
|
||||||
|
color: white;
|
||||||
|
padding: 15px 30px;
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: bold;
|
||||||
|
border-radius: 50px;
|
||||||
|
cursor: pointer;
|
||||||
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
#spin-btn:hover {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
#spin-btn:disabled {
|
||||||
|
opacity: 0.6;
|
||||||
|
cursor: not-allowed;
|
||||||
|
transform: none;
|
||||||
|
}
|
||||||
|
.avance {
|
||||||
|
width: calc(100% / 6);
|
||||||
|
}
|
||||||
|
.avance img {
|
||||||
|
width: 70%;
|
||||||
|
aspect-ratio: 16 / 9;
|
||||||
|
object-fit: contain;
|
||||||
|
filter: grayscale(1);
|
||||||
|
transition: all 0.5s ease-in-out;
|
||||||
|
}
|
||||||
|
.avance img.visited {
|
||||||
|
filter: grayscale(0);
|
||||||
|
}
|
||||||
|
.no-overflow {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Estilos para SweetAlert de preguntas */
|
||||||
|
.swal2-popup {
|
||||||
|
border-radius: 20px !important;
|
||||||
|
border: 4px solid #28a745 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.swal2-title {
|
||||||
|
color: #2c5530 !important;
|
||||||
|
font-weight: bold !important;
|
||||||
|
font-size: 1.3rem !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.opcion-btn {
|
||||||
|
background: #f8f9fa !important;
|
||||||
|
color: #333 !important;
|
||||||
|
border: 1px solid #dee2e6 !important;
|
||||||
|
border-radius: 8px !important;
|
||||||
|
padding: 12px 20px !important;
|
||||||
|
margin-bottom: 10px !important;
|
||||||
|
font-weight: 500 !important;
|
||||||
|
position: relative !important;
|
||||||
|
transition: all 0.3s ease !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.opcion-btn:hover,
|
||||||
|
.opcion-btn:focus,
|
||||||
|
.opcion-btn.selected {
|
||||||
|
transform: translateY(-2px) !important;
|
||||||
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.opcion-btn::before {
|
||||||
|
content: attr(data-letter) !important;
|
||||||
|
position: absolute !important;
|
||||||
|
left: 0px !important;
|
||||||
|
top: 0% !important;
|
||||||
|
background: #28a745 !important;
|
||||||
|
color: white !important;
|
||||||
|
width: 28px !important;
|
||||||
|
height: 100% !important;
|
||||||
|
border-radius: 6px 0px 0px 6px !important;
|
||||||
|
display: flex !important;
|
||||||
|
align-items: center !important;
|
||||||
|
justify-content: center !important;
|
||||||
|
font-weight: bold !important;
|
||||||
|
font-size: 14px !important;
|
||||||
|
transition: background-color 0.3s ease !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.opcion-btn:hover::before,
|
||||||
|
.opcion-btn.selected::before {
|
||||||
|
background: #8e44ad !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.opcion-btn span {
|
||||||
|
margin-left: 35px !important;
|
||||||
|
text-align: left !important;
|
||||||
|
display: block !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pop_html_style{
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
@media (min-width: 768px) {
|
||||||
|
.pop_html_style{
|
||||||
|
width: 700px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
<div class="page-sco py-2 py-md-0 h-100">
|
||||||
|
<div class="container h-100 m-0 g-0 p-0">
|
||||||
|
<div class="row justify-content-center align-items-center h-100 m-0 g-0 p-0">
|
||||||
|
<div class="col-12 m-0 g-0 p-0">
|
||||||
|
<div class="row justify-content-center m-0 g-0 p-0 animate__animated animate__fadeInDown">
|
||||||
|
<div class="col-6 mb-2">
|
||||||
|
<h2 class="text-center fw-bold text-primary">Alimentación y medicación</h2>
|
||||||
|
<hr class="border border-3 border-verde-oscuro hr-style mx-auto my-0" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row animate__animated animate__slideInLeft">
|
||||||
|
<div class="col-7">
|
||||||
|
<div class="d-flex flex-row align-items-center bg-morado-claro py-3 text-white">
|
||||||
|
<div class="mx-3">
|
||||||
|
<img src="img/2.1.png" alt="" class="img-fluid" />
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<b>Instrucciones:</b> Da clic en la ruleta y contesta correctamente la pregunta acerca de la alimentación o medicación del paciente en diálisis
|
||||||
|
peritoneal para ganar los puntos.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row justify-content-center align-items-center animate__animated animate__slideInRight">
|
||||||
|
<div class="col-6">
|
||||||
|
<div class="card custom-card bg-verde-pino border-0 shadow">
|
||||||
|
<div class="card-body">
|
||||||
|
<div class="row justify-content-center">
|
||||||
|
<div class="col-4 text-center">
|
||||||
|
<img src="img/ruleta/per1.png" alt="" class="img-fluid" />
|
||||||
|
</div>
|
||||||
|
<div class="col-8 text-white text-center">
|
||||||
|
<p class="display-6">Puntos acumulados:</p>
|
||||||
|
<p class="puntos">0</p>
|
||||||
|
<div class="card flat">
|
||||||
|
<img src="img/ruleta/progress.png" alt="" class="img-fluid" />
|
||||||
|
<div class="wavance position-absolute d-flex flex-row align-items-center justify-content-start w-100" style="top: 15%">
|
||||||
|
<div class="avance"><img src="img/ruleta/pr.png" class="img-fluid" alt="" /></div>
|
||||||
|
<div class="avance"><img src="img/ruleta/pr.png" class="img-fluid" alt="" /></div>
|
||||||
|
<div class="avance"><img src="img/ruleta/pr.png" class="img-fluid" alt="" /></div>
|
||||||
|
<div class="avance"><img src="img/ruleta/pr.png" class="img-fluid" alt="" /></div>
|
||||||
|
<div class="avance"><img src="img/ruleta/pr.png" class="img-fluid" alt="" /></div>
|
||||||
|
<div class="avance"><img src="img/ruleta/pr.png" class="img-fluid" alt="" /></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-12 text-center">
|
||||||
|
<div class="mt-3">
|
||||||
|
<button id="spin-btn">¡GIRAR RULETA!</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-4 text-center">
|
||||||
|
<div class="card flat justify-content-center align-items-center d-inline-flex">
|
||||||
|
<div class="indicador position-absolute start-50 translate-middle-x" style="z-index: 9999 !important; top: -1em">
|
||||||
|
<img src="img/ruleta/indicador.png" alt="" style="transform: rotate(90deg)" />
|
||||||
|
</div>
|
||||||
|
<div class="wruleta z-2" id="ruleta-wheel">
|
||||||
|
<img src="img/ruleta/ruleta.png" alt="" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="d-none">
|
||||||
|
<div id="pop0">
|
||||||
|
<div class="container-fluid">
|
||||||
|
<div class=" w-100 text-center">
|
||||||
|
<img src="img/3.5.png" class="img-fluid">
|
||||||
|
</div>
|
||||||
|
<div class="row justify-content-center">
|
||||||
|
<div class="col-12 text-center mb-2">
|
||||||
|
<h3 class="text-secondary-dark fw-bold">¡Bien hecho!</h3>
|
||||||
|
</div>
|
||||||
|
<div class="col-12 text-center">
|
||||||
|
<p class="mb-0">Has concluido la actividad.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
$(function () {
|
||||||
|
"use strict";
|
||||||
|
$("body").addClass("fake");
|
||||||
|
// Puntajes de la ruleta en orden horario (empezando desde arriba)
|
||||||
|
const puntajes = [100, 200, 300, 400, 500, 600, 700, 600, 500, 400, 300, 200];
|
||||||
|
let isSpinning = false;
|
||||||
|
let totalPuntos = 0;
|
||||||
|
let rotacionActual = 0;
|
||||||
|
let girosRealizados = 0;
|
||||||
|
const maxGiros = 6;
|
||||||
|
|
||||||
|
const ruletaWheel = document.getElementById("ruleta-wheel");
|
||||||
|
const spinBtn = document.getElementById("spin-btn");
|
||||||
|
const puntosDisplay = document.querySelector(".puntos");
|
||||||
|
const avanceImages = document.querySelectorAll(".avance img");
|
||||||
|
|
||||||
|
function girarRuleta() {
|
||||||
|
if (isSpinning || girosRealizados >= maxGiros) return;
|
||||||
|
|
||||||
|
isSpinning = true;
|
||||||
|
spinBtn.disabled = true;
|
||||||
|
ruletaWheel.classList.add("spinning");
|
||||||
|
document.getElementById("coursenav-main-content").classList.add("no-overflow");
|
||||||
|
// Mínimo 3 vueltas + ángulo aleatorio (siempre hacia la derecha)
|
||||||
|
const vueltas = 3 + Math.random() * 2; // 3-5 vueltas
|
||||||
|
const anguloFinal = Math.random() * 360;
|
||||||
|
const rotacionTotal = rotacionActual + vueltas * 360 + anguloFinal;
|
||||||
|
|
||||||
|
// Aplicar rotación
|
||||||
|
ruletaWheel.style.transform = `rotate(${rotacionTotal}deg)`;
|
||||||
|
rotacionActual = rotacionTotal;
|
||||||
|
|
||||||
|
// Calcular puntaje después de la animación
|
||||||
|
setTimeout(() => {
|
||||||
|
const anguloNormalizado = rotacionActual % 360;
|
||||||
|
const segmento = Math.floor((anguloNormalizado + 15) / 30) % 12;
|
||||||
|
const puntajeObtenido = puntajes[segmento];
|
||||||
|
// Remover puntos automáticos - solo se ganan si responde correctamente
|
||||||
|
|
||||||
|
// Marcar imagen como visitada
|
||||||
|
if (girosRealizados < maxGiros) {
|
||||||
|
avanceImages[girosRealizados].classList.add("visited");
|
||||||
|
girosRealizados++;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Mostrar pregunta
|
||||||
|
setTimeout(() => {
|
||||||
|
mostrarPregunta(puntajeObtenido);
|
||||||
|
}, 500);
|
||||||
|
}, 4000);
|
||||||
|
}
|
||||||
|
|
||||||
|
spinBtn.addEventListener("click", girarRuleta);
|
||||||
|
|
||||||
|
const bad = CourseNav.createSound("audio/feedback-incorrect.mpeg");
|
||||||
|
const good = CourseNav.createSound("audio/feedback-correct.mpeg");
|
||||||
|
|
||||||
|
const urlExcelFile = "Actividades_Rotafolio_Vantive.xlsx";
|
||||||
|
|
||||||
|
function readExcelFile(url, callback) {
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
xhr.open("GET", url, true);
|
||||||
|
xhr.responseType = "arraybuffer";
|
||||||
|
xhr.onload = function (e) {
|
||||||
|
var arrayBuffer = xhr.response;
|
||||||
|
var data = new Uint8Array(arrayBuffer);
|
||||||
|
var workbook = XLSX.read(data, { type: "array" });
|
||||||
|
var result = {};
|
||||||
|
workbook.SheetNames.forEach((sheetName) => {
|
||||||
|
var sheet = workbook.Sheets[sheetName];
|
||||||
|
result[sheetName] = XLSX.utils.sheet_to_json(sheet);
|
||||||
|
});
|
||||||
|
callback(result);
|
||||||
|
};
|
||||||
|
xhr.send();
|
||||||
|
}
|
||||||
|
|
||||||
|
function procesarPreguntas(data) {
|
||||||
|
const preguntas = data.map((fila) => {
|
||||||
|
const opciones = [];
|
||||||
|
Object.keys(fila).forEach((key) => {
|
||||||
|
if (key.startsWith("opcion")) {
|
||||||
|
opciones.push({
|
||||||
|
text: fila[key].trim(),
|
||||||
|
correct: key === "opcion_c",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return {
|
||||||
|
pregunta: fila.pregunta.trim(),
|
||||||
|
opciones: opciones,
|
||||||
|
retroalimentacion_correcta: fila.retroalimentacion_correcta ? fila.retroalimentacion_correcta.trim() : "",
|
||||||
|
retroalimentacion_incorrecta: fila.retroalimentacion_incorrecta ? fila.retroalimentacion_incorrecta.trim() : "",
|
||||||
|
};
|
||||||
|
});
|
||||||
|
return preguntas;
|
||||||
|
}
|
||||||
|
|
||||||
|
function shuffleArray(array) {
|
||||||
|
for (let i = array.length - 1; i > 0; i--) {
|
||||||
|
const j = Math.floor(Math.random() * (i + 1));
|
||||||
|
[array[i], array[j]] = [array[j], array[i]];
|
||||||
|
}
|
||||||
|
return array;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Variables para preguntas
|
||||||
|
let questions = [];
|
||||||
|
let preguntasUsadas = [];
|
||||||
|
|
||||||
|
function mostrarPregunta(puntajeEnJuego) {
|
||||||
|
if (questions.length === 0) {
|
||||||
|
console.error("No hay preguntas cargadas");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Seleccionar pregunta aleatoria no usada
|
||||||
|
const preguntasDisponibles = questions.filter((_, index) => !preguntasUsadas.includes(index));
|
||||||
|
if (preguntasDisponibles.length === 0) {
|
||||||
|
preguntasUsadas = []; // Reiniciar si se agotaron
|
||||||
|
}
|
||||||
|
|
||||||
|
const preguntaIndex = Math.floor(Math.random() * preguntasDisponibles.length);
|
||||||
|
const pregunta = preguntasDisponibles[preguntaIndex];
|
||||||
|
const originalIndex = questions.indexOf(pregunta);
|
||||||
|
preguntasUsadas.push(originalIndex);
|
||||||
|
|
||||||
|
// Crear HTML para opciones
|
||||||
|
let opcionesHTML = "";
|
||||||
|
pregunta.opciones.forEach((opcion, index) => {
|
||||||
|
const letra = String.fromCharCode(97 + index); // 97 = 'a'
|
||||||
|
opcionesHTML += `<button class="opcion-btn d-block w-100" data-correct="${opcion.correct}" data-letter="${letra}"><span>${opcion.text}</span></button>`;
|
||||||
|
});
|
||||||
|
|
||||||
|
Swal.fire({
|
||||||
|
title: pregunta.pregunta,
|
||||||
|
html: `<div class="text-start">${opcionesHTML}</div>`,
|
||||||
|
showConfirmButton: false,
|
||||||
|
allowOutsideClick: false,
|
||||||
|
target: document.getElementById('wrap-course-content'),
|
||||||
|
customClass: {
|
||||||
|
popup: "pop_html_style border border-3 border-primary rounded-4",
|
||||||
|
confirmButton: "btn text-white bg-primary amor fw-semibold animate__animated animate__pulse animate__infinite",
|
||||||
|
},
|
||||||
|
didOpen: () => {
|
||||||
|
document.querySelectorAll(".opcion-btn").forEach((btn) => {
|
||||||
|
btn.addEventListener("mouseenter", () => {
|
||||||
|
btn.classList.add("selected");
|
||||||
|
});
|
||||||
|
btn.addEventListener("mouseleave", () => {
|
||||||
|
btn.classList.remove("selected");
|
||||||
|
});
|
||||||
|
btn.addEventListener("click", (e) => {
|
||||||
|
const target = e.target.closest(".opcion-btn");
|
||||||
|
const esCorrecta = target.dataset.correct === "true";
|
||||||
|
manejarRespuesta(esCorrecta, puntajeEnJuego, pregunta);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function manejarRespuesta(esCorrecta, puntajeEnJuego, pregunta) {
|
||||||
|
if (esCorrecta) {
|
||||||
|
good.play();
|
||||||
|
totalPuntos += puntajeEnJuego;
|
||||||
|
puntosDisplay.textContent = totalPuntos;
|
||||||
|
Swal.fire({
|
||||||
|
title: "¡Correcto!",
|
||||||
|
text: `Has ganado ${puntajeEnJuego} puntos. ${pregunta.retroalimentacion_correcta}`,
|
||||||
|
icon: "success",
|
||||||
|
target: document.getElementById('wrap-course-content'),
|
||||||
|
confirmButtonText: "Continuar",
|
||||||
|
}).then(() => finalizarTurno());
|
||||||
|
} else {
|
||||||
|
bad.play();
|
||||||
|
Swal.fire({
|
||||||
|
title: "Incorrecto",
|
||||||
|
text: `No ganaste puntos. ${pregunta.retroalimentacion_incorrecta}`,
|
||||||
|
icon: "error",
|
||||||
|
target: document.getElementById('wrap-course-content'),
|
||||||
|
confirmButtonText: "Continuar",
|
||||||
|
}).then(() => finalizarTurno());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function finalizarTurno() {
|
||||||
|
isSpinning = false;
|
||||||
|
document.getElementById("coursenav-main-content").classList.remove("no-overflow");
|
||||||
|
|
||||||
|
if (girosRealizados >= maxGiros) {
|
||||||
|
spinBtn.disabled = true;
|
||||||
|
spinBtn.textContent = "¡Juego Completado!";
|
||||||
|
CourseNav.setSlideVisited();
|
||||||
|
Completed();
|
||||||
|
} else {
|
||||||
|
spinBtn.disabled = false;
|
||||||
|
spinBtn.textContent = `¡GIRAR RULETA! (${maxGiros - girosRealizados} restantes)`;
|
||||||
|
}
|
||||||
|
|
||||||
|
ruletaWheel.classList.remove("spinning");
|
||||||
|
}
|
||||||
|
|
||||||
|
function Completed() {
|
||||||
|
const html = $("#pop0").html();
|
||||||
|
Swal.fire({
|
||||||
|
html: html,
|
||||||
|
target: document.getElementById('wrap-course-content'),
|
||||||
|
customClass: {
|
||||||
|
popup: 'pop_html_style border border-3 border-primary rounded-4',
|
||||||
|
confirmButton: 'btn text-white bg-primary amor fw-semibold animate__animated animate__pulse animate__infinite'
|
||||||
|
},
|
||||||
|
confirmButtonText: "Cerrar",
|
||||||
|
showConfirmButton: true,
|
||||||
|
allowOutsideClick: false,
|
||||||
|
allowEscapeKey: false,
|
||||||
|
focusConfirm: false,
|
||||||
|
backdrop: "rgba(65, 60, 60, .95)",
|
||||||
|
width: "35em",
|
||||||
|
didOpen: () => {
|
||||||
|
},
|
||||||
|
didClose: () => {
|
||||||
|
CourseNav.audioController.stopAudio();
|
||||||
|
CourseNav.setSlideVisited();
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
// Cargar preguntas de "Diapositiva 19"
|
||||||
|
readExcelFile(urlExcelFile, function (data) {
|
||||||
|
const sheetData = data["Diapositiva 19"];
|
||||||
|
if (sheetData) {
|
||||||
|
questions = procesarPreguntas(sheetData);
|
||||||
|
console.log("Preguntas cargadas de Diapositiva 19:", questions);
|
||||||
|
} else {
|
||||||
|
console.error('No se encontró la hoja "Diapositiva 19"');
|
||||||
|
console.log("Hojas disponibles:", Object.keys(data));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
@@ -262,6 +262,13 @@ body > main {
|
|||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.wrap-course-content footer {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
#coursenav-offcanvas {
|
#coursenav-offcanvas {
|
||||||
border-top-right-radius: 30px !important;
|
border-top-right-radius: 30px !important;
|
||||||
border-bottom-right-radius: 30px !important;
|
border-bottom-right-radius: 30px !important;
|
||||||
@@ -373,7 +380,7 @@ body > main {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#coursenav-main-content {
|
#coursenav-main-content {
|
||||||
height: 100%;
|
height: calc(100% - 85px);
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -495,3 +495,7 @@ h6 {
|
|||||||
.pop_html_style .swal2-html-container {
|
.pop_html_style .swal2-html-container {
|
||||||
padding: 0.5em;
|
padding: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* .wrap-course-content {
|
||||||
|
transition: transform 0.3s ease, left 0.3s ease, top 0.3s ease;
|
||||||
|
} */
|
||||||
|
|||||||
@@ -482,3 +482,7 @@ h6 {
|
|||||||
.pop_html_style .swal2-html-container {
|
.pop_html_style .swal2-html-container {
|
||||||
padding: 0.5em;
|
padding: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* .wrap-course-content {
|
||||||
|
transition: transform 0.3s ease, left 0.3s ease, top 0.3s ease;
|
||||||
|
} */
|
||||||
@@ -10,7 +10,9 @@ $custom-colors: (
|
|||||||
'verde-ceniza': #84a79c,
|
'verde-ceniza': #84a79c,
|
||||||
'verde-oscuro': #105742,
|
'verde-oscuro': #105742,
|
||||||
'verde-pino': #4c8071,
|
'verde-pino': #4c8071,
|
||||||
|
'verde-pasto': #84a816,
|
||||||
'verde-claro': #d6e3da,
|
'verde-claro': #d6e3da,
|
||||||
|
'verde-gris': #cadcd4,
|
||||||
'lila-claro': #905c8b,
|
'lila-claro': #905c8b,
|
||||||
'morado-claro': #915c8c,
|
'morado-claro': #915c8c,
|
||||||
'gris': #959595,
|
'gris': #959595,
|
||||||
|
|||||||
@@ -70,7 +70,9 @@
|
|||||||
--bs-verde-ceniza: #84a79c;
|
--bs-verde-ceniza: #84a79c;
|
||||||
--bs-verde-oscuro: #105742;
|
--bs-verde-oscuro: #105742;
|
||||||
--bs-verde-pino: #4c8071;
|
--bs-verde-pino: #4c8071;
|
||||||
|
--bs-verde-pasto: #84a816;
|
||||||
--bs-verde-claro: #d6e3da;
|
--bs-verde-claro: #d6e3da;
|
||||||
|
--bs-verde-gris: #cadcd4;
|
||||||
--bs-lila-claro: #905c8b;
|
--bs-lila-claro: #905c8b;
|
||||||
--bs-morado-claro: #915c8c;
|
--bs-morado-claro: #915c8c;
|
||||||
--bs-gris: #959595;
|
--bs-gris: #959595;
|
||||||
@@ -97,7 +99,9 @@
|
|||||||
--bs-verde-ceniza-rgb: 132, 167, 156;
|
--bs-verde-ceniza-rgb: 132, 167, 156;
|
||||||
--bs-verde-oscuro-rgb: 16, 87, 66;
|
--bs-verde-oscuro-rgb: 16, 87, 66;
|
||||||
--bs-verde-pino-rgb: 76, 128, 113;
|
--bs-verde-pino-rgb: 76, 128, 113;
|
||||||
|
--bs-verde-pasto-rgb: 132, 168, 22;
|
||||||
--bs-verde-claro-rgb: 214, 227, 218;
|
--bs-verde-claro-rgb: 214, 227, 218;
|
||||||
|
--bs-verde-gris-rgb: 202, 220, 212;
|
||||||
--bs-lila-claro-rgb: 144, 92, 139;
|
--bs-lila-claro-rgb: 144, 92, 139;
|
||||||
--bs-morado-claro-rgb: 145, 92, 140;
|
--bs-morado-claro-rgb: 145, 92, 140;
|
||||||
--bs-gris-rgb: 149, 149, 149;
|
--bs-gris-rgb: 149, 149, 149;
|
||||||
@@ -3284,6 +3288,23 @@ textarea.form-control-lg {
|
|||||||
--bs-btn-disabled-border-color: #4c8071;
|
--bs-btn-disabled-border-color: #4c8071;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.btn-verde-pasto {
|
||||||
|
--bs-btn-color: #000;
|
||||||
|
--bs-btn-bg: #84a816;
|
||||||
|
--bs-btn-border-color: #84a816;
|
||||||
|
--bs-btn-hover-color: #000;
|
||||||
|
--bs-btn-hover-bg: #96b539;
|
||||||
|
--bs-btn-hover-border-color: #90b12d;
|
||||||
|
--bs-btn-focus-shadow-rgb: 112, 143, 19;
|
||||||
|
--bs-btn-active-color: #000;
|
||||||
|
--bs-btn-active-bg: #9db945;
|
||||||
|
--bs-btn-active-border-color: #90b12d;
|
||||||
|
--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||||
|
--bs-btn-disabled-color: #000;
|
||||||
|
--bs-btn-disabled-bg: #84a816;
|
||||||
|
--bs-btn-disabled-border-color: #84a816;
|
||||||
|
}
|
||||||
|
|
||||||
.btn-verde-claro {
|
.btn-verde-claro {
|
||||||
--bs-btn-color: #000;
|
--bs-btn-color: #000;
|
||||||
--bs-btn-bg: #d6e3da;
|
--bs-btn-bg: #d6e3da;
|
||||||
@@ -3301,6 +3322,23 @@ textarea.form-control-lg {
|
|||||||
--bs-btn-disabled-border-color: #d6e3da;
|
--bs-btn-disabled-border-color: #d6e3da;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.btn-verde-gris {
|
||||||
|
--bs-btn-color: #000;
|
||||||
|
--bs-btn-bg: #cadcd4;
|
||||||
|
--bs-btn-border-color: #cadcd4;
|
||||||
|
--bs-btn-hover-color: #000;
|
||||||
|
--bs-btn-hover-bg: #d2e1da;
|
||||||
|
--bs-btn-hover-border-color: #cfe0d8;
|
||||||
|
--bs-btn-focus-shadow-rgb: 172, 187, 180;
|
||||||
|
--bs-btn-active-color: #000;
|
||||||
|
--bs-btn-active-bg: #d5e3dd;
|
||||||
|
--bs-btn-active-border-color: #cfe0d8;
|
||||||
|
--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||||
|
--bs-btn-disabled-color: #000;
|
||||||
|
--bs-btn-disabled-bg: #cadcd4;
|
||||||
|
--bs-btn-disabled-border-color: #cadcd4;
|
||||||
|
}
|
||||||
|
|
||||||
.btn-lila-claro {
|
.btn-lila-claro {
|
||||||
--bs-btn-color: #fff;
|
--bs-btn-color: #fff;
|
||||||
--bs-btn-bg: #905c8b;
|
--bs-btn-bg: #905c8b;
|
||||||
@@ -3743,6 +3781,23 @@ textarea.form-control-lg {
|
|||||||
--bs-gradient: none;
|
--bs-gradient: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.btn-outline-verde-pasto {
|
||||||
|
--bs-btn-color: #84a816;
|
||||||
|
--bs-btn-border-color: #84a816;
|
||||||
|
--bs-btn-hover-color: #000;
|
||||||
|
--bs-btn-hover-bg: #84a816;
|
||||||
|
--bs-btn-hover-border-color: #84a816;
|
||||||
|
--bs-btn-focus-shadow-rgb: 132, 168, 22;
|
||||||
|
--bs-btn-active-color: #000;
|
||||||
|
--bs-btn-active-bg: #84a816;
|
||||||
|
--bs-btn-active-border-color: #84a816;
|
||||||
|
--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||||
|
--bs-btn-disabled-color: #84a816;
|
||||||
|
--bs-btn-disabled-bg: transparent;
|
||||||
|
--bs-btn-disabled-border-color: #84a816;
|
||||||
|
--bs-gradient: none;
|
||||||
|
}
|
||||||
|
|
||||||
.btn-outline-verde-claro {
|
.btn-outline-verde-claro {
|
||||||
--bs-btn-color: #d6e3da;
|
--bs-btn-color: #d6e3da;
|
||||||
--bs-btn-border-color: #d6e3da;
|
--bs-btn-border-color: #d6e3da;
|
||||||
@@ -3760,6 +3815,23 @@ textarea.form-control-lg {
|
|||||||
--bs-gradient: none;
|
--bs-gradient: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.btn-outline-verde-gris {
|
||||||
|
--bs-btn-color: #cadcd4;
|
||||||
|
--bs-btn-border-color: #cadcd4;
|
||||||
|
--bs-btn-hover-color: #000;
|
||||||
|
--bs-btn-hover-bg: #cadcd4;
|
||||||
|
--bs-btn-hover-border-color: #cadcd4;
|
||||||
|
--bs-btn-focus-shadow-rgb: 202, 220, 212;
|
||||||
|
--bs-btn-active-color: #000;
|
||||||
|
--bs-btn-active-bg: #cadcd4;
|
||||||
|
--bs-btn-active-border-color: #cadcd4;
|
||||||
|
--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||||
|
--bs-btn-disabled-color: #cadcd4;
|
||||||
|
--bs-btn-disabled-bg: transparent;
|
||||||
|
--bs-btn-disabled-border-color: #cadcd4;
|
||||||
|
--bs-gradient: none;
|
||||||
|
}
|
||||||
|
|
||||||
.btn-outline-lila-claro {
|
.btn-outline-lila-claro {
|
||||||
--bs-btn-color: #905c8b;
|
--bs-btn-color: #905c8b;
|
||||||
--bs-btn-border-color: #905c8b;
|
--bs-btn-border-color: #905c8b;
|
||||||
@@ -5558,6 +5630,15 @@ textarea.form-control-lg {
|
|||||||
color: #253e36;
|
color: #253e36;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.alert-verde-pasto {
|
||||||
|
--bs-alert-color: #4f650d;
|
||||||
|
--bs-alert-bg: #e6eed0;
|
||||||
|
--bs-alert-border-color: #dae5b9;
|
||||||
|
}
|
||||||
|
.alert-verde-pasto .alert-link {
|
||||||
|
color: #3f510a;
|
||||||
|
}
|
||||||
|
|
||||||
.alert-verde-claro {
|
.alert-verde-claro {
|
||||||
--bs-alert-color: #565b57;
|
--bs-alert-color: #565b57;
|
||||||
--bs-alert-bg: #f7f9f8;
|
--bs-alert-bg: #f7f9f8;
|
||||||
@@ -5567,6 +5648,15 @@ textarea.form-control-lg {
|
|||||||
color: #454946;
|
color: #454946;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.alert-verde-gris {
|
||||||
|
--bs-alert-color: #515855;
|
||||||
|
--bs-alert-bg: #f4f8f6;
|
||||||
|
--bs-alert-border-color: #eff5f2;
|
||||||
|
}
|
||||||
|
.alert-verde-gris .alert-link {
|
||||||
|
color: #414644;
|
||||||
|
}
|
||||||
|
|
||||||
.alert-lila-claro {
|
.alert-lila-claro {
|
||||||
--bs-alert-color: #563753;
|
--bs-alert-color: #563753;
|
||||||
--bs-alert-bg: #e9dee8;
|
--bs-alert-bg: #e9dee8;
|
||||||
@@ -6208,6 +6298,20 @@ textarea.form-control-lg {
|
|||||||
border-color: #2e4d44;
|
border-color: #2e4d44;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.list-group-item-verde-pasto {
|
||||||
|
color: #4f650d;
|
||||||
|
background-color: #e6eed0;
|
||||||
|
}
|
||||||
|
.list-group-item-verde-pasto.list-group-item-action:hover, .list-group-item-verde-pasto.list-group-item-action:focus {
|
||||||
|
color: #4f650d;
|
||||||
|
background-color: #cfd6bb;
|
||||||
|
}
|
||||||
|
.list-group-item-verde-pasto.list-group-item-action.active {
|
||||||
|
color: #ffffff;
|
||||||
|
background-color: #4f650d;
|
||||||
|
border-color: #4f650d;
|
||||||
|
}
|
||||||
|
|
||||||
.list-group-item-verde-claro {
|
.list-group-item-verde-claro {
|
||||||
color: #565b57;
|
color: #565b57;
|
||||||
background-color: #f7f9f8;
|
background-color: #f7f9f8;
|
||||||
@@ -6222,6 +6326,20 @@ textarea.form-control-lg {
|
|||||||
border-color: #565b57;
|
border-color: #565b57;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.list-group-item-verde-gris {
|
||||||
|
color: #515855;
|
||||||
|
background-color: #f4f8f6;
|
||||||
|
}
|
||||||
|
.list-group-item-verde-gris.list-group-item-action:hover, .list-group-item-verde-gris.list-group-item-action:focus {
|
||||||
|
color: #515855;
|
||||||
|
background-color: #dcdfdd;
|
||||||
|
}
|
||||||
|
.list-group-item-verde-gris.list-group-item-action.active {
|
||||||
|
color: #ffffff;
|
||||||
|
background-color: #515855;
|
||||||
|
border-color: #515855;
|
||||||
|
}
|
||||||
|
|
||||||
.list-group-item-lila-claro {
|
.list-group-item-lila-claro {
|
||||||
color: #563753;
|
color: #563753;
|
||||||
background-color: #e9dee8;
|
background-color: #e9dee8;
|
||||||
@@ -7902,11 +8020,21 @@ textarea.form-control-lg {
|
|||||||
background-color: RGBA(76, 128, 113, var(--bs-bg-opacity, 1)) !important;
|
background-color: RGBA(76, 128, 113, var(--bs-bg-opacity, 1)) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.text-bg-verde-pasto {
|
||||||
|
color: #000 !important;
|
||||||
|
background-color: RGBA(132, 168, 22, var(--bs-bg-opacity, 1)) !important;
|
||||||
|
}
|
||||||
|
|
||||||
.text-bg-verde-claro {
|
.text-bg-verde-claro {
|
||||||
color: #000 !important;
|
color: #000 !important;
|
||||||
background-color: RGBA(214, 227, 218, var(--bs-bg-opacity, 1)) !important;
|
background-color: RGBA(214, 227, 218, var(--bs-bg-opacity, 1)) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.text-bg-verde-gris {
|
||||||
|
color: #000 !important;
|
||||||
|
background-color: RGBA(202, 220, 212, var(--bs-bg-opacity, 1)) !important;
|
||||||
|
}
|
||||||
|
|
||||||
.text-bg-lila-claro {
|
.text-bg-lila-claro {
|
||||||
color: #fff !important;
|
color: #fff !important;
|
||||||
background-color: RGBA(144, 92, 139, var(--bs-bg-opacity, 1)) !important;
|
background-color: RGBA(144, 92, 139, var(--bs-bg-opacity, 1)) !important;
|
||||||
@@ -8083,6 +8211,13 @@ textarea.form-control-lg {
|
|||||||
color: #3d665a !important;
|
color: #3d665a !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.link-verde-pasto {
|
||||||
|
color: #84a816 !important;
|
||||||
|
}
|
||||||
|
.link-verde-pasto:hover, .link-verde-pasto:focus {
|
||||||
|
color: #9db945 !important;
|
||||||
|
}
|
||||||
|
|
||||||
.link-verde-claro {
|
.link-verde-claro {
|
||||||
color: #d6e3da !important;
|
color: #d6e3da !important;
|
||||||
}
|
}
|
||||||
@@ -8090,6 +8225,13 @@ textarea.form-control-lg {
|
|||||||
color: #dee9e1 !important;
|
color: #dee9e1 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.link-verde-gris {
|
||||||
|
color: #cadcd4 !important;
|
||||||
|
}
|
||||||
|
.link-verde-gris:hover, .link-verde-gris:focus {
|
||||||
|
color: #d5e3dd !important;
|
||||||
|
}
|
||||||
|
|
||||||
.link-lila-claro {
|
.link-lila-claro {
|
||||||
color: #905c8b !important;
|
color: #905c8b !important;
|
||||||
}
|
}
|
||||||
@@ -8647,11 +8789,21 @@ textarea.form-control-lg {
|
|||||||
border-color: rgba(var(--bs-verde-pino-rgb), var(--bs-border-opacity)) !important;
|
border-color: rgba(var(--bs-verde-pino-rgb), var(--bs-border-opacity)) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.border-verde-pasto {
|
||||||
|
--bs-border-opacity: 1;
|
||||||
|
border-color: rgba(var(--bs-verde-pasto-rgb), var(--bs-border-opacity)) !important;
|
||||||
|
}
|
||||||
|
|
||||||
.border-verde-claro {
|
.border-verde-claro {
|
||||||
--bs-border-opacity: 1;
|
--bs-border-opacity: 1;
|
||||||
border-color: rgba(var(--bs-verde-claro-rgb), var(--bs-border-opacity)) !important;
|
border-color: rgba(var(--bs-verde-claro-rgb), var(--bs-border-opacity)) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.border-verde-gris {
|
||||||
|
--bs-border-opacity: 1;
|
||||||
|
border-color: rgba(var(--bs-verde-gris-rgb), var(--bs-border-opacity)) !important;
|
||||||
|
}
|
||||||
|
|
||||||
.border-lila-claro {
|
.border-lila-claro {
|
||||||
--bs-border-opacity: 1;
|
--bs-border-opacity: 1;
|
||||||
border-color: rgba(var(--bs-lila-claro-rgb), var(--bs-border-opacity)) !important;
|
border-color: rgba(var(--bs-lila-claro-rgb), var(--bs-border-opacity)) !important;
|
||||||
@@ -9599,11 +9751,21 @@ textarea.form-control-lg {
|
|||||||
color: rgba(var(--bs-verde-pino-rgb), var(--bs-text-opacity)) !important;
|
color: rgba(var(--bs-verde-pino-rgb), var(--bs-text-opacity)) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.text-verde-pasto {
|
||||||
|
--bs-text-opacity: 1;
|
||||||
|
color: rgba(var(--bs-verde-pasto-rgb), var(--bs-text-opacity)) !important;
|
||||||
|
}
|
||||||
|
|
||||||
.text-verde-claro {
|
.text-verde-claro {
|
||||||
--bs-text-opacity: 1;
|
--bs-text-opacity: 1;
|
||||||
color: rgba(var(--bs-verde-claro-rgb), var(--bs-text-opacity)) !important;
|
color: rgba(var(--bs-verde-claro-rgb), var(--bs-text-opacity)) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.text-verde-gris {
|
||||||
|
--bs-text-opacity: 1;
|
||||||
|
color: rgba(var(--bs-verde-gris-rgb), var(--bs-text-opacity)) !important;
|
||||||
|
}
|
||||||
|
|
||||||
.text-lila-claro {
|
.text-lila-claro {
|
||||||
--bs-text-opacity: 1;
|
--bs-text-opacity: 1;
|
||||||
color: rgba(var(--bs-lila-claro-rgb), var(--bs-text-opacity)) !important;
|
color: rgba(var(--bs-lila-claro-rgb), var(--bs-text-opacity)) !important;
|
||||||
@@ -9775,11 +9937,21 @@ textarea.form-control-lg {
|
|||||||
background-color: rgba(var(--bs-verde-pino-rgb), var(--bs-bg-opacity)) !important;
|
background-color: rgba(var(--bs-verde-pino-rgb), var(--bs-bg-opacity)) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bg-verde-pasto {
|
||||||
|
--bs-bg-opacity: 1;
|
||||||
|
background-color: rgba(var(--bs-verde-pasto-rgb), var(--bs-bg-opacity)) !important;
|
||||||
|
}
|
||||||
|
|
||||||
.bg-verde-claro {
|
.bg-verde-claro {
|
||||||
--bs-bg-opacity: 1;
|
--bs-bg-opacity: 1;
|
||||||
background-color: rgba(var(--bs-verde-claro-rgb), var(--bs-bg-opacity)) !important;
|
background-color: rgba(var(--bs-verde-claro-rgb), var(--bs-bg-opacity)) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bg-verde-gris {
|
||||||
|
--bs-bg-opacity: 1;
|
||||||
|
background-color: rgba(var(--bs-verde-gris-rgb), var(--bs-bg-opacity)) !important;
|
||||||
|
}
|
||||||
|
|
||||||
.bg-lila-claro {
|
.bg-lila-claro {
|
||||||
--bs-bg-opacity: 1;
|
--bs-bg-opacity: 1;
|
||||||
background-color: rgba(var(--bs-lila-claro-rgb), var(--bs-bg-opacity)) !important;
|
background-color: rgba(var(--bs-lila-claro-rgb), var(--bs-bg-opacity)) !important;
|
||||||
|
|||||||
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 7.3 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 467 B |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 8.4 KiB |
|
After Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 6.8 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 8.3 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 7.4 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 8.1 KiB |
|
After Width: | Height: | Size: 50 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 39 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 96 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 36 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 268 KiB |
|
After Width: | Height: | Size: 53 KiB |
|
After Width: | Height: | Size: 55 KiB |
|
After Width: | Height: | Size: 54 KiB |
|
After Width: | Height: | Size: 61 KiB |
|
After Width: | Height: | Size: 57 KiB |
|
After Width: | Height: | Size: 54 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 37 KiB |
|
After Width: | Height: | Size: 39 KiB |
|
After Width: | Height: | Size: 7.0 KiB |
|
After Width: | Height: | Size: 676 B |
|
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 43 KiB |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 43 KiB |
|
Before Width: | Height: | Size: 99 KiB After Width: | Height: | Size: 71 KiB |
|
After Width: | Height: | Size: 120 KiB |
|
After Width: | Height: | Size: 71 KiB |
|
After Width: | Height: | Size: 92 KiB |
|
After Width: | Height: | Size: 84 KiB |
|
Before Width: | Height: | Size: 68 KiB |
|
Before Width: | Height: | Size: 60 KiB |
|
Before Width: | Height: | Size: 60 KiB |
|
Before Width: | Height: | Size: 62 KiB |
|
Before Width: | Height: | Size: 62 KiB |
|
Before Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 29 KiB |
|
Before Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 14 KiB |