Lumi icon indicating copy to clipboard operation
Lumi copied to clipboard

Completed status to parent window

Open obuylov opened this issue 2 years ago • 1 comments

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', '*');

obuylov avatar Mar 09 '22 13:03 obuylov

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.

sr258 avatar Mar 12 '22 10:03 sr258