<organizations default="$scorm_org">
<organization identifier="$scorm_org" structure="hierarchical">
<title>$scorm_title</title>
- <item identifier="$scorm_id" identifierref="$scorm_id" isvisible="true">
+ <item identifier="$scorm_id" identifierref="$scorm_id_RES" isvisible="true">
<title>$scorm_title</title>
</item>
</organization>
</organizations>
<resources>
- <resource type="webcontent" adlcp:scormtype="sco" identifier="$scorm_id" href="index.html">
+ <resource type="webcontent" adlcp:scormtype="sco" identifier="$scorm_id_RES" href="index.html">
<file href="index.html"/>
</resource>
</resources>
} catch (e) {
}
- setScormValue('exit', 'suspend');
- startScormTimer();
$(document).on('fluidbook.ready', function () {
+ scormExit();
+ startScormTimer();
initScormEvents();
initScormInteractions();
});
}
function scormMarkAsComplete() {
- setScormValue('exit', 'suspend');
+ scormExit();
setScormValue('status', "completed");
if (!fluidbook.scorm.manageScore) {
setScormValue('success_status', 'passed');
}
}
+function scormExit() {
+ setScormValue('exit', fluidbook.settings.scorm_force_attempts ? 'logout' : 'suspend');
+}
+
function startScormTimer() {
SCORM_START_TIME = new Date();
}