@learnpack/learnpack 5.0.349 → 5.0.350

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,43 +9,22 @@
9
9
  <script type="text/javascript">
10
10
 
11
11
 
12
- var currentPage = null;
13
12
  var startTimeStamp = null;
14
13
  var processedUnload = false;
15
14
  var reachedEnd = false;
16
- var language = 'es';
17
15
 
18
16
  function doStart() {
19
17
  startTimeStamp = new Date();
20
18
 
21
19
  ScormProcessInitialize();
22
20
 
21
+ // Mark the attempt as started as an early fallback. The IDE's
22
+ // ScormReporter re-asserts this (with a commit) and reports
23
+ // per-step progress/score once it mounts.
23
24
  var completionStatus = ScormProcessGetValue('cmi.core.lesson_status');
24
25
  if (completionStatus == 'not attempted') {
25
26
  ScormProcessSetValue('cmi.core.lesson_status', 'incomplete');
26
27
  }
27
-
28
- var bookmark = ScormProcessGetValue('cmi.core.lesson_location');
29
-
30
- if (bookmark == '') {
31
- currentPage = 0;
32
- } else {
33
- if (
34
- confirm(
35
- 'Would you like to resume from where you previously left off?'
36
- )
37
- ) {
38
- currentPage = parseInt(bookmark, 10);
39
- } else {
40
- currentPage = 0;
41
- }
42
- }
43
-
44
- goToPage();
45
- }
46
-
47
- function goToPage() {
48
- ScormProcessSetValue('cmi.core.lesson_location', currentPage);
49
28
  }
50
29
 
51
30
  function doUnload(pressedExit) {
@@ -72,20 +51,6 @@
72
51
  ScormProcessFinish();
73
52
  }
74
53
 
75
- function doPrevious() {
76
- if (currentPage > 0) {
77
- currentPage--;
78
- }
79
- goToPage();
80
- }
81
-
82
- function doNext() {
83
- if (currentPage < pageArray.length - 1) {
84
- currentPage++;
85
- }
86
- goToPage();
87
- }
88
-
89
54
  function doExit() {
90
55
  if (
91
56
  reachedEnd == false &&
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@learnpack/learnpack",
3
3
  "description": "Seamlessly build, sell and/or take interactive & auto-graded tutorials, start learning now or build a new tutorial to your audience.",
4
- "version": "5.0.349",
4
+ "version": "5.0.350",
5
5
  "author": "Alejandro Sanchez @alesanchezr",
6
6
  "contributors": [
7
7
  {