update
@ -127,7 +127,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="desarrollo" class='page-sco py-2 py-md-0' style="display: none;">
|
||||
<div id="desarrollo" class='page-sco py-2 py-md-0' style="display: none;overflow: hidden;">
|
||||
<div class='container h-100'>
|
||||
<div class='row justify-content-center h-100'>
|
||||
<div class='col-12'>
|
||||
@ -452,7 +452,6 @@
|
||||
$('.drag-button').draggable({
|
||||
revert: 'invalid',
|
||||
revertDuration: 300,
|
||||
containment: "#desarrollo",
|
||||
cursor: "grabbing",
|
||||
start: function (event, ui) {
|
||||
$(this).css('z-index', 1000);
|
||||
@ -460,13 +459,13 @@
|
||||
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;
|
||||
var scale = parseFloat($('.wrap-course-content').css('transform').split('(')[1]) || 1;
|
||||
ui.position.left = newLeft / scale;
|
||||
ui.position.top = newTop / scale;
|
||||
var changeLeft = ui.position.left - ui.originalPosition.left;
|
||||
var newLeft = ui.originalPosition.left + changeLeft / scale;
|
||||
var changeTop = ui.position.top - ui.originalPosition.top;
|
||||
var newTop = ui.originalPosition.top + changeTop / scale;
|
||||
ui.position.left = newLeft;
|
||||
ui.position.top = newTop;
|
||||
},
|
||||
stop: function (event, ui) {
|
||||
$(this).css('z-index', 1);
|
||||
@ -503,10 +502,10 @@
|
||||
CourseNav.setSlideVisited();
|
||||
}
|
||||
|
||||
// Inicializar draggable para elementos iniciales
|
||||
$('.drag-button').draggable({
|
||||
revert: 'invalid',
|
||||
revertDuration: 300,
|
||||
containment: "#desarrollo",
|
||||
cursor: "grabbing",
|
||||
start: function (event, ui) {
|
||||
$(this).css('z-index', 1000);
|
||||
@ -514,19 +513,21 @@
|
||||
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;
|
||||
var scale = parseFloat($('.wrap-course-content').css('transform').split('(')[1]) || 1;
|
||||
ui.position.left = newLeft / scale;
|
||||
ui.position.top = newTop / scale;
|
||||
var changeLeft = ui.position.left - ui.originalPosition.left;
|
||||
var newLeft = ui.originalPosition.left + changeLeft / scale;
|
||||
var changeTop = ui.position.top - ui.originalPosition.top;
|
||||
var newTop = ui.originalPosition.top + changeTop / scale;
|
||||
ui.position.left = newLeft;
|
||||
ui.position.top = newTop;
|
||||
},
|
||||
stop: function (event, ui) {
|
||||
$(this).css('z-index', 1);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
$('.drop-option').droppable({
|
||||
accept: '.drag-button',
|
||||
drop: function (event, ui) {
|
||||
|
||||
@ -89,7 +89,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="desarrollo" class='page-sco py-2 py-md-0 h-100' style="display: none;">
|
||||
<div id="desarrollo" class='page-sco py-2 py-md-0 h-100' style="display: none;overflow: hidden;">
|
||||
<div class='container h-100'>
|
||||
<div class='row justify-content-center align-items-center h-100'>
|
||||
<div class='col-11' id="dragAndDrop">
|
||||
@ -282,7 +282,6 @@
|
||||
$('.drag-item').draggable({
|
||||
revert: 'invalid',
|
||||
revertDuration: 300,
|
||||
containment: "#desarrollo",
|
||||
cursor: "grabbing",
|
||||
start: function (event, ui) {
|
||||
$(this).css({'z-index': 1000, 'transform': 'scale(0.8)'});
|
||||
@ -335,12 +334,8 @@
|
||||
width: "35em",
|
||||
didClose: () => {
|
||||
if ($('.drag-item:visible').length === 0) {
|
||||
const percentage = (correctCount / totalItems) * 100;
|
||||
$('#desarrollo').hide();
|
||||
$('#cierre').show();
|
||||
if (percentage < 80) {
|
||||
$('.col-reintentar').show();
|
||||
}
|
||||
CourseNav.setSlideVisited();
|
||||
}
|
||||
}
|
||||
|
||||
414
contenido/09.html
Normal file
@ -0,0 +1,414 @@
|
||||
<style>
|
||||
.fake {
|
||||
background-image: url(img/bg02.jpg);
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: cover;
|
||||
background-attachment: fixed;
|
||||
}
|
||||
|
||||
.fake1 {
|
||||
background-image: url(img/bg03.jpg);
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: cover;
|
||||
background-attachment: fixed;
|
||||
}
|
||||
|
||||
.btn-comenzar {
|
||||
border-radius: 20px;
|
||||
border-bottom-left-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.drag-list, .content-drags {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.7rem;
|
||||
}
|
||||
.drag-sortable {
|
||||
background: #f3e9df;
|
||||
border-radius: 1.25rem;
|
||||
box-shadow: 0 6px 15px rgba(0, 0, 0, .2);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: .2rem;
|
||||
padding: .4rem;
|
||||
font-weight: 500;
|
||||
border: none;
|
||||
position: relative;
|
||||
transition: box-shadow 0.16s, transform 0.12s;
|
||||
cursor: grab;
|
||||
user-select: none;
|
||||
}
|
||||
.drag-sortable:active, .drag-sortable.ui-sortable-helper {
|
||||
box-shadow: 0 12px 30px rgba(0,0,0,0.3);
|
||||
transform: scale(1.018);
|
||||
cursor: grabbing;
|
||||
}
|
||||
.drag-number {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border-radius: 50%;
|
||||
background: #d9c5d7;
|
||||
color: #72256b;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 1.8rem;
|
||||
font-weight: bold;
|
||||
border: 2.5px solid #72256b;
|
||||
box-shadow: 0 2px 8px rgba(225, 0, 107, 0.10);
|
||||
flex-shrink: 0;
|
||||
margin-right: 0.7rem;
|
||||
transition: background 0.18s, color 0.16s;
|
||||
}
|
||||
|
||||
/* Success: número en verde con fondo y borde */
|
||||
.drag-number-correct {
|
||||
background: #e8fdf4 !important;
|
||||
color: #30C48D !important;
|
||||
border-color: #30C48D !important;
|
||||
box-shadow: 0 2px 16px rgba(48,196,141,0.12) !important;
|
||||
animation: correcto-bounce 0.7s;
|
||||
}
|
||||
|
||||
@keyframes correcto-bounce {
|
||||
0% {transform: scale(1);}
|
||||
30% {transform: scale(1.18);}
|
||||
55% {transform: scale(0.96);}
|
||||
80% {transform: scale(1.05);}
|
||||
100% {transform: scale(1);}
|
||||
}
|
||||
.drag-icon {
|
||||
color: #72256b;
|
||||
font-size: 1.35rem;
|
||||
margin-right: 0.9rem;
|
||||
cursor: grab;
|
||||
flex-shrink: 0;
|
||||
font-weight: 600;
|
||||
}
|
||||
.drag-placeholder {
|
||||
background: #fff6fc !important;
|
||||
border: 2px dashed #E1006B !important;
|
||||
min-height: 60px;
|
||||
}
|
||||
|
||||
.fa-hand-pointer:before {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.fa-duotone.fa-swap-opacity:before, .fa-duotone:after, .fa-swap-opacity .fa-duotone:before, .fa-swap-opacity .fad:before, .fad.fa-swap-opacity:before, .fad:after {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/* Animación de la mano */
|
||||
.drag-hand-animate {
|
||||
color: #72256b;
|
||||
font-size: 2.1rem;
|
||||
margin-right: 1rem;
|
||||
animation: hand-down-up 1.2s infinite cubic-bezier(.62, -0.01, .43, 1.01);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
}
|
||||
@keyframes hand-down-up {
|
||||
0% { transform: translateY(-7px) scale(1.03);}
|
||||
18% { transform: translateY(5px) scale(1.02);}
|
||||
35% { transform: translateY(-4px) scale(1.04);}
|
||||
50% { transform: translateY(4px) scale(1);}
|
||||
68% { transform: translateY(-5px) scale(1.01);}
|
||||
85% { transform: translateY(6px) scale(0.99);}
|
||||
100% { transform: translateY(-7px) scale(1.03);}
|
||||
}
|
||||
</style>
|
||||
<div id="inicio" class='page-sco py-2 py-md-0 h-100'>
|
||||
<div class='container h-100'>
|
||||
<div class='row justify-content-center align-items-center h-100'>
|
||||
<div class='col-11'>
|
||||
<div class='row justify-content-center'>
|
||||
<div class="col-12 text-center animate__animated animate__bounceInDown">
|
||||
<div class="position-relative d-inline-block">
|
||||
<h2 class="text-primary mb-1 fw-bold">Terapia segura en casa</h2>
|
||||
<hr class="border border-2 border-verde-oscuro hr-style my-0 mb-3 opacity-100">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 mb-3 text-center">
|
||||
<h4 class="fw-bold text-verde-pino">Lavado de manos</h4>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<div class="row justify-content-center align-items-center">
|
||||
<div class="col-6">
|
||||
<div class="card bg-white border-0 rounded-3 p-0 bx-shadow">
|
||||
<div class="p-3 pb-0 position-relative mb-3 w-100 animate__animated animate__flipInX text-center">
|
||||
<p class="mb-0">El lavado de manos también es un paso fundamental en el proceso de diálisis peritoneal.</p>
|
||||
</div>
|
||||
<div
|
||||
class="position-relative w-100 bg-lila-rosa text-primary text-center px-3 py-2 mb-3 animate__animated animate__flipInX animate__delay-1s">
|
||||
<p class="mb-0">Veamos los pasos para un lavado de manos adecuado.</p>
|
||||
</div>
|
||||
<div class="position-relative w-100 text-center animate__animated animate__zoomIn animate__delay-2s">
|
||||
<div
|
||||
class="btn-comenzar bg-primary d-inline-block px-3 py-2 text-center animate__animated animate__pulse animate__infinite">
|
||||
<h5 class="text-white fw-bold mb-0">COMENZAR ACTIVIDAD</h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6 text-center animate__animated animate__zoomIn">
|
||||
<img src="img/09.0.png" class="img-fluid">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="desarrollo" class='page-sco py-2 py-md-0 h-100' style="display: none;overflow: hidden;">
|
||||
<div class='container h-100'>
|
||||
<div class='row justify-content-center align-items-center h-100'>
|
||||
<div class='col-12'>
|
||||
<div class='row justify-content-center mb-5'>
|
||||
<div class="col-11 text-center animate__animated animate__bounceInDown">
|
||||
<div class="position-relative d-inline-block">
|
||||
<h2 class="text-primary mb-1 fw-bold">Terapia segura en casa</h2>
|
||||
<hr class="border border-2 border-verde-oscuro hr-style my-0 mb-3 opacity-100">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-11 mb-3 text-center">
|
||||
<h4 class="fw-bold text-verde-pino">Lavado de manos</h4>
|
||||
</div>
|
||||
<div class="col-12 px-0 mb-3">
|
||||
<div class="card bg-verde-claro border-0 rounded-0 bx-shadow py-2 px-3">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-10">
|
||||
<div class="d-flex flex-row justify-content-center align-items-center gap-3">
|
||||
<img src="img/book0.png" class="img-fluid">
|
||||
<p class="mb-0"><strong>Instrucciones:</strong> Arrastre los pasos del lavado de manos para colocarlos en el orden correcto.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-11">
|
||||
<div class="row justify-content-center align-items-center">
|
||||
<div class="col-12 anim1" >
|
||||
<div class="d-flex flex-column w-100 position-relative gap-2 content-drags drag-list">
|
||||
<div class="drag-sortable" data-order="0">
|
||||
<span class="drag-number"></span>
|
||||
<span class="drag-icon">↕</span>
|
||||
Mójese las manos y aplique suficiente jabón para cubrir toda su superficie. Frótelas entre sí.
|
||||
</div>
|
||||
<div class="drag-sortable" data-order="1">
|
||||
<span class="drag-number"></span>
|
||||
<!-- MANO CON ANIMACIÓN -->
|
||||
<span class="drag-hand-animate"><i class="fa-duotone fa-solid fa-hand-pointer"></i></span>
|
||||
<span class="drag-icon">↕</span>
|
||||
Frótese la palma de la mano derecha contra el dorso de la mano izquierda entrelazando los dedos.
|
||||
</div>
|
||||
<div class="drag-sortable" data-order="2">
|
||||
<span class="drag-number"></span>
|
||||
<span class="drag-icon">↕</span>
|
||||
Frótese las palmas de las manos entre sí con los dedos entrelazados.
|
||||
</div>
|
||||
<div class="drag-sortable" data-order="3">
|
||||
<span class="drag-number"></span>
|
||||
<span class="drag-icon">↕</span>
|
||||
Frótese el dorso de los dedos de una mano con la palma de la mano opuesta.
|
||||
</div>
|
||||
<div class="drag-sortable" data-order="4">
|
||||
<span class="drag-number"></span>
|
||||
<span class="drag-icon">↕</span>
|
||||
Rodeando el pulgar izquierdo con la palma de la mano derecha frótese con un movimiento de rotación y viceversa.
|
||||
</div>
|
||||
<div class="drag-sortable" data-order="5">
|
||||
<span class="drag-number"></span>
|
||||
<span class="drag-icon">↕</span>
|
||||
Frótese la punta de los dedos de la mano derecha contra la palma de la mano izquierda.
|
||||
</div>
|
||||
<div class="drag-sortable" data-order="6">
|
||||
<span class="drag-number"></span>
|
||||
<span class="drag-icon">↕</span>
|
||||
Enjuáguese las manos y séquelas con una toalla de un solo uso.
|
||||
</div>
|
||||
<div class="drag-sortable" data-order="7">
|
||||
<span class="drag-number"></span>
|
||||
<span class="drag-icon">↕</span>
|
||||
Utilice la toalla para cerrar el grifo.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="cierre" class='page-sco py-2 py-md-0 h-100' style="display: none;">
|
||||
<div class='container h-100'>
|
||||
<div class='row justify-content-center align-items-center h-100'>
|
||||
<div class='col-12'>
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-12 text-center mb-3">
|
||||
<img src="img/cierre_actividad.png" class="img-fluid">
|
||||
</div>
|
||||
<div class="col-12 mb-3 text-center">
|
||||
<div class="position-relative d-inline-block">
|
||||
<h2 class="text-primary mb-1 fw-bold">Terapia segura en casa</h2>
|
||||
<hr class="border border-2 border-verde-oscuro hr-style my-0 opacity-100">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 mb-3 text-center">
|
||||
<h4 class="fw-bold text-verde-pino">Lavado de manos</h4>
|
||||
</div>
|
||||
<div class="col-12 text-center mb-3">
|
||||
<h4 class="text-secondary fw-bold">Ha concluido la actividad.</h4>
|
||||
</div>
|
||||
<div class="col-12 text-center col-reintentar animate__animated animate__zoomIn" style="display: none;">
|
||||
<div
|
||||
class="btn-reintentar rounded-3 bg-primary d-inline-block px-3 py-2 text-center animate__animated animate__pulse animate__infinite"
|
||||
onclick="CourseNav.reload()">
|
||||
<h5 class="text-white fw-bold mb-0">Reintentar</h5>
|
||||
</div>
|
||||
</div>
|
||||
</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');
|
||||
|
||||
$('.btn-comenzar').click(function (e) {
|
||||
e.preventDefault();
|
||||
CourseNav.soundClick();
|
||||
$('#inicio').hide();
|
||||
$('#desarrollo').show();
|
||||
mezclarElementos();
|
||||
});
|
||||
|
||||
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 mezclarElementos() {
|
||||
const $container = $('.content-drags');
|
||||
const $elements = $container.children('.drag-sortable').detach();
|
||||
const elementosMezclados = shuffleArray($elements.toArray());
|
||||
$container.append(elementosMezclados);
|
||||
actualizarNumerosDrag();
|
||||
//resaltarDragCorrectos(); // <- Puedes activar la funcionalidad aquí
|
||||
}
|
||||
|
||||
function actualizarNumerosDrag() {
|
||||
$('.content-drags .drag-sortable').each(function (i) {
|
||||
$(this).find('.drag-number').text(i + 1);
|
||||
});
|
||||
}
|
||||
|
||||
// ----------- FUNCIÓN OPCIONAL: INDICAR CORRECTOS -----------
|
||||
function resaltarDragCorrectos() {
|
||||
$('.content-drags .drag-sortable').each(function (index) {
|
||||
const correcto = parseInt($(this).data('order')) === index;
|
||||
$(this).find('.drag-number').toggleClass('drag-number-correct', correcto);
|
||||
});
|
||||
}
|
||||
// ----------------------------------------------------------
|
||||
|
||||
// Oculta la mano cuando se haga cualquier drag
|
||||
let handRemoved = false;
|
||||
$('.content-drags').sortable({
|
||||
update: function () {
|
||||
actualizarNumerosDrag();
|
||||
// Activa aquí para resaltar correctos tras cada movimiento:
|
||||
resaltarDragCorrectos(); // <<<<<< Activa/desactiva aquí
|
||||
verificarOrden();
|
||||
},
|
||||
cursor: "grabbing",
|
||||
placeholder: "drag-placeholder",
|
||||
opacity: 0.82,
|
||||
tolerance: "pointer",
|
||||
scroll: false,
|
||||
helper: "clone",
|
||||
sort: function (event, ui) {
|
||||
var scale = parseFloat($('.wrap-course-content').css('transform').split('(')[1]) || 1;
|
||||
var offset = ui.helper.offset();
|
||||
var mouseX = event.pageX;
|
||||
var mouseY = event.pageY;
|
||||
ui.helper.css({
|
||||
left: (mouseX - ui.helper.parent().offset().left) / scale - ui.helper.width() / 4,
|
||||
top: (mouseY - ui.helper.parent().offset().top) / scale - ui.helper.height() / 2
|
||||
});
|
||||
},
|
||||
start: function (event, ui) {
|
||||
ui.helper.css('transform', 'scale(0.95)');
|
||||
if (!handRemoved) {
|
||||
$('.drag-hand-animate').remove();
|
||||
handRemoved = true;
|
||||
}
|
||||
},
|
||||
stop: function (event, ui) {
|
||||
ui.item.css('transform', 'scale(1)');
|
||||
}
|
||||
});
|
||||
|
||||
actualizarNumerosDrag();
|
||||
|
||||
function verificarOrden() {
|
||||
const $elementos = $('.content-drags .drag-sortable');
|
||||
let todosCorrectos = true;
|
||||
|
||||
$elementos.each(function (index) {
|
||||
const ordenActual = parseInt($(this).data('order'));
|
||||
if (ordenActual !== index) {
|
||||
todosCorrectos = false;
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
if (todosCorrectos) {
|
||||
$('.content-drags').sortable('disable');
|
||||
mostrarPopup(true);
|
||||
}
|
||||
}
|
||||
|
||||
function mostrarPopup(isCorrect) {
|
||||
CourseNav.audioController.stopAllSoundsAndPlay(isCorrect ? feedbackcorrect : feedbackincorrect);
|
||||
Swal.fire({
|
||||
target: document.getElementById('wrap-course-content'),
|
||||
imageUrl: isCorrect ? 'img/good.png' : 'img/bad.png',
|
||||
showConfirmButton: true,
|
||||
customClass: {
|
||||
popup: 'pop_retros bg-transparent border-0 rounded-0 shadow-none',
|
||||
confirmButton: 'btn text-primary bg-lila-rosa amor fw-semibold animate__animated animate__pulse animate__infinite'
|
||||
},
|
||||
confirmButtonText: "Cerrar",
|
||||
backdrop: "rgba(65, 60, 60, .95)",
|
||||
width: "35em",
|
||||
didClose: () => {
|
||||
if (isCorrect) {
|
||||
finalizarActividad();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function finalizarActividad() {
|
||||
$('.wrap-course-content').addClass('fake1').removeClass('fake');
|
||||
$('#desarrollo').hide();
|
||||
$('#cierre').show();
|
||||
CourseNav.setSlideVisited();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
325
contenido/10.html
Normal file
@ -0,0 +1,325 @@
|
||||
<style>
|
||||
.fake {
|
||||
background-image: url(img/bg00.jpg);
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: cover;
|
||||
background-attachment: fixed;
|
||||
}
|
||||
|
||||
.fake1 {
|
||||
background-image: url(img/bg03.jpg);
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: cover;
|
||||
background-attachment: fixed;
|
||||
}
|
||||
|
||||
.bg-custom {
|
||||
background-color: #ede3ec;
|
||||
}
|
||||
|
||||
.btn-comenzar {
|
||||
border-radius: 20px;
|
||||
border-bottom-left-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.border-card {
|
||||
background: #E31D73;
|
||||
background: linear-gradient(to top, #E31D73 0%, #72256B 100%);
|
||||
}
|
||||
|
||||
.btn-answer {
|
||||
border-radius: 40px;
|
||||
background-color: #959595;
|
||||
cursor: pointer;
|
||||
color: #fff;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.btn-answer:hover {
|
||||
background-color: #72256b;
|
||||
}
|
||||
</style>
|
||||
<div id="inicio" class='page-sco py-2 py-md-0 h-100'>
|
||||
<div class='container h-100'>
|
||||
<div class='row justify-content-center align-items-center h-100'>
|
||||
<div class='col-11'>
|
||||
<div class='row justify-content-center'>
|
||||
<div class="col-12 text-center animate__animated animate__bounceInDown">
|
||||
<div class="position-relative d-inline-block">
|
||||
<h2 class="text-primary mb-1 fw-bold">Terapia segura en casa</h2>
|
||||
<hr class="border border-2 border-verde-oscuro hr-style my-0 mb-3 opacity-100">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 mb-3 text-center">
|
||||
<h4 class="fw-bold text-verde-pino">Precalentar la bolsa</h4>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<div class="row justify-content-center align-items-center">
|
||||
<div class="col-6 text-center animate__animated animate__zoomIn">
|
||||
<img src="img/10.0.png" class="img-fluid">
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<div class="card bg-custom border-0 rounded-3 p-0 bx-shadow">
|
||||
<div class="p-3 pb-0 position-relative mb-3 w-100 animate__animated animate__flipInX">
|
||||
<p>Omitir las medidas de seguridad podría provocar <strong>infecciones del sitio de salida o peritonitis.</strong></p>
|
||||
<p class="mb-0">Si utiliza DPCA y vive en un medio ambiente con temperaturas exteriores menores a 15°C, puede ser que sienta más
|
||||
comodidad al <strong>precalentar la bolsa </strong>con solución dializante antes de utilizarla.</p>
|
||||
</div>
|
||||
<div
|
||||
class="position-relative w-100 bg-lila-rosa text-primary px-3 py-2 mb-3 animate__animated animate__flipInX animate__delay-1s">
|
||||
<p class="mb-0 fw-bold text-center">Conozcamos las medidas de seguridad para hacerlo.</p>
|
||||
</div>
|
||||
<div class="position-relative w-100 text-center animate__animated animate__zoomIn animate__delay-2s">
|
||||
<div
|
||||
class="btn-comenzar bg-primary d-inline-block px-3 py-2 text-center animate__animated animate__pulse animate__infinite">
|
||||
<h5 class="text-white fw-bold mb-0">COMENZAR ACTIVIDAD</h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="desarrollo" class='page-sco py-2 py-md-0 h-100' style="display: none;overflow: hidden;">
|
||||
<div class='container h-100'>
|
||||
<div class='row justify-content-center align-items-center h-100'>
|
||||
<div class='col-11'>
|
||||
<div class='row justify-content-center'>
|
||||
<div class="col-10 text-center animate__animated animate__bounceInDown">
|
||||
<div class="position-relative d-inline-block">
|
||||
<h2 class="text-primary mb-1 fw-bold">Terapia segura en casa</h2>
|
||||
<hr class="border border-2 border-verde-oscuro hr-style my-0 mb-2 opacity-100">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-10 mb-1 text-center">
|
||||
<h4 class="fw-bold text-verde-pino">Precalentar la bolsa</h4>
|
||||
</div>
|
||||
<div class="col-10 mb-3">
|
||||
<div class="card bg-lila-rosa border-0 rounded-4 bx-shadow py-2 px-3">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-10">
|
||||
<div class="d-flex flex-row justify-content-center align-items-center gap-3">
|
||||
<img src="img/book0.png" class="img-fluid">
|
||||
<p class="mb-0"><strong>Instrucciones:</strong> Lea las siguientes frases y determine si son verdaderas o falsas para identificar las medidas de seguridad al
|
||||
precalentar la bolsa.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-8">
|
||||
<div class="card border-card rounded-3 bx-shadow p-1 animate__animated animate__zoomIn" style="margin-top: 70px;">
|
||||
<div class="card-body bg-white border-0 rounded-3 shadow-none px-3 pb-3 pt-0">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-12 text-center mb-3">
|
||||
<img src="img/10.1.png" class="img-fluid" style="margin-top: -70px;">
|
||||
</div>
|
||||
<div class="col-12 txt-pregunta fw-bold text-verde-oscuro text-center mb-3"></div>
|
||||
<div class="col-12">
|
||||
<div class="d-flex flex-row justify-content-center align-items-center gap-3 content-answers"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="cierre" class='page-sco py-2 py-md-0 h-100' style="display: none;">
|
||||
<div class='container h-100'>
|
||||
<div class='row justify-content-center align-items-center h-100'>
|
||||
<div class='col-12'>
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-12 text-center mb-3">
|
||||
<img src="img/cierre_actividad.png" class="img-fluid">
|
||||
</div>
|
||||
<div class="col-12 mb-3 text-center">
|
||||
<div class="position-relative d-inline-block">
|
||||
<h2 class="text-primary mb-1 fw-bold">Terapia segura en casa</h2>
|
||||
<hr class="border border-2 border-verde-oscuro hr-style my-0 opacity-100">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 mb-3 text-center">
|
||||
<h4 class="fw-bold text-verde-pino">Precalentar la bolsa</h4>
|
||||
</div>
|
||||
<div class="col-12 text-center mb-3">
|
||||
<h4 class="text-secondary fw-bold">Ha concluido la actividad.</h4>
|
||||
</div>
|
||||
<div class="col-12 text-center col-reintentar animate__animated animate__zoomIn" style="display: none;">
|
||||
<div
|
||||
class="btn-reintentar rounded-3 bg-primary d-inline-block px-3 py-2 text-center animate__animated animate__pulse animate__infinite"
|
||||
onclick="CourseNav.reload()">
|
||||
<h5 class="text-white fw-bold mb-0">Reintentar</h5>
|
||||
</div>
|
||||
</div>
|
||||
</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 maxQuestions = -1;
|
||||
let currentFichaIndex = 0;
|
||||
const bad = CourseNav.createSound('audio/feedback-incorrect.mpeg');
|
||||
const good = CourseNav.createSound('audio/feedback-correct.mpeg');
|
||||
|
||||
$('.btn-comenzar').click(function (e) {
|
||||
e.preventDefault();
|
||||
CourseNav.soundClick();
|
||||
$('#inicio').hide();
|
||||
$('#desarrollo').show();
|
||||
});
|
||||
|
||||
const urlExcelFile = 'Actividades_Manual_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.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 displayQuestion() {
|
||||
if (currentQuestionIndex >= questions.length) {
|
||||
showResults();
|
||||
return;
|
||||
}
|
||||
|
||||
$('.border-card').hide();
|
||||
|
||||
currentQuestion = questions[currentQuestionIndex];
|
||||
$('.txt-pregunta').text(currentQuestion.pregunta);
|
||||
|
||||
setTimeout(() => {
|
||||
$('.border-card').removeClass('animate__zoomIn').addClass('animate__zoomIn').show();
|
||||
}, 100);
|
||||
|
||||
const answersContainer = $('.content-answers');
|
||||
answersContainer.empty();
|
||||
|
||||
const shuffledOpciones = shuffleArray([...currentQuestion.opciones]);
|
||||
|
||||
shuffledOpciones.forEach(opcion => {
|
||||
const icon = opcion.text.toLowerCase().includes('verdadero') ? '<i class="fa-solid fa-check me-2"></i>' : '<i class="fa-solid fa-xmark me-2"></i>';
|
||||
const btn = $(`<div class="btn-answer px-3 py-2 d-flex flex-row justify-content-center align-items-center" data-answer="${opcion.correct}">${icon}${opcion.text}</div>`);
|
||||
answersContainer.append(btn);
|
||||
});
|
||||
|
||||
$('.btn-answer').click(function() {
|
||||
const isCorrect = $(this).data('answer') === true;
|
||||
|
||||
$('.btn-answer').off('click').css('pointer-events', 'none');
|
||||
|
||||
if (isCorrect) {
|
||||
$(this).addClass('bg-success text-white');
|
||||
correctQuestions++;
|
||||
} else {
|
||||
$(this).addClass('bg-danger text-white');
|
||||
//$('.btn-answer[data-answer="true"]').addClass('bg-success text-white');
|
||||
}
|
||||
|
||||
CourseNav.audioController.stopAllSoundsAndPlay(isCorrect ? good : bad);
|
||||
showFeedback(isCorrect);
|
||||
});
|
||||
}
|
||||
|
||||
function showFeedback(isCorrect) {
|
||||
Swal.fire({
|
||||
target: document.getElementById('wrap-course-content'),
|
||||
imageUrl: isCorrect ? 'img/good.png' : 'img/bad.png',
|
||||
showConfirmButton: true,
|
||||
customClass: {
|
||||
popup: 'pop_retros bg-transparent border-0 rounded-0 shadow-none',
|
||||
confirmButton: 'btn text-primary bg-lila-rosa amor fw-semibold animate__animated animate__pulse animate__infinite'
|
||||
},
|
||||
confirmButtonText: "Cerrar",
|
||||
backdrop: "rgba(65, 60, 60, .95)",
|
||||
width: "35em",
|
||||
didClose: () => {
|
||||
currentQuestionIndex++;
|
||||
displayQuestion();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function showResults() {
|
||||
const percentage = (correctQuestions / questions.length) * 100;
|
||||
const passed = percentage >= 80;
|
||||
|
||||
if (passed) {
|
||||
CourseNav.setSlideVisited();
|
||||
$('#desarrollo').hide();
|
||||
$('#cierre').show();
|
||||
} else {
|
||||
$('.col-reintentar').show();
|
||||
$('#desarrollo').hide();
|
||||
$('#cierre').show();
|
||||
}
|
||||
}
|
||||
|
||||
readExcelFile(urlExcelFile, function (data) {
|
||||
const hojaDatos = data["Diapositiva 20"];
|
||||
const preguntasProcesadas = shuffleArray(procesarPreguntas(hojaDatos));
|
||||
questions = maxQuestions === -1 ? preguntasProcesadas : preguntasProcesadas.slice(0, maxQuestions);
|
||||
displayQuestion();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
362
contenido/11.html
Normal file
@ -0,0 +1,362 @@
|
||||
<style>
|
||||
.fake {
|
||||
background-image: url(img/bg04.jpg);
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: cover;
|
||||
background-attachment: fixed;
|
||||
}
|
||||
|
||||
.fake1 {
|
||||
background-image: url(img/bg03.jpg);
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: cover;
|
||||
background-attachment: fixed;
|
||||
}
|
||||
|
||||
.btn-comenzar {
|
||||
border-radius: 20px;
|
||||
border-bottom-left-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.btn-answer {
|
||||
cursor: pointer;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 0 2px rgba(0,0,0,.5);
|
||||
}
|
||||
|
||||
.letter {
|
||||
background-color: #6c9d7a;
|
||||
border-radius: 10px;
|
||||
border-top-right-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
}
|
||||
|
||||
.btn-answer.selected {
|
||||
background-color: #d9c5d7;
|
||||
}
|
||||
|
||||
.btn-answer.selected .letter {
|
||||
background-color: #925c8d;
|
||||
}
|
||||
|
||||
.btn-answer:hover {
|
||||
background-color: #d9c5d7;
|
||||
}
|
||||
|
||||
.btn-answer:hover .letter {
|
||||
background-color: #925c8d;
|
||||
}
|
||||
|
||||
#svg-container {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
#svg-container svg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.piece-puzzle {
|
||||
transition: all 0.5s ease;
|
||||
}
|
||||
</style>
|
||||
<div id="inicio" class='page-sco py-2 py-md-0 h-100'>
|
||||
<div class='container h-100'>
|
||||
<div class='row justify-content-center align-items-center h-100'>
|
||||
<div class='col-11'>
|
||||
<div class='row justify-content-center'>
|
||||
<div class="col-12 text-center animate__animated animate__bounceInDown">
|
||||
<div class="position-relative d-inline-block">
|
||||
<h2 class="text-primary mb-1 fw-bold">Autocuidado</h2>
|
||||
<hr class="border border-2 border-verde-oscuro hr-style my-0 mb-1 opacity-100">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 mb-3 text-center">
|
||||
<h4 class="fw-bold text-verde-pino">Consumo y balance de líquidos</h4>
|
||||
</div>
|
||||
<div class="col-12 text-center mb-1 animate__animated animate__zoomIn">
|
||||
<img src="img/11.0.png" class="img-fluid">
|
||||
</div>
|
||||
<div class="col-12 text-center mb-3 animate__animated animate__flipInX">
|
||||
<p>La gran ventaja de la DP es que se trata de un tratamiento <strong class="text-lila-claro">autoadministrado y domiciliario</strong>, sin
|
||||
embargo, es necesario que acuda a todas sus consultas de seguimiento y lleve todos los estudios de laboratorio y
|
||||
registros de tratamiento que le solicite el personal de salud.</p>
|
||||
</div>
|
||||
<div class="col-12 text-center animate__animated animate__lightSpeedInLeft animate__delay-1s mb-3">
|
||||
<div class="d-inline-block px-3 py-2 bg-verde-claro rounded-3 text-verde-oscuro fw-bold">
|
||||
Un aspecto importante a tomar en cuenta es el consumo y balance de líquidos.
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 text-center animate__animated animate__zoomIn animate__delay-2s">
|
||||
<div
|
||||
class="btn-comenzar bg-primary d-inline-block px-3 py-2 text-center animate__animated animate__pulse animate__infinite">
|
||||
<h5 class="text-white fw-bold mb-0">COMENZAR ACTIVIDAD</h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="desarrollo" class='page-sco py-2 py-md-0 h-100' style="display: none;overflow: hidden;">
|
||||
<div class='container h-100'>
|
||||
<div class='row justify-content-center align-items-center h-100'>
|
||||
<div class='col-12'>
|
||||
<div class='row justify-content-center mb-5'>
|
||||
<div class="col-11 text-center animate__animated animate__bounceInDown">
|
||||
<div class="position-relative d-inline-block">
|
||||
<h2 class="text-primary mb-1 fw-bold">Autocuidado</h2>
|
||||
<hr class="border border-2 border-verde-oscuro hr-style my-0 mb-3 opacity-100">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-11 mb-3 text-center">
|
||||
<h4 class="fw-bold text-verde-pino">Consumo y balance de líquidos</h4>
|
||||
</div>
|
||||
<div class="col-12 px-0 mb-3">
|
||||
<div class="card bg-rosa-lavanda border-0 rounded-0 bx-shadow py-2 px-3">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-10">
|
||||
<div class="d-flex flex-row justify-content-center align-items-center gap-3">
|
||||
<img src="img/book0.png" class="img-fluid">
|
||||
<p class="mb-0"><strong>Instrucciones:</strong> Lea cada una de las preguntas acerca del control de líquidos y conteste correctamente. Por cada acierto obtendrá una
|
||||
pieza del rompecabezas, el reto es descubrir la imagen oculta.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-11">
|
||||
<div class="row justify-content-center align-items-center">
|
||||
<div class="col-5">
|
||||
<div id="svg-container"></div>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<div id="card-content-quiz-rompecabezas" class="card bg-white border-0 rounded-15 p-3 card-content-quiz animate__animated animate__zoomIn bx-shadow">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-12 text-center fw-bold text-verde-oscuro txt-question mb-3"></div>
|
||||
<div class="col-12 content-answers"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="cierre" class='page-sco py-2 py-md-0 h-100' style="display: none;">
|
||||
<div class='container h-100'>
|
||||
<div class='row justify-content-center align-items-center h-100'>
|
||||
<div class='col-12'>
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-12 text-center mb-3">
|
||||
<img src="img/cierre_actividad.png" class="img-fluid">
|
||||
</div>
|
||||
<div class="col-12 mb-3 text-center">
|
||||
<div class="position-relative d-inline-block">
|
||||
<h2 class="text-primary mb-1 fw-bold">Autocuidado</h2>
|
||||
<hr class="border border-2 border-verde-oscuro hr-style my-0 opacity-100">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 mb-3 text-center">
|
||||
<h4 class="fw-bold text-verde-pino">Consumo y balance de líquidos</h4>
|
||||
</div>
|
||||
<div class="col-12 text-center mb-3">
|
||||
<h4 class="text-secondary fw-bold">Ha concluido la actividad.</h4>
|
||||
</div>
|
||||
<div class="col-12 text-center col-reintentar animate__animated animate__zoomIn" style="display: none;">
|
||||
<div
|
||||
class="btn-reintentar rounded-3 bg-primary d-inline-block px-3 py-2 text-center animate__animated animate__pulse animate__infinite"
|
||||
onclick="CourseNav.reload()">
|
||||
<h5 class="text-white fw-bold mb-0">Reintentar</h5>
|
||||
</div>
|
||||
</div>
|
||||
</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 maxQuestions = -1;
|
||||
const bad = CourseNav.createSound('audio/feedback-incorrect.mpeg');
|
||||
const good = CourseNav.createSound('audio/feedback-correct.mpeg');
|
||||
|
||||
function loadSVG() {
|
||||
$.get('img/puzzle.svg', function (data) {
|
||||
var svg = $(data).find('svg');
|
||||
$('#svg-container').html(svg);
|
||||
// Remove width and height attributes to make SVG responsive
|
||||
svg.removeAttr('width').removeAttr('height');
|
||||
|
||||
// Ocultar elementos con id que inicie con 'pz' y agregar clase 'piece-puzzle'
|
||||
svg.find('[id^="pz"]').hide().addClass('piece-puzzle');
|
||||
}, 'xml');
|
||||
}
|
||||
|
||||
$('.btn-comenzar').click(function (e) {
|
||||
e.preventDefault();
|
||||
CourseNav.soundClick();
|
||||
$('#inicio').hide();
|
||||
$('#desarrollo').show();
|
||||
});
|
||||
|
||||
const urlExcelFile = 'Actividades_Manual_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.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 displayQuestion() {
|
||||
if (currentQuestionIndex >= questions.length) {
|
||||
setTimeout(() => {
|
||||
showResults();
|
||||
}, 700);
|
||||
return;
|
||||
}
|
||||
|
||||
$('#card-content-quiz-rompecabezas').hide();
|
||||
|
||||
currentQuestion = questions[currentQuestionIndex];
|
||||
$('.txt-question').text(currentQuestion.pregunta);
|
||||
|
||||
const answersContainer = $('.content-answers');
|
||||
answersContainer.empty();
|
||||
|
||||
setTimeout(() => {
|
||||
$('#card-content-quiz-rompecabezas').removeClass('animate__zoomIn').addClass('animate__zoomIn').show();
|
||||
}, 100);
|
||||
|
||||
const shuffledOpciones = shuffleArray([...currentQuestion.opciones]);
|
||||
|
||||
shuffledOpciones.forEach((opcion, index) => {
|
||||
const btn = $(`<div class="position-relative d-flex flex-row align-items-center gap-0 mb-2 btn-answer" data-correct="${opcion.correct}">
|
||||
<div class="d-flex flex-row justify-content-center align-items-center letter text-white text-center p-3">${String.fromCharCode(97 + index)}</div>
|
||||
<div class="txt-answer ps-3">${opcion.text}</div>
|
||||
</div>`);
|
||||
answersContainer.append(btn);
|
||||
});
|
||||
|
||||
$('.btn-answer').click(function() {
|
||||
const isCorrect = $(this).data('correct') === true;
|
||||
|
||||
$('.btn-answer').off('click').css('pointer-events', 'none');
|
||||
|
||||
if (isCorrect) {
|
||||
correctQuestions++;
|
||||
}
|
||||
|
||||
CourseNav.audioController.stopAllSoundsAndPlay(isCorrect ? good : bad);
|
||||
showFeedback(isCorrect);
|
||||
});
|
||||
}
|
||||
|
||||
function showFeedback(isCorrect) {
|
||||
Swal.fire({
|
||||
target: document.getElementById('wrap-course-content'),
|
||||
imageUrl: isCorrect ? 'img/good.png' : 'img/bad.png',
|
||||
showConfirmButton: true,
|
||||
customClass: {
|
||||
popup: 'pop_retros bg-transparent border-0 rounded-0 shadow-none',
|
||||
confirmButton: 'btn text-primary bg-lila-rosa amor fw-semibold animate__animated animate__pulse animate__infinite'
|
||||
},
|
||||
confirmButtonText: "Cerrar",
|
||||
backdrop: "rgba(65, 60, 60, .95)",
|
||||
width: "35em",
|
||||
didClose: () => {
|
||||
if (isCorrect) {
|
||||
showPuzzlePiece();
|
||||
}
|
||||
currentQuestionIndex++;
|
||||
displayQuestion();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function showPuzzlePiece() {
|
||||
const pieceId = `#pz${correctQuestions - 1}`;
|
||||
$(pieceId).show();
|
||||
}
|
||||
|
||||
function showResults() {
|
||||
const percentage = (correctQuestions / questions.length) * 100;
|
||||
const passed = percentage >= 80;
|
||||
|
||||
if (passed) {
|
||||
CourseNav.setSlideVisited();
|
||||
$('#desarrollo').hide();
|
||||
$('#cierre').show();
|
||||
} else {
|
||||
$('.col-reintentar').show();
|
||||
$('#desarrollo').hide();
|
||||
$('#cierre').show();
|
||||
}
|
||||
}
|
||||
|
||||
readExcelFile(urlExcelFile, function (data) {
|
||||
const hojaDatos = data["Diapositiva 22"];
|
||||
const preguntasProcesadas = shuffleArray(procesarPreguntas(hojaDatos));
|
||||
questions = maxQuestions === -1 ? preguntasProcesadas : preguntasProcesadas.slice(0, maxQuestions);
|
||||
loadSVG();
|
||||
setTimeout(() => {
|
||||
displayQuestion();
|
||||
}, 500);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
503
contenido/12.html
Normal file
@ -0,0 +1,503 @@
|
||||
<style>
|
||||
.fake {
|
||||
background-image: url(img/bg01.jpg);
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: cover;
|
||||
background-attachment: fixed;
|
||||
}
|
||||
|
||||
.fake1 {
|
||||
background-image: url(img/bg02.jpg);
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: cover;
|
||||
background-attachment: fixed;
|
||||
}
|
||||
|
||||
.btn-comenzar {
|
||||
border-radius: 20px;
|
||||
border-bottom-left-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.wruleta {
|
||||
transition: transform 4s cubic-bezier(0.25, 0.1, 0.25, 1);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.wruleta.spinning {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
#spin-btn {
|
||||
border: none;
|
||||
color: white;
|
||||
padding: 15px 30px;
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
border-radius: 12px;
|
||||
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;
|
||||
}
|
||||
|
||||
.btn-answer {
|
||||
cursor: pointer;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 0 2px rgba(0,0,0,.5);
|
||||
background-color: #f8f9fa;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.letter {
|
||||
background-color: #6c9d7a;
|
||||
border-radius: 10px;
|
||||
border-top-right-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
}
|
||||
|
||||
.btn-answer.selected {
|
||||
background-color: #d9c5d7;
|
||||
}
|
||||
|
||||
.btn-answer.selected .letter {
|
||||
background-color: #925c8d;
|
||||
}
|
||||
|
||||
.btn-answer:hover {
|
||||
background-color: #d9c5d7;
|
||||
}
|
||||
|
||||
.btn-answer:hover .letter {
|
||||
background-color: #925c8d;
|
||||
}
|
||||
</style>
|
||||
<div id="inicio" class='page-sco py-2 py-md-0 h-100'>
|
||||
<div class='container h-100'>
|
||||
<div class='row justify-content-center align-items-center h-100'>
|
||||
<div class='col-11'>
|
||||
<div class='row justify-content-center align-items-center'>
|
||||
<div class="col-12 text-center animate__animated animate__bounceInDown">
|
||||
<div class="position-relative d-inline-block">
|
||||
<h2 class="text-primary mb-1 fw-bold">Autocuidado</h2>
|
||||
<hr class="border border-2 border-verde-oscuro hr-style my-0 mb-1 opacity-100">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 mb-3 text-center">
|
||||
<h4 class="fw-bold text-verde-pino">Alimentación y actividad física</h4>
|
||||
</div>
|
||||
<div class="col-5 text-center mb-3 animate__animated animate__flipInX">
|
||||
<div class="card bg-white border-0 rounded-3 p-3 pb-0 bx-shadow">
|
||||
<p><strong class="text-lila-claro">La alimentación </strong>balanceada es muy importante como parte de su tratamiento,
|
||||
<strong class="text-lila-claro">se debe
|
||||
personalizar </strong>con base en sus necesidades.</p>
|
||||
<p>También, es necesario <strong class="text-lila-claro">mantener un estilo de vida activo </strong>para el
|
||||
buen funcionamiento de músculos,
|
||||
huesos y corazón.</p>
|
||||
<div class="w-100 position-relative text-center">
|
||||
<div
|
||||
class="btn-comenzar bg-primary d-inline-block px-3 py-2 text-center animate__animated animate__pulse animate__infinite">
|
||||
<h5 class="text-white fw-bold mb-0">COMENZAR ACTIVIDAD</h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6 text-center mb-1 animate__animated animate__zoomIn">
|
||||
<img src="img/12.0.png" class="img-fluid">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="desarrollo" class='page-sco py-2 py-md-0 h-100' style="display: none;overflow: hidden;">
|
||||
<div class='container h-100'>
|
||||
<div class='row justify-content-center align-items-center h-100'>
|
||||
<div class='col-12'>
|
||||
<div class='row justify-content-center mb-5'>
|
||||
<div class="col-11 text-center animate__animated animate__bounceInDown">
|
||||
<div class="position-relative d-inline-block">
|
||||
<h2 class="text-primary mb-1 fw-bold">Autocuidado</h2>
|
||||
<hr class="border border-2 border-verde-oscuro hr-style my-0 mb-3 opacity-100">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 mb-3 text-center">
|
||||
<h4 class="fw-bold text-verde-pino">Alimentación y actividad física</h4>
|
||||
</div>
|
||||
<div class="col-12 px-0 mb-3">
|
||||
<div class="row">
|
||||
<div class="col-8">
|
||||
<div class="card bg-verde-claro border-0 bx-shadow py-2 px-3" style="border-radius: 15px;border-top-left-radius: 0;border-bottom-left-radius: 0;">
|
||||
<div class="row justify-content-start">
|
||||
<div class="col-12">
|
||||
<div class="d-flex flex-row justify-content-center align-items-center gap-3 ps-4">
|
||||
<img src="img/book1.png" class="img-fluid">
|
||||
<p class="mb-0"><strong>Instrucciones:</strong> De clic en la ruleta y conteste correctamente la pregunta acerca
|
||||
de la alimentación o actividad física del paciente en
|
||||
diálisis peritoneal para ganar los puntos.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-11">
|
||||
<div class="row justify-content-center align-items-center animate__animated animate__slideInRight">
|
||||
<div class="col-6">
|
||||
<div class="card custom-card bg-secondary border-0 shadow">
|
||||
<div class="card-body">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-4 text-center">
|
||||
<img src="img/per1.png" alt="" class="img-fluid" />
|
||||
</div>
|
||||
<div class="col-8 text-white text-center">
|
||||
<h4>Puntos acumulados:</h4>
|
||||
<h2 class="puntos">0</h2>
|
||||
<div class="card flat">
|
||||
<img src="img/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: 22%">
|
||||
<div class="avance"><img src="img/pr.png" class="img-fluid" alt="" /></div>
|
||||
<div class="avance"><img src="img/pr.png" class="img-fluid" alt="" /></div>
|
||||
<div class="avance"><img src="img/pr.png" class="img-fluid" alt="" /></div>
|
||||
<div class="avance"><img src="img/pr.png" class="img-fluid" alt="" /></div>
|
||||
<div class="avance"><img src="img/pr.png" class="img-fluid" alt="" /></div>
|
||||
<div class="avance"><img src="img/pr.png" class="img-fluid" alt="" /></div>
|
||||
<div class="avance"><img src="img/pr.png" class="img-fluid" alt="" /></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="position-relative w-100">
|
||||
<div class="row">
|
||||
<div class="col-12 text-center">
|
||||
<div class="mt-3">
|
||||
<button id="spin-btn"
|
||||
class="bg-verde-oscuro text-white border border-4 border-white animate__animated animate__pulse animate__infinite">¡GIRAR
|
||||
RULETA!</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-4 text-center" style="margin-top: -30px;">
|
||||
<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/indicador.png" alt="" style="transform: rotate(90deg)" />
|
||||
</div>
|
||||
<div class="wruleta z-2" id="ruleta-wheel">
|
||||
<img src="img/ruleta.png" alt="" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="cierre" class='page-sco py-2 py-md-0 h-100' style="display: none;">
|
||||
<div class='container h-100'>
|
||||
<div class='row justify-content-center align-items-center h-100'>
|
||||
<div class='col-12'>
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-12 text-center mb-3">
|
||||
<img src="img/cierre_actividad.png" class="img-fluid">
|
||||
</div>
|
||||
<div class="col-12 mb-3 text-center">
|
||||
<div class="position-relative d-inline-block">
|
||||
<h2 class="text-primary mb-1 fw-bold">Autocuidado</h2>
|
||||
<hr class="border border-2 border-verde-oscuro hr-style my-0 opacity-100">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 mb-3 text-center">
|
||||
<h4 class="fw-bold text-verde-pino">Alimentación y actividad física</h4>
|
||||
</div>
|
||||
<div class="col-12 text-center mb-3">
|
||||
<h4 class="text-secondary fw-bold">Ha concluido la actividad.</h4>
|
||||
</div>
|
||||
<div class="col-12 text-center col-reintentar animate__animated animate__zoomIn" style="display: none;">
|
||||
<div
|
||||
class="btn-reintentar rounded-3 bg-primary d-inline-block px-3 py-2 text-center animate__animated animate__pulse animate__infinite"
|
||||
onclick="CourseNav.reload()">
|
||||
<h5 class="text-white fw-bold mb-0">Reintentar</h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$(function () {
|
||||
"use strict";
|
||||
$('.wrap-course-content').addClass('fake');
|
||||
|
||||
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 = 7;
|
||||
|
||||
const ruletaWheel = document.getElementById("ruleta-wheel");
|
||||
const spinBtn = document.getElementById("spin-btn");
|
||||
const puntosDisplay = document.querySelector(".puntos");
|
||||
const avanceImages = document.querySelectorAll(".avance img");
|
||||
|
||||
const bad = CourseNav.createSound("audio/feedback-incorrect.mpeg");
|
||||
const good = CourseNav.createSound("audio/feedback-correct.mpeg");
|
||||
|
||||
$('.btn-comenzar').click(function (e) {
|
||||
e.preventDefault();
|
||||
CourseNav.soundClick();
|
||||
$('.wrap-course-content').addClass('fake1').removeClass('fake');
|
||||
$('#inicio').hide();
|
||||
$('#desarrollo').show();
|
||||
});
|
||||
|
||||
function girarRuleta() {
|
||||
if (isSpinning || girosRealizados >= maxGiros) return;
|
||||
|
||||
isSpinning = true;
|
||||
spinBtn.disabled = true;
|
||||
spinBtn.classList.remove("animate__animated", "animate__pulse", "animate__infinite");
|
||||
ruletaWheel.classList.add("spinning");
|
||||
document.getElementById("coursenav-main-content").classList.add("no-overflow");
|
||||
|
||||
const vueltas = 3 + Math.random() * 2;
|
||||
const anguloFinal = Math.random() * 360;
|
||||
const rotacionTotal = rotacionActual + vueltas * 360 + anguloFinal;
|
||||
|
||||
ruletaWheel.style.transform = `rotate(${rotacionTotal}deg)`;
|
||||
rotacionActual = rotacionTotal;
|
||||
|
||||
setTimeout(() => {
|
||||
const anguloNormalizado = rotacionActual % 360;
|
||||
const segmento = Math.floor((anguloNormalizado + 15) / 30) % 12;
|
||||
const puntajeObtenido = puntajes[segmento];
|
||||
|
||||
setTimeout(() => {
|
||||
mostrarPregunta(puntajeObtenido);
|
||||
}, 500);
|
||||
}, 4000);
|
||||
}
|
||||
|
||||
spinBtn.addEventListener("click", girarRuleta);
|
||||
|
||||
const urlExcelFile = "Actividades_Manual_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;
|
||||
}
|
||||
|
||||
let questions = [];
|
||||
|
||||
function mostrarPregunta(puntajeEnJuego) {
|
||||
if (questions.length === 0) return;
|
||||
|
||||
const preguntaAleatoria = questions[Math.floor(Math.random() * questions.length)];
|
||||
const opcionesBarajadas = shuffleArray([...preguntaAleatoria.opciones]);
|
||||
|
||||
let opcionesHTML = '';
|
||||
opcionesBarajadas.forEach((opcion, index) => {
|
||||
opcionesHTML += `<div class="position-relative d-flex flex-row align-items-center gap-0 mb-2 btn-answer" data-correct="${opcion.correct}" data-puntos="${puntajeEnJuego}">
|
||||
<div class="d-flex flex-row justify-content-center align-items-center letter text-white text-center p-3">${String.fromCharCode(97 + index)}</div>
|
||||
<div class="txt-answer ps-3">${opcion.text}</div>
|
||||
</div>`;
|
||||
});
|
||||
|
||||
Swal.fire({
|
||||
target: document.getElementById('wrap-course-content'),
|
||||
html: `
|
||||
<div class="text-center mb-3">
|
||||
<h4 class="fw-bold text-verde-oscuro">${preguntaAleatoria.pregunta}</h4>
|
||||
<p class="text-muted">Puntos en juego: <strong>${puntajeEnJuego}</strong></p>
|
||||
</div>
|
||||
<div class="content-answers">
|
||||
${opcionesHTML}
|
||||
</div>
|
||||
`,
|
||||
showConfirmButton: false,
|
||||
allowOutsideClick: false,
|
||||
customClass: {
|
||||
popup: 'swal-wide bg-white border-0 rounded-3 shadow'
|
||||
},
|
||||
backdrop: "rgba(65, 60, 60, .95)",
|
||||
width: "50em",
|
||||
didOpen: () => {
|
||||
$('.btn-answer').click(function() {
|
||||
const isCorrect = $(this).data('correct') === true;
|
||||
const puntos = $(this).data('puntos');
|
||||
|
||||
$('.btn-answer').off('click').css('pointer-events', 'none');
|
||||
|
||||
if (isCorrect) {
|
||||
$(this).addClass('bg-success text-white');
|
||||
totalPuntos += puntos;
|
||||
actualizarPuntos(true);
|
||||
} else {
|
||||
actualizarPuntos(false);
|
||||
$(this).addClass('bg-danger text-white');
|
||||
//$('.btn-answer[data-correct="true"]').addClass('bg-success text-white');
|
||||
}
|
||||
|
||||
CourseNav.audioController.stopAllSoundsAndPlay(isCorrect ? good : bad);
|
||||
|
||||
setTimeout(() => {
|
||||
Swal.close();
|
||||
mostrarFeedback(isCorrect, preguntaAleatoria);
|
||||
}, 500);
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function mostrarFeedback(isCorrect, pregunta) {
|
||||
const retroalimentacion = isCorrect ? pregunta.retroalimentacion_correcta : pregunta.retroalimentacion_incorrecta;
|
||||
|
||||
Swal.fire({
|
||||
target: document.getElementById('wrap-course-content'),
|
||||
imageUrl: isCorrect ? 'img/good.png' : 'img/bad.png',
|
||||
text: retroalimentacion || '',
|
||||
showConfirmButton: true,
|
||||
customClass: {
|
||||
popup: 'pop_retros bg-transparent border-0 rounded-0 shadow-none',
|
||||
confirmButton: 'btn text-primary bg-lila-rosa amor fw-semibold animate__animated animate__pulse animate__infinite'
|
||||
},
|
||||
confirmButtonText: "Continuar",
|
||||
backdrop: "rgba(65, 60, 60, .95)",
|
||||
width: "35em",
|
||||
didClose: () => {
|
||||
continuarJuego();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function continuarJuego() {
|
||||
girosRealizados++;
|
||||
|
||||
if (girosRealizados >= maxGiros) {
|
||||
setTimeout(() => {
|
||||
finalizarJuego();
|
||||
}, 700);
|
||||
} else {
|
||||
isSpinning = false;
|
||||
spinBtn.disabled = false;
|
||||
spinBtn.classList.add("animate__animated", "animate__pulse", "animate__infinite");
|
||||
ruletaWheel.classList.remove("spinning");
|
||||
document.getElementById("coursenav-main-content").classList.remove("no-overflow");
|
||||
}
|
||||
}
|
||||
|
||||
function actualizarPuntos(isCorrect) {
|
||||
puntosDisplay.textContent = totalPuntos;
|
||||
|
||||
if (isCorrect && avanceImages[girosRealizados]) {
|
||||
avanceImages[girosRealizados].classList.add('visited');
|
||||
}
|
||||
}
|
||||
|
||||
function finalizarJuego() {
|
||||
const porcentaje = (totalPuntos / (7 * 700)) * 100;
|
||||
const aprobado = porcentaje >= 60;
|
||||
|
||||
if (aprobado) {
|
||||
CourseNav.setSlideVisited();
|
||||
$('#desarrollo').hide();
|
||||
$('#cierre').show();
|
||||
} else {
|
||||
$('.col-reintentar').show();
|
||||
$('#desarrollo').hide();
|
||||
$('#cierre').show();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
readExcelFile(urlExcelFile, function (data) {
|
||||
const hojaDatos = data["Diapositiva 24"];
|
||||
questions = shuffleArray(procesarPreguntas(hojaDatos));
|
||||
});
|
||||
});
|
||||
</script>
|
||||
2
css/style.min.css
vendored
@ -8,7 +8,6 @@ $outline-color: #ffa300 !default;
|
||||
html {
|
||||
box-sizing: border-box;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
*,
|
||||
*::before,
|
||||
@ -26,7 +25,6 @@ body {
|
||||
font-family: 'Arial', sans-serif;
|
||||
line-height: 1.3;
|
||||
font-size: 18px;
|
||||
overflow: hidden;
|
||||
|
||||
> header,
|
||||
> footer {
|
||||
@ -292,6 +290,11 @@ body {
|
||||
overflow: hidden;
|
||||
z-index: 1;
|
||||
// Puedes agregar box-shadow o background si quieres
|
||||
|
||||
@media (min-width: 1500px) {
|
||||
width: 1920px;
|
||||
height: 1080px;
|
||||
}
|
||||
}
|
||||
#coursenav-offcanvas {
|
||||
border-top-right-radius: 30px !important;
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
html {
|
||||
box-sizing: border-box;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
*,
|
||||
@ -19,7 +18,6 @@ body {
|
||||
font-family: "Arial", sans-serif;
|
||||
line-height: 1.3;
|
||||
font-size: 18px;
|
||||
overflow: hidden;
|
||||
}
|
||||
body > header,
|
||||
body > footer {
|
||||
@ -299,6 +297,12 @@ body > main {
|
||||
overflow: hidden;
|
||||
z-index: 1;
|
||||
}
|
||||
@media (min-width: 1500px) {
|
||||
.wrap-course-content {
|
||||
width: 1920px;
|
||||
height: 1080px;
|
||||
}
|
||||
}
|
||||
|
||||
#coursenav-offcanvas {
|
||||
border-top-right-radius: 30px !important;
|
||||
|
||||
BIN
img/09.0.png
Normal file
|
After Width: | Height: | Size: 119 KiB |
BIN
img/10.0.png
Normal file
|
After Width: | Height: | Size: 127 KiB |
BIN
img/10.1.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
img/11.0.png
Normal file
|
After Width: | Height: | Size: 81 KiB |
BIN
img/12.0.png
Normal file
|
After Width: | Height: | Size: 154 KiB |
BIN
img/indicador.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
img/per1.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
img/pr.png
Normal file
|
After Width: | Height: | Size: 410 B |
BIN
img/progress.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
65
img/puzzle.svg
Normal file
|
After Width: | Height: | Size: 5.3 MiB |
BIN
img/ruleta.png
Normal file
|
After Width: | Height: | Size: 22 KiB |