-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The "Send report" button disappears in the BOOK #134
Comments
@getcher123 I didn't quite understand the problem. Is the button missing altogether or the button disappears after results submission? |
The button is missing altogether. On the first screen I showed the button on h5p.com. |
@murageyun you could test this on https://3dfarm.ru/course |
I have seen the problem. The button has to be enabled via configuration which is not clearly documented here https://github.com/h5p/h5p-interactive-book/blob/786c11ca05bf10bfeddac345cecc1967f0a1171a/src/scripts/app.js#L58-L63 Here is a workaround until a fix is created, const el = document.getElementById('h5p-container');
const options = {
h5pJsonPath: '/workspace/berries-28-441940',
frameJs: 'https://unpkg.com/h5p-standalone/dist/frame.bundle.js',
frameCss: 'https://unpkg.com/h5p-standalone/dist/styles/h5p.css',
metadata: {
title: "Book title here",
license: "CC-BY-SA"
},
preventH5PInit: true //prevent h5p player from initialization
}
new H5PStandalone.H5P(el, options)
.then(() => {
H5PIntegration.reportingIsEnabled = true; //this is the trick
H5P.init(); //initialize the h5p player
})
Summary of the fix:
|
Thank you, this method works! |
fixed by #158 |
When viewing a book through h5p-standalone, the "Submit Report" button on the last screen disappears, which sends the results.
The text was updated successfully, but these errors were encountered: