Skip to content

Instantly share code, notes, and snippets.

@OmkarKirpan
Created March 1, 2023 19:53
Show Gist options
  • Select an option

  • Save OmkarKirpan/6cef0106fa73a0361a84e2964db26b9e to your computer and use it in GitHub Desktop.

Select an option

Save OmkarKirpan/6cef0106fa73a0361a84e2964db26b9e to your computer and use it in GitHub Desktop.

Revisions

  1. OmkarKirpan created this gist Mar 1, 2023.
    10 changes: 10 additions & 0 deletions SCORM_cheat.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    let ok = SCORM_GetAPI()
    // setting lesson_status
    ok.LMSSetValue('cmi.core.lesson_status', 'completed')
    ok.LMSGetValue('cmi.core.lesson_status')
    // setting score
    ok.LMSSetValue('cmi.core.score.raw', '100')
    ok.LMSGetValue('cmi.core.score.raw')
    // Saving
    ok.LMSCommit()
    ok.LMSFinish()