Event when H5P dom is ready
Submitted by bluetea on Thu, 06/30/2016 - 17:23
Forums:
In my javascript code, I would like to run a function after the H5P dom is finished, i.e. all questions are displayed. Is there any way to do this?
In my javascript code, I would like to run a function after the H5P dom is finished, i.e. all questions are displayed. Is there any way to do this?
Navigation
Connect with H5P
About
H5P is a registered trademark of H5P Group
Privacy policy |
Copyright ©
2024
falcon
Fri, 07/01/2016 - 15:08
Permalink
I'm in a hurry, but you could
I'm in a hurry, but you could experiment with H5P.externalDispatcher.on('domChanged', function(data) {console.log('C');});
Data may hold $target, library and key IIRC
bluetea
Fri, 07/01/2016 - 21:29
Permalink
It works, thanks! This also
It works, thanks! This also solves my problem with setting the "preload" attribute and probably some others.
falcon
Tue, 07/05/2016 - 13:34
Permalink
:)
:)