38 lines
1.2 KiB
HTML
38 lines
1.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="es">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Parada Respiratoria - Guía de Refuerzo SCORM</title>
|
|
<link rel="stylesheet" href="assets/styles.css">
|
|
<script src="assets/scorm-api.js"></script>
|
|
</head>
|
|
<body>
|
|
<script>
|
|
// Redirigir a la primera sección o restaurar última posición
|
|
(function() {
|
|
let targetSection = 'sections/section-01.html';
|
|
|
|
// Intentar restaurar desde SCORM
|
|
if (window.SCORM) {
|
|
window.SCORM.initialize();
|
|
const location = window.SCORM.getValue("cmi.core.lesson_location");
|
|
if (location) {
|
|
const sectionNum = parseInt(location, 10);
|
|
if (sectionNum >= 1 && sectionNum <= 8) {
|
|
targetSection = `sections/section-${String(sectionNum).padStart(2, '0')}.html`;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Redirigir a la sección correspondiente
|
|
window.location.href = targetSection;
|
|
})();
|
|
</script>
|
|
<div class="scorm-container">
|
|
<p>Cargando guía...</p>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
|