dummyapi.js
来自「很棒的在线教学系统」· JavaScript 代码 · 共 48 行
JS
48 行
/** Dummy SCORM API*/ function GenericAPIAdaptor(){ this.LMSInitialize = LMSInitializeMethod; this.LMSGetValue = LMSGetValueMethod; this.LMSSetValue = LMSSetValueMethod; this.LMSCommit = LMSCommitMethod; this.LMSFinish = LMSFinishMethod; this.LMSGetLastError = LMSGetLastErrorMethod; this.LMSGetErrorString = LMSGetErrorStringMethod; this.LMSGetDiagnostic = LMSGetDiagnosticMethod;}/** LMSInitialize.*/function LMSInitializeMethod(parameter){return "true";}/** LMSFinish.*/function LMSFinishMethod(parameter){return "true";}/** LMSCommit.*/function LMSCommitMethod(parameter){return "true";}/** LMSGetValue.*/function LMSGetValueMethod(element){return "";}/** LMSSetValue.*/function LMSSetValueMethod(element, value){return "true";}/** LMSGetLastErrorString*/function LMSGetErrorStringMethod(errorCode){return "No error";}/** LMSGetLastError*/function LMSGetLastErrorMethod(){return "0";}/** LMSGetDiagnostic*/function LMSGetDiagnosticMethod(errorCode){return "No error. No errors were encountered. Successful API call.";} var API = new GenericAPIAdaptor;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?