"title": "Title of the module",
"type": "IN",
"path": "packages/IN/HF_IN_PositiveCulture_v1_UK EN_outlined.pdf",
- "mandatory": true
+ "mandatory": true,
+ "scorm": false,
},
{
"id": 1,
"title": "Title of the module",
"type": "AN",
"path": "packages/AN/HF_AN_038_Building a positive culture_UK EN.mp4",
- "mandatory": true
+ "mandatory": true,
+ "scorm": false,
},
{
"id": 2,
"title": "Title of the module",
"type": "VI",
"path": "packages/Ti5/TI5_100_Positive-Culture_UK EN.mp4",
- "mandatory": true
+ "mandatory": true,
+ "scorm": false,
},
{
"id": 3,
"title": "Title of the module",
"type": "FB",
"path": "packages/FB/index.html",
- "mandatory": true
+ "mandatory": true,
+ "scorm": true,
},
{
"id": 4,
1,
2,
3
- ]
+ ],
+ "scorm": true,
}
]
};
\ No newline at end of file
+var status = {};
+
(function (global) {
$(function () {
initEvents();
$("#scobar #scoicon").html(getSpriteIcon('icon-' + module.type));
$("#scobar .close").html(getSpriteIcon('interface-close'));
$("#sco").attr('src', path);
+
+ if (!module.scorm) {
+ setModuleState(module.id, 'completed', 'passed', 100);
+ }
+}
+
+function setModuleState(id, completion_status, success_status, score, location) {
+ if (location === undefined) {
+ location = {};
+ }
+ var s = {completion_status: completion_status, success_status: success_status, score: score, location: location};
+ status[id] = s;
+ saveStatus();
+}
+
+function saveStatus() {
+
}
function getModuleData(id) {