Skip to content

Commit

Permalink
[h5p-json-acceptance] changes
Browse files Browse the repository at this point in the history
  • Loading branch information
GuiLeme committed Jul 5, 2024
1 parent 6a06f99 commit 1b920b0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"@types/react": "^18.2.13",
"@types/react-dom": "^18.2.7",
"babel-plugin-syntax-dynamic-import": "^6.18.0",
"bigbluebutton-html-plugin-sdk": "0.0.53",
"bigbluebutton-html-plugin-sdk": "0.0.54",
"h5p-standalone": "file:lib/h5p-standalone",
"path": "^0.12.7",
"react": "^18.2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ function NonPresenterViewComponent(props: NonPresenterViewComponentProps) {
const maxScore = event.getMaxScore();
const verb = event.getVerb();
if (verb === 'answered') {
pluginApi.sendDataAnalytics({
learningAnalyticsDashboardColumnTitle: h5pAsJsonObject.title,
learningAnalyticsDashboardValue: `${(parseFloat(score) / parseFloat(maxScore)) * 10}`,
pluginApi.sendGenericDataForLearningAnalyticsDashboard({
columnTitle: h5pAsJsonObject.title,
value: `${(parseFloat(score) / parseFloat(maxScore)) * 10.0} / 10`,
cardTitle: 'H5P',
});
pushEntryTestResult({
testResultActivityTitle: h5pAsJsonObject.title,
Expand Down

0 comments on commit 1b920b0

Please sign in to comment.