Lumi
Lumi copied to clipboard
Completed status to parent window
Hello,
I use the integration between H5P and another popular product - Adapt Learning: https://www.adaptlearning.org.
Adapt has components to insert H5P iframe: https://github.com/cgkineo/adapt-iframe
Is it possible to add an option to Lumi so that when it ends, a JS is sent to the parent window?
window.parent.postMessage('complete', '*');
I think this would require custom JS injection in exported HTML files. It's possible. The next version will include a custom CSS injector, so it would be easy to add one for JS. If you have the time, I would welcome a PR.