{"id":23949705,"url":"https://github.com/liaplayground/scorm-progress","last_synced_at":"2026-05-17T19:02:30.872Z","repository":{"id":133197711,"uuid":"609481438","full_name":"LiaPlayground/SCORM-Progress","owner":"LiaPlayground","description":"Little observer example for visualizing SCORM progress","archived":false,"fork":false,"pushed_at":"2023-10-20T07:58:31.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-06T11:49:43.666Z","etag":null,"topics":["liascript","liascript-template","markdown","scorm"],"latest_commit_sha":null,"homepage":"https://liascript.github.io/course/?https://raw.githubusercontent.com/LiaPlayground/SCORM-Progress/main/README.md","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LiaPlayground.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-03-04T10:01:18.000Z","updated_at":"2023-03-04T10:06:59.000Z","dependencies_parsed_at":"2023-10-17T20:30:45.892Z","dependency_job_id":null,"html_url":"https://github.com/LiaPlayground/SCORM-Progress","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LiaPlayground%2FSCORM-Progress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LiaPlayground%2FSCORM-Progress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LiaPlayground%2FSCORM-Progress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LiaPlayground%2FSCORM-Progress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LiaPlayground","download_url":"https://codeload.github.com/LiaPlayground/SCORM-Progress/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240449696,"owners_count":19803121,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["liascript","liascript-template","markdown","scorm"],"created_at":"2025-01-06T11:50:03.171Z","updated_at":"2026-05-17T19:02:30.779Z","avatar_url":"https://github.com/LiaPlayground.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\n@onload\n\nif(!window.SCORE) {\n    window.SCORE = 0\n}\nif(window.SCORE) {\n    window._SCORE = window.SCORE\n}\n\nif (!window.SCORE_observer) {\n    window.SCORE_observer = {}\n}\n\n// Define a property getter and setter for the global variable\nObject.defineProperty(window, 'SCORE', {\n  get: function() {\n    return this._SCORE;\n  },\n  set: function(newValue) {\n    this._SCORE = newValue;\n    for (let id in window.SCORE_observer) {\n        window.SCORE_observer[id](newValue);\n    }\n  }\n});\n@end\n\n@score: @_score(@uid,@0)\n\n@_score\n\u003cscript style=\"display: block\" modify=\"false\" run-once\u003e\nfunction update(score) {\n  const gauge = {\n    tooltip: {\n        formatter: '{a} \u003cbr/\u003e{b} : {c}%'\n    },\n    series: [\n        {\n        name: 'Progress',\n        type: 'gauge',\n        progress: {\n            show: true\n        },\n        detail: {\n            valueAnimation: true,\n            formatter: '{value}'\n        },\n        data: [\n            {\n                value: (score * 100).toFixed(2),\n                name: '@1'\n            }\n        ]\n        }\n    ]\n    };\n\n  send.lia(`HTML: \u003clia-chart option='${JSON.stringify(gauge)}'\u003e\u003c/lia-chart\u003e`)\n}\n\nconst id = \"@0\"\n\nif (!window.SCORE_observer) {\n    window.SCORE_observer = {}\n}\nwindow.SCORE_observer[id] = update\n\nupdate(window.SCORE || 0)\n\u003c/script\u003e\n@end\n--\u003e\n\n# SCORM-Progress\n\nLittle observer example for visualizing SCORM progress. If not in Scorm, use the interactive script to change the SCORE value ...\n\n``` js\nwindow.SCORE = 0.1\n```\n\u003cscript\u003e@input\u003c/script\u003e\n\n@score(Progress)\n\n@score(Fortschritt)\n\n## Another page example\n\n@score(Punkte)\n\n## Implementation\n\n``` html\n\u003c!--\n@onload\n\nif(!window.SCORE) {\n    window.SCORE = 0\n}\nif(window.SCORE) {\n    window._SCORE = window.SCORE\n}\n\nif (!window.SCORE_observer) {\n    window.SCORE_observer = {}\n}\n\n// Define a property getter and setter for the global variable\nObject.defineProperty(window, 'SCORE', {\n  get: function() {\n    return this._SCORE;\n  },\n  set: function(newValue) {\n    this._SCORE = newValue;\n    for (let id in window.SCORE_observer) {\n        window.SCORE_observer[id](newValue);\n    }\n  }\n});\n@end\n\n@score: @_score(@uid,@0)\n\n@_score\n\u003cscript style=\"display: block\" modify=\"false\" run-once\u003e\nfunction update(score) {\n  const gauge = {\n    tooltip: {\n        formatter: '{a} \u003cbr/\u003e{b} : {c}%'\n    },\n    series: [\n        {\n        name: 'Progress',\n        type: 'gauge',\n        progress: {\n            show: true\n        },\n        detail: {\n            valueAnimation: true,\n            formatter: '{value}'\n        },\n        data: [\n            {\n                value: (score * 100).toFixed(2),\n                name: '@1'\n            }\n        ]\n        }\n    ]\n    };\n\n  send.lia(`HTML: \u003clia-chart option='${JSON.stringify(gauge)}'\u003e\u003c/lia-chart\u003e`)\n}\n\nconst id = \"@0\"\n\nif (!window.SCORE_observer) {\n    window.SCORE_observer = {}\n}\nwindow.SCORE_observer[id] = update\n\nupdate(window.SCORE || 0)\n\u003c/script\u003e\n@end\n--\u003e\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliaplayground%2Fscorm-progress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliaplayground%2Fscorm-progress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliaplayground%2Fscorm-progress/lists"}