@liascript/exporter 3.2.8--1.0.7 → 3.2.10--1.0.8
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.
- package/dist/assets/capacitor/icon.svg +81 -0
- package/dist/assets/capacitor/index.54530cdd.js +2 -0
- package/dist/assets/capacitor/{index.10023006.js → index.73bf47b5.js} +1 -1
- package/dist/assets/capacitor/index.html +1 -1
- package/dist/assets/capacitor/{jszip.min.5cd662bc.js → jszip.min.dfe97abc.js} +1 -1
- package/dist/assets/capacitor/{trystero-ipfs.min.2b844fee.js → trystero-ipfs.min.771a19bf.js} +1 -1
- package/dist/assets/indexeddb/icon.svg +81 -0
- package/dist/assets/{scorm1.2/index.6509563e.js → indexeddb/index.176e8590.js} +1 -1
- package/dist/assets/indexeddb/index.9d083ccd.js +1 -0
- package/dist/assets/indexeddb/index.bf43b644.js +1 -0
- package/dist/assets/{scorm2004/index.b1a34062.js → indexeddb/index.d8ce2cba.js} +1 -1
- package/dist/assets/indexeddb/index.html +1 -1
- package/dist/assets/{web/jszip.min.19c66d77.js → indexeddb/jszip.min.eaecf580.js} +1 -1
- package/dist/assets/pdf/icon.svg +81 -0
- package/dist/assets/pdf/{index.114d2ca9.js → index.5c244bd1.js} +1 -1
- package/dist/assets/pdf/index.63c43469.js +1 -0
- package/dist/assets/pdf/{index.d8fec0e1.js → index.8ef1d6a7.js} +1 -1
- package/dist/assets/pdf/index.ed62c03b.js +1 -0
- package/dist/assets/pdf/index.html +1 -1
- package/dist/assets/scorm1.2/SCORM1.2.2a171f84.js +1 -0
- package/dist/assets/scorm1.2/SCORM1.2.adc5662b.js +1 -0
- package/dist/assets/scorm1.2/icon.svg +81 -0
- package/dist/assets/{indexeddb/index.6509563e.js → scorm1.2/index.176e8590.js} +1 -1
- package/dist/assets/scorm1.2/index.51246413.js +1 -0
- package/dist/assets/scorm1.2/index.c2d6b6b2.js +1 -0
- package/dist/assets/scorm1.2/{index.b1a34062.js → index.d8ce2cba.js} +1 -1
- package/dist/assets/scorm1.2/index.html +1 -1
- package/dist/assets/scorm2004/SCORM2004.d4eafaff.js +1 -0
- package/dist/assets/scorm2004/SCORM2004.e0ae8a9d.js +1 -0
- package/dist/assets/scorm2004/icon.svg +81 -0
- package/dist/assets/{web/index.6509563e.js → scorm2004/index.176e8590.js} +1 -1
- package/dist/assets/scorm2004/index.5737944b.js +1 -0
- package/dist/assets/scorm2004/index.7601cf50.js +1 -0
- package/dist/assets/{web/index.b1a34062.js → scorm2004/index.d8ce2cba.js} +1 -1
- package/dist/assets/scorm2004/index.html +1 -1
- package/dist/assets/web/icon.svg +81 -0
- package/dist/assets/web/index.113f8c63.js +1 -0
- package/dist/assets/{scorm2004/index.6509563e.js → web/index.176e8590.js} +1 -1
- package/dist/assets/web/index.8b784612.js +1 -0
- package/dist/assets/{indexeddb/index.b1a34062.js → web/index.d8ce2cba.js} +1 -1
- package/dist/assets/web/index.html +1 -1
- package/dist/assets/{indexeddb/jszip.min.19c66d77.js → web/jszip.min.eaecf580.js} +1 -1
- package/dist/assets/xapi/icon.svg +81 -0
- package/dist/assets/xapi/index.176e8590.js +1 -0
- package/dist/assets/xapi/index.1816a1f8.js +1 -0
- package/dist/assets/xapi/index.589f2670.js +1 -0
- package/dist/assets/xapi/index.d8ce2cba.js +1 -0
- package/dist/assets/xapi/index.html +1 -1
- package/dist/index.js +1 -1
- package/dist/presets.yaml +57 -2
- package/package.json +3 -3
- package/dist/assets/capacitor/index.ae6e3a26.js +0 -2
- package/dist/assets/common/icon.ico +0 -0
- package/dist/assets/indexeddb/index.0eac6d0a.js +0 -1
- package/dist/assets/indexeddb/index.7a84afc0.js +0 -1
- package/dist/assets/pdf/icon.ico +0 -0
- package/dist/assets/pdf/index.071bfcf5.js +0 -1
- package/dist/assets/pdf/index.bcffeb87.js +0 -1
- package/dist/assets/scorm1.2/SCORM1.2.781cb28e.js +0 -1
- package/dist/assets/scorm1.2/SCORM1.2.a32b4125.js +0 -1
- package/dist/assets/scorm1.2/index.0db6a108.js +0 -1
- package/dist/assets/scorm1.2/index.8b6d021b.js +0 -1
- package/dist/assets/scorm2004/SCORM2004.58941eb7.js +0 -1
- package/dist/assets/scorm2004/SCORM2004.84a9d66b.js +0 -1
- package/dist/assets/scorm2004/index.c29294fa.js +0 -1
- package/dist/assets/scorm2004/index.d666e2d0.js +0 -1
- package/dist/assets/web/index.ce906819.js +0 -1
- package/dist/assets/web/index.fa52158a.js +0 -1
- package/dist/assets/xapi/index.077eaa95.js +0 -1
- package/dist/assets/xapi/index.520a955b.js +0 -1
- package/dist/assets/xapi/index.6509563e.js +0 -1
- package/dist/assets/xapi/index.b1a34062.js +0 -1
- /package/dist/assets/{web → scorm1.2}/jszip.min.63142cc8.js +0 -0
- /package/dist/assets/{xapi → scorm2004}/jszip.min.63142cc8.js +0 -0
- /package/dist/assets/{scorm1.2 → web}/jszip.min.4fbcc13f.js +0 -0
- /package/dist/assets/{scorm2004 → xapi}/jszip.min.4fbcc13f.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en"><head><title>Lia</title><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><script defer type="module" src="index.
|
|
1
|
+
<!DOCTYPE html><html lang="en"><head><title>Lia</title><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><script defer type="module" src="index.8ef1d6a7.js"></script><script defer src="index.5c244bd1.js" nomodule></script><script defer type="module" src="index.af8ef81d.js"></script><script defer src="index.d776be1b.js" nomodule></script><script defer type="module" src="index.616e5487.js"></script><script defer src="index.90798388.js" nomodule></script><script defer type="module" src="index.ed62c03b.js"></script><script defer src="index.63c43469.js" nomodule></script><script defer type="module" src="index.b8d5f71b.js"></script><script defer src="index.9b97e5c1.js" nomodule></script><script defer type="module" src="index.44f3494f.js"></script><script defer src="index.fca960ab.js" nomodule></script><script defer type="module" src="index.2e1efa5b.js"></script><script defer src="index.56b4a76b.js" nomodule></script><script defer type="module" src="index.1df2912f.js"></script><script defer src="index.02e1e0e7.js" nomodule></script><script defer type="module" src="index.c497fc87.js"></script><script defer src="index.36d5db33.js" nomodule></script><link rel="icon shortcut" sizes="192x192" href="up_/up_/assets/logo_192.png"><meta name="mobile-web-app-capable" content="yes"><meta name="application-name" content="Lia"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"><meta name="apple-mobile-web-app-title" content="LiaScript"><meta name="msapplication-TileImage" content="up_/up_/assets/logo_192.png"><meta name="msapplication-TileColor" content="#0071c5"><meta name="msapplication-tap-highlight" content="no"><meta name="theme-color" content="#000000"><meta name="description" content="LiaScript is a service for running free and interactive online courses, build with its own Markup-language. So check out the following course ;-)"><link rel="apple-touch-icon" href="logo.8a716d9b.png"><link rel="icon" href="logo.8a716d9b.png" type="image/png"><style>.lds-dual-ring{width:150px;height:150px;display:inline-block}.lds-dual-ring:after{content:" ";width:128px;height:128px;border:5px solid #000;border-color:#000 transparent;border-radius:50%;margin:1px;-webkit-animation:1.2s linear infinite lds-dual-ring;animation:1.2s linear infinite lds-dual-ring;display:block}@-webkit-keyframes lds-dual-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes lds-dual-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}</style><link rel="stylesheet" href="index.1da00d73.css"></head><body> <noscript> This page requires JavaScript to be enabled! </noscript> </body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function t(t,e,i,s){Object.defineProperty(t,e,{get:i,set:s,enumerable:!0,configurable:!0})}var e=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}).parcelRequire55a5;e.register("1FNwj",(function(i,s){t(i.exports,"Connector",(function(){return l}));var n=e("2Xs1f"),o=e("jXXgq"),r=e("ayIBF"),c=e("5aa3i"),a=e("fVQ47");class l extends o.Connector{init(){if(this.scorm){let t=this.scorm.LMSGetValue("cmi.core.lesson_mode")||"unknown";this.active="normal"===t||"unknown"===t,d('Running in "'+t+'" mode, results will'+(this.active?" ":" NOT ")+"be stored!"),u("open location ..."),this.location=c.jsonParse(this.scorm.LMSGetValue("cmi.core.lesson_location")),u("... ",this.location||0),null===this.location&&this.slide(0);let e=0;0===this.countObjectives()&&this.active?(u("seeding values ..."),e=this.initFirst("quiz",e),e=this.initFirst("survey",e),e=this.initFirst("task",e),u("... done")):(u("restoring values ..."),e=this.initSecond("quiz",e),e=this.initSecond("survey",e),e=this.initSecond("task",e),u("... done")),window.SCORE=0,this.score()}}initFirst(t,e){for(let i=0;i<this.db[t].length;i++){this.id[t].push([]);for(let s=0;s<this.db[t][i].length;s++)this.setObjective(e,this.db[t][i][s]),this.id[t][i].push(e),e++}return e}initSecond(t,e){for(let i=0;i<this.db[t].length;i++){this.id[t].push([]);for(let s=0;s<this.db[t][i].length;s++){let n=this.getObjective(e);n&&(this.db[t][i][s]=n),this.id[t][i].push(e),e++}}return e}score(){var t;if(!this.active||!this.score)return;let e=0,i=0,s=0,n=0;for(let t=0;t<this.db.quiz.length;t++)for(let o=0;o<this.db.quiz[t].length;o++)switch(n=this.db.quiz[t][o].score,e+=n,this.db.quiz[t][o].solved){case 1:i+=n;case-1:s+=n}let o=0,r=0;for(let t=0;t<this.db.survey.length;t++)for(let e=0;e<this.db.survey[t].length;e++)o+=1,this.db.survey[t][e].submitted&&(r+=1);const a=0===o||o===r,l=0===i?0:i/e;this.write("cmi.core.score.min","0"),this.write("cmi.core.score.max","100"),this.write("cmi.core.score.raw",function(t){const e=t.toFixed(4),[i,s]=e.toString().split(".");return`${i}.${s.padEnd(10,"0")}`}(100*l));let d=c.jsonParse((null===(t=this.scorm)||void 0===t?void 0:t.LMSGetValue("cmi.student_data.mastery_score"))||"null");null==d?0===e&&o>0&&a?this.write("cmi.core.lesson_status","completed"):this.write("cmi.core.lesson_status","not attempted"):(l>=d/100||0===e)&&a?this.write("cmi.core.lesson_status","passed"):s+i===e&&e>0&&a?this.write("cmi.core.lesson_status","failed"):this.write("cmi.core.lesson_status","incomplete"),u("SCORE updated =>",l,"surveys =>",`${r}/${o}`),window.SCORE=l}open(t,e,i){if(null!==this.location){const t=this.location;setTimeout((function(){window.LIA.goto(t)}),500)}}slide(t){this.location=t,this.scorm&&this.active&&(this.scorm.LMSSetValue("cmi.core.lesson_location",JSON.stringify(t)),this.scorm.LMSCommit(""))}countObjectives(){if(!this.scorm)return null;return parseInt(this.scorm.LMSGetValue("cmi.objectives._count"))||0}initSettings(t,e=!1){return r.Settings.init(t,!1,this.setSettings)}setSettings(t){this.write("cmi.suspend_data",JSON.stringify(t))}getSettings(){let t="";try{var e;t=(null===(e=this.scorm)||void 0===e?void 0:e.LMSGetValue("cmi.suspend_data"))||null}catch(t){d("cannot read settings from cmi.suspend_data")}let i=null;if("string"==typeof t){try{i=JSON.parse(t),i&&(i.fromStorage=!0)}catch(t){d("getSettings =>",t)}i||(i=r.Settings.data),window.innerWidth<=768&&(i.table_of_contents=!1)}return i}write(t,e){if(this.scorm){this.escape&&(e=e.replace(/"/g,'\\"'));try{this.scorm.LMSSetValue(t,e),this.scorm.LMSCommit("")}catch(i){if(d("Failed to write =>",t,e),d("Message:",i.message),void 0===this.escape){e=e.replace(/"/g,'\\"');try{this.scorm.LMSSetValue(t,e),this.scorm.LMSCommit(""),this.escape=!0}catch(t){this.escape=!1}}}}else d("could not write",t,e)}getObjective(t){let e;try{if(this.scorm&&(e=this.scorm.LMSGetValue(`cmi.objectives.${t}.id`),e))return c.decodeJSON(e)}catch(i){d("getObjective =>",i,`cmi.objectives.${t}.id`,e)}return null}setObjective(t,e){const i=c.encodeJSON(e);i.length>255&&d(`cmi.objectives.${t}.id`,"Content exceeds 256Bytes!"),this.write(`cmi.objectives.${t}.id`,i)}load(t){switch(t.table){case"quiz":case"survey":case"task":return u("loading ",t.table,t.id,this.db[t.table][t.id]),this.db[t.table][t.id]}}store(t){if(this.active)switch(d("store",t),t.table){case"quiz":case"survey":this.storeHelper(t),this.score();break;case"task":this.storeHelper(t)}}storeHelper(t){const e=t.table;for(let i=0;i<this.db[e][t.id].length;i++)c.neq(t.data[i],this.db[e][t.id][i])&&(this.setObjective(this.id[e][t.id][i],t.data[i]),this.db[e][t.id][i]=t.data[i],"quiz"==e?this.updateQuiz(this.id[e][t.id][i],t.data[i]):"survey"==e&&t.data[i].submitted&&this.updateSurvey(this.id[e][t.id][i],t.data[i]))}updateQuiz(t,e){if(this.active)switch(e.solved){case 0:e.trial>0&&this.write(`cmi.objectives.${t}.status`,"failed");break;case 1:this.write(`cmi.objectives.${t}.status`,"completed");break;case-1:this.write(`cmi.objectives.${t}.status`,"incomplete")}}updateSurvey(t,e){this.active&&e.submitted&&this.write(`cmi.objectives.${t}.status`,"completed")}constructor(){var t;if(super(),(0,n.default)(this,"location",null),this.active=!1,this.db={quiz:[],survey:[],task:[]},this.id={quiz:[],survey:[],task:[]},console.warn("Hello, this is LiaScript from within a SCORM 1.2 package. You should definitely try out the SCORM 2004 exporter. This allows to store more complex states...\n\nIF YOU ARE AN ELABORATE AND EXPERIENCED SCORM DEVELOPER?\n========================================================\n\nAnd you want to help us, to extend this service, please contact us via LiaScript@web.de\n\nHave fun ;-)"),window.API||window.top&&window.top.API?this.scorm=window.API||(null===(t=window.top)||void 0===t?void 0:t.API):this.scorm=(0,a.getAPI)(window)||(0,a.getAPI)(window.parent),this.scorm){u("successfully opened API"),u("LMSInitialize",this.scorm.LMSInitialize("")),u("loading quizzes ...");try{this.db.quiz=window.config_.quiz||[[]],u(" ... done")}catch(t){d("... failed",t)}u("loading surveys ...");try{this.db.survey=window.config_.survey||[[]],u(" ... done")}catch(t){d("... failed",t)}u("loading tasks ...");try{this.db.task=window.config_.task||[[]],u(" ... done")}catch(t){d("... failed",t)}this.init()}else d("Could not find the SCORM API, LiaScript will not work properly!")}}function u(...t){window.LIA.debug&&console.log("SCORM1.2: ",...t)}function d(...t){console.log("SCORM1.2: ",...t)}})),e.register("jXXgq",(function(i,s){t(i.exports,"Connector",(function(){return r}));var n=e("3MPaZ"),o=e("ayIBF");class r{hasIndex(){return!1}storage(){return new n.LiaStorage}initSettings(t,e=!1){return o.Settings.init(t,e,this.setSettings)}setSettings(t){o.Settings.update(t)}getSettings(){let t="";try{t=localStorage.getItem(o.Settings.PORT)}catch(t){console.warn("cannot write to localStorage")}let e=null;if("string"==typeof t){try{e=JSON.parse(t)}catch(t){console.warn("getSettings =>",t)}e||(e=o.Settings.data),window.innerWidth<=768&&(e.table_of_contents=!1)}return e}open(t,e,i){}load(t){}store(t){}update(t,e){}slide(t){}getIndex(){}deleteFromIndex(t){}async storeToIndex(t){}restoreFromIndex(t,e){}reset(t,e){this.initSettings(null,!0)}async getFromIndex(t){return null}async addMisc(t,e,i,s){console.log("addMisc not implemented")}async getMisc(t,e,i){console.log("getMisc not implemented")}constructor(){}}})),e.register("3MPaZ",(function(e,i){t(e.exports,"LiaStorage",(function(){return s}));class s{getItems(t=[]){"string"==typeof t&&(t=[t]);let e={};for(let i=0;i<t.length;i++){let s=localStorage.getItem(t[i]);e[t[i]]=s?JSON.parse(s):s}return e}setItems(t){this._setLocal(t)}_setLocal(t){if("object"==typeof t)for(const[e,i]of Object.entries(t))localStorage.setItem(e,JSON.stringify(i))}constructor(){}}})),e.register("5aa3i",(function(e,i){t(e.exports,"encodeJSON",(function(){return r})),t(e.exports,"decodeJSON",(function(){return c})),t(e.exports,"jsonParse",(function(){return a})),t(e.exports,"neq",(function(){return l}));const s={SingleChoice:"sc",MultipleChoice:"mc",Text:"tx",Select:"st",Matrix:"mx",Generic:"gn",error_msg:"err"},n=Object.entries(s).reduce(((t,[e,i])=>(t[i]=e,t)),{});function o(t,e){if("object"!=typeof t||null===t)return t;if(Array.isArray(t))return t.map((t=>o(t,e)));const i={};for(const[s,n]of Object.entries(t)){i[e[s]||s]=o(n,e)}return i}function r(t){return JSON.stringify(o(t,s))}function c(t){return o(JSON.parse(t),n)}function a(t){try{return JSON.parse(t)}catch(t){}return null}function l(t,e){return JSON.stringify(t)!=JSON.stringify(e)}})),e.register("fVQ47",(function(e,i){t(e.exports,"getAPI",(function(){return o}));var s=0;function n(t){for(;null==t.API&&null!=t.parent&&t.parent!=t;){if(++s>7)return alert("Error finding API -- too deeply nested."),null;t=t.parent}return t.API}function o(t){var e=n(t);return null==e&&null!=t.opener&&void 0!==t.opener&&(e=n(t.opener)),e}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(){function t(t,e,i,n){Object.defineProperty(t,e,{get:i,set:n,enumerable:!0,configurable:!0})}var e=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}).parcelRequire55a5;e.register("58dpJ",(function(i,n){t(i.exports,"Connector",(function(){return y}));var r=e("f1evb"),o=e("9Klpk"),s=e("3bWnf"),a=e("eT7f3"),c=e("kb0qF"),u=e("5ENmm"),l=e("6Wo7Q"),d=e("bWNdT"),f=e("knzCS"),h=e("cRTHJ"),v=e("jxbaN"),g=e("jjBAR"),y=function(t){"use strict";(0,c.default)(i,t);var e=(0,d.default)(i);function i(){var t,n;if((0,o.default)(this,i),t=e.call(this),(0,a.default)((0,r.default)(t),"location",null),t.active=!1,t.db={quiz:[],survey:[],task:[]},t.id={quiz:[],survey:[],task:[]},console.warn("Hello, this is LiaScript from within a SCORM 1.2 package. You should definitely try out the SCORM 2004 exporter. This allows to store more complex states...\n\nIF YOU ARE AN ELABORATE AND EXPERIENCED SCORM DEVELOPER?\n========================================================\n\nAnd you want to help us, to extend this service, please contact us via LiaScript@web.de\n\nHave fun ;-)"),window.API||window.top&&window.top.API?t.scorm=window.API||(null===(n=window.top)||void 0===n?void 0:n.API):t.scorm=(0,g.getAPI)(window)||(0,g.getAPI)(window.parent),t.scorm){m("successfully opened API"),m("LMSInitialize",t.scorm.LMSInitialize("")),m("loading quizzes ...");try{t.db.quiz=window.config_.quiz||[[]],m(" ... done")}catch(t){p("... failed",t)}m("loading surveys ...");try{t.db.survey=window.config_.survey||[[]],m(" ... done")}catch(t){p("... failed",t)}m("loading tasks ...");try{t.db.task=window.config_.task||[[]],m(" ... done")}catch(t){p("... failed",t)}t.init()}else p("Could not find the SCORM API, LiaScript will not work properly!");return t}return(0,s.default)(i,[{key:"init",value:function(){if(this.scorm){var t=this.scorm.LMSGetValue("cmi.core.lesson_mode")||"unknown";this.active="normal"===t||"unknown"===t,p('Running in "'+t+'" mode, results will'+(this.active?" ":" NOT ")+"be stored!"),m("open location ..."),this.location=v.jsonParse(this.scorm.LMSGetValue("cmi.core.lesson_location")),m("... ",this.location||0),null===this.location&&this.slide(0);var e=0;0===this.countObjectives()&&this.active?(m("seeding values ..."),e=this.initFirst("quiz",e),e=this.initFirst("survey",e),e=this.initFirst("task",e),m("... done")):(m("restoring values ..."),e=this.initSecond("quiz",e),e=this.initSecond("survey",e),e=this.initSecond("task",e),m("... done")),window.SCORE=0,this.score()}}},{key:"initFirst",value:function(t,e){for(var i=0;i<this.db[t].length;i++){this.id[t].push([]);for(var n=0;n<this.db[t][i].length;n++)this.setObjective(e,this.db[t][i][n]),this.id[t][i].push(e),e++}return e}},{key:"initSecond",value:function(t,e){for(var i=0;i<this.db[t].length;i++){this.id[t].push([]);for(var n=0;n<this.db[t][i].length;n++){var r=this.getObjective(e);r&&(this.db[t][i][n]=r),this.id[t][i].push(e),e++}}return e}},{key:"score",value:function(){var t;if(this.active&&this.score){for(var e=0,i=0,n=0,r=0,o=0;o<this.db.quiz.length;o++)for(var s=0;s<this.db.quiz[o].length;s++)switch(e+=r=this.db.quiz[o][s].score,this.db.quiz[o][s].solved){case 1:i+=r;case-1:n+=r}for(var a=0,c=0,l=0;l<this.db.survey.length;l++)for(var d=0;d<this.db.survey[l].length;d++)a+=1,this.db.survey[l][d].submitted&&(c+=1);var f,h,g,y,p=0===a||a===c,S=0===i?0:i/e;this.write("cmi.core.score.min","0"),this.write("cmi.core.score.max","100"),this.write("cmi.core.score.raw",(f=(100*S).toFixed(4),h=(0,u.default)(f.toString().split("."),2),g=h[0],y=h[1],"".concat(g,".").concat(y.padEnd(10,"0"))));var b=v.jsonParse((null===(t=this.scorm)||void 0===t?void 0:t.LMSGetValue("cmi.student_data.mastery_score"))||"null");null==b?0===e&&a>0&&p?this.write("cmi.core.lesson_status","completed"):this.write("cmi.core.lesson_status","not attempted"):(S>=b/100||0===e)&&p?this.write("cmi.core.lesson_status","passed"):n+i===e&&e>0&&p?this.write("cmi.core.lesson_status","failed"):this.write("cmi.core.lesson_status","incomplete"),m("SCORE updated =>",S,"surveys =>","".concat(c,"/").concat(a)),window.SCORE=S}}},{key:"open",value:function(t,e,i){if(null!==this.location){var n=this.location;setTimeout((function(){window.LIA.goto(n)}),500)}}},{key:"slide",value:function(t){this.location=t,this.scorm&&this.active&&(this.scorm.LMSSetValue("cmi.core.lesson_location",JSON.stringify(t)),this.scorm.LMSCommit(""))}},{key:"countObjectives",value:function(){return this.scorm?parseInt(this.scorm.LMSGetValue("cmi.objectives._count"))||0:null}},{key:"initSettings",value:function(t){return h.Settings.init(t,!1,this.setSettings)}},{key:"setSettings",value:function(t){this.write("cmi.suspend_data",JSON.stringify(t))}},{key:"getSettings",value:function(){var t="";try{var e;t=(null===(e=this.scorm)||void 0===e?void 0:e.LMSGetValue("cmi.suspend_data"))||null}catch(t){p("cannot read settings from cmi.suspend_data")}var i=null;if("string"==typeof t){try{(i=JSON.parse(t))&&(i.fromStorage=!0)}catch(t){p("getSettings =>",t)}i||(i=h.Settings.data),window.innerWidth<=768&&(i.table_of_contents=!1)}return i}},{key:"write",value:function(t,e){if(this.scorm){this.escape&&(e=e.replace(/"/g,'\\"'));try{this.scorm.LMSSetValue(t,e),this.scorm.LMSCommit("")}catch(i){if(p("Failed to write =>",t,e),p("Message:",i.message),void 0===this.escape){e=e.replace(/"/g,'\\"');try{this.scorm.LMSSetValue(t,e),this.scorm.LMSCommit(""),this.escape=!0}catch(t){this.escape=!1}}}}else p("could not write",t,e)}},{key:"getObjective",value:function(t){var e;try{if(this.scorm&&(e=this.scorm.LMSGetValue("cmi.objectives.".concat(t,".id"))))return v.decodeJSON(e)}catch(i){p("getObjective =>",i,"cmi.objectives.".concat(t,".id"),e)}return null}},{key:"setObjective",value:function(t,e){var i=v.encodeJSON(e);i.length>255&&p("cmi.objectives.".concat(t,".id"),"Content exceeds 256Bytes!"),this.write("cmi.objectives.".concat(t,".id"),i)}},{key:"load",value:function(t){switch(t.table){case"quiz":case"survey":case"task":return m("loading ",t.table,t.id,this.db[t.table][t.id]),this.db[t.table][t.id]}}},{key:"store",value:function(t){if(this.active)switch(p("store",t),t.table){case"quiz":case"survey":this.storeHelper(t),this.score();break;case"task":this.storeHelper(t)}}},{key:"storeHelper",value:function(t){for(var e=t.table,i=0;i<this.db[e][t.id].length;i++)v.neq(t.data[i],this.db[e][t.id][i])&&(this.setObjective(this.id[e][t.id][i],t.data[i]),this.db[e][t.id][i]=t.data[i],"quiz"==e?this.updateQuiz(this.id[e][t.id][i],t.data[i]):"survey"==e&&t.data[i].submitted&&this.updateSurvey(this.id[e][t.id][i],t.data[i]))}},{key:"updateQuiz",value:function(t,e){if(this.active)switch(e.solved){case 0:e.trial>0&&this.write("cmi.objectives.".concat(t,".status"),"failed");break;case 1:this.write("cmi.objectives.".concat(t,".status"),"completed");break;case-1:this.write("cmi.objectives.".concat(t,".status"),"incomplete")}}},{key:"updateSurvey",value:function(t,e){this.active&&e.submitted&&this.write("cmi.objectives.".concat(t,".status"),"completed")}}]),i}(f.Connector);function m(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var n;window.LIA.debug&&(n=console).log.apply(n,["SCORM1.2: "].concat((0,l.default)(e)))}function p(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var n;(n=console).log.apply(n,["SCORM1.2: "].concat((0,l.default)(e)))}})),e.register("knzCS",(function(i,n){t(i.exports,"Connector",(function(){return l}));var r=e("hnmIs"),o=e("9Klpk"),s=e("3bWnf"),a=e("32Euv"),c=e("87lFe"),u=e("cRTHJ"),l=function(){"use strict";function t(){(0,o.default)(this,t)}return(0,s.default)(t,[{key:"hasIndex",value:function(){return!1}},{key:"storage",value:function(){return new c.LiaStorage}},{key:"initSettings",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return u.Settings.init(t,e,this.setSettings)}},{key:"setSettings",value:function(t){u.Settings.update(t)}},{key:"getSettings",value:function(){var t="";try{t=localStorage.getItem(u.Settings.PORT)}catch(t){console.warn("cannot write to localStorage")}var e=null;if("string"==typeof t){try{e=JSON.parse(t)}catch(t){console.warn("getSettings =>",t)}e||(e=u.Settings.data),window.innerWidth<=768&&(e.table_of_contents=!1)}return e}},{key:"open",value:function(t,e,i){}},{key:"load",value:function(t){}},{key:"store",value:function(t){}},{key:"update",value:function(t,e){}},{key:"slide",value:function(t){}},{key:"getIndex",value:function(){}},{key:"deleteFromIndex",value:function(t){}},{key:"storeToIndex",value:function(t){return(0,r.default)((function(){return(0,a.__generator)(this,(function(t){return[2]}))}))()}},{key:"restoreFromIndex",value:function(t,e){}},{key:"reset",value:function(t,e){this.initSettings(null,!0)}},{key:"getFromIndex",value:function(t){return(0,r.default)((function(){return(0,a.__generator)(this,(function(t){return[2,null]}))}))()}},{key:"addMisc",value:function(t,e,i,n){return(0,r.default)((function(){return(0,a.__generator)(this,(function(t){return console.log("addMisc not implemented"),[2]}))}))()}},{key:"getMisc",value:function(t,e,i){return(0,r.default)((function(){return(0,a.__generator)(this,(function(t){return console.log("getMisc not implemented"),[2]}))}))()}}]),t}()})),e.register("87lFe",(function(i,n){t(i.exports,"LiaStorage",(function(){return a}));var r=e("9Klpk"),o=e("3bWnf"),s=e("5ENmm"),a=function(){"use strict";function t(){(0,r.default)(this,t)}return(0,o.default)(t,[{key:"getItems",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];"string"==typeof t&&(t=[t]);for(var e={},i=0;i<t.length;i++){var n=localStorage.getItem(t[i]);e[t[i]]=n?JSON.parse(n):n}return e}},{key:"setItems",value:function(t){this._setLocal(t)}},{key:"_setLocal",value:function(t){var e=!0,i=!1,n=void 0;if("object"==typeof t)try{for(var r,o=Object.entries(t)[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){var a=(0,s.default)(r.value,2),c=a[0],u=a[1];localStorage.setItem(c,JSON.stringify(u))}}catch(t){i=!0,n=t}finally{try{e||null==o.return||o.return()}finally{if(i)throw n}}}}]),t}()})),e.register("jxbaN",(function(i,n){t(i.exports,"encodeJSON",(function(){return c})),t(i.exports,"decodeJSON",(function(){return u})),t(i.exports,"jsonParse",(function(){return l})),t(i.exports,"neq",(function(){return d}));var r=e("5ENmm"),o={SingleChoice:"sc",MultipleChoice:"mc",Text:"tx",Select:"st",Matrix:"mx",Generic:"gn",error_msg:"err"},s=Object.entries(o).reduce((function(t,e){var i=(0,r.default)(e,2),n=i[0];return t[i[1]]=n,t}),{});function a(t,e){if("object"!=typeof t||null===t)return t;if(Array.isArray(t))return t.map((function(t){return a(t,e)}));var i={},n=!0,o=!1,s=void 0;try{for(var c,u=Object.entries(t)[Symbol.iterator]();!(n=(c=u.next()).done);n=!0){var l=(0,r.default)(c.value,2),d=l[0],f=l[1];i[e[d]||d]=a(f,e)}}catch(t){o=!0,s=t}finally{try{n||null==u.return||u.return()}finally{if(o)throw s}}return i}function c(t){return JSON.stringify(a(t,o))}function u(t){return a(JSON.parse(t),s)}function l(t){try{return JSON.parse(t)}catch(t){}return null}function d(t,e){return JSON.stringify(t)!=JSON.stringify(e)}})),e.register("jjBAR",(function(e,i){t(e.exports,"getAPI",(function(){return o}));var n=0;function r(t){for(;null==t.API&&null!=t.parent&&t.parent!=t;){if(++n>7)return alert("Error finding API -- too deeply nested."),null;t=t.parent}return t.API}function o(t){var e=r(t);return null==e&&null!=t.opener&&void 0!==t.opener&&(e=r(t.opener)),e}}))}();
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
|
|
3
|
+
<svg
|
|
4
|
+
version="1.1"
|
|
5
|
+
id="svg2"
|
|
6
|
+
width="1365.3333"
|
|
7
|
+
height="1365.3333"
|
|
8
|
+
viewBox="0 0 1365.3333 1365.3333"
|
|
9
|
+
sodipodi:docname="icon.svg"
|
|
10
|
+
inkscape:version="1.1.2 (0a00cf5339, 2022-02-04)"
|
|
11
|
+
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
12
|
+
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
13
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
14
|
+
xmlns:svg="http://www.w3.org/2000/svg">
|
|
15
|
+
<defs
|
|
16
|
+
id="defs6" />
|
|
17
|
+
<sodipodi:namedview
|
|
18
|
+
id="namedview4"
|
|
19
|
+
pagecolor="#ffffff"
|
|
20
|
+
bordercolor="#666666"
|
|
21
|
+
borderopacity="1.0"
|
|
22
|
+
inkscape:pageshadow="2"
|
|
23
|
+
inkscape:pageopacity="0.0"
|
|
24
|
+
inkscape:pagecheckerboard="0"
|
|
25
|
+
showgrid="false"
|
|
26
|
+
inkscape:zoom="0.37237046"
|
|
27
|
+
inkscape:cx="192.01308"
|
|
28
|
+
inkscape:cy="440.42162"
|
|
29
|
+
inkscape:window-width="1920"
|
|
30
|
+
inkscape:window-height="1043"
|
|
31
|
+
inkscape:window-x="0"
|
|
32
|
+
inkscape:window-y="963"
|
|
33
|
+
inkscape:window-maximized="1"
|
|
34
|
+
inkscape:current-layer="g8" />
|
|
35
|
+
<g
|
|
36
|
+
inkscape:groupmode="layer"
|
|
37
|
+
inkscape:label="Image"
|
|
38
|
+
id="g8">
|
|
39
|
+
<g
|
|
40
|
+
id="g17099"
|
|
41
|
+
transform="matrix(1.2430872,0.04279524,-0.04279521,1.243087,-142.09298,-196.06946)">
|
|
42
|
+
<path
|
|
43
|
+
d="M 915.69253,975.13236 705.37234,845.72542 786.32456,1180.3406 Z"
|
|
44
|
+
style="fill:#e4e37d;fill-opacity:1;stroke:none;stroke-width:6.504;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
|
45
|
+
id="path8023"
|
|
46
|
+
sodipodi:nodetypes="cccc" />
|
|
47
|
+
<path
|
|
48
|
+
d="m 291.17016,663.52798 m -5.11208,13.6322 39.1926,161.88252 122.6899,-201.07512 -161.8825,39.1926"
|
|
49
|
+
style="fill:#009598;fill-opacity:1;stroke:none;stroke-width:6.504;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
|
50
|
+
id="path12757" />
|
|
51
|
+
<path
|
|
52
|
+
d="M 418.97214,452.22871 291.17016,663.52799 625.15932,580.0307 Z"
|
|
53
|
+
style="fill:#00b6bd;fill-opacity:1;stroke:none;stroke-width:6.504;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
|
54
|
+
id="path12885"
|
|
55
|
+
sodipodi:nodetypes="cccc" />
|
|
56
|
+
<path
|
|
57
|
+
d="M 489.35183,477.61188 783.63377,661.82394 669.46401,184.69656 Z m 244.25855,-80.88332 m -89.70677,196.93433 v 0 m -183.4248,44.69321"
|
|
58
|
+
style="fill:#59c5c7;fill-opacity:1;stroke:none;stroke-width:6.504;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
|
59
|
+
id="path13971" />
|
|
60
|
+
<path
|
|
61
|
+
d="m 786.56418,661.82394 m 28.96842,76.68119 262.4202,-426.00659 -341.41199,84.23002 78.99179,341.77657 m -26.81795,-57.38138"
|
|
62
|
+
style="fill:#00b6bd;fill-opacity:1;stroke:none;stroke-width:6.504;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
|
63
|
+
id="path14099" />
|
|
64
|
+
<path
|
|
65
|
+
d="m 643.90357,593.66289 v 0 M 499.06138,804.96213 669.84401,761.8469 629.53354,597.12547 460.47881,638.3561 499.06138,804.96213"
|
|
66
|
+
style="fill:#cacf00;fill-opacity:1;stroke:none;stroke-width:6.504;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
|
67
|
+
id="path14128"
|
|
68
|
+
sodipodi:nodetypes="ccccccc" />
|
|
69
|
+
<path
|
|
70
|
+
d="m 812.60218,738.50513 v 0 M 643.90357,593.66289 701.39405,826.75154 843.27464,914.01983 785.78424,681.12375 643.90357,593.66289"
|
|
71
|
+
style="fill:#e2e34a;fill-opacity:1;stroke:none;stroke-width:6.504;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
|
72
|
+
id="path14271"
|
|
73
|
+
sodipodi:nodetypes="ccccccc" />
|
|
74
|
+
<path
|
|
75
|
+
d="M 514.39762,813.48228 713.76869,937.87625 674.57609,775.99371 Z"
|
|
76
|
+
style="fill:#abad00;fill-opacity:1;stroke:none;stroke-width:6.504;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
|
77
|
+
id="path14650"
|
|
78
|
+
sodipodi:nodetypes="cccc" />
|
|
79
|
+
</g>
|
|
80
|
+
</g>
|
|
81
|
+
</svg>
|