Apply own pop ups in Question set result

siddharth013's picture


I am using the H5P mods in Moodle 3.8. Here, I am having  my popups for the results after the questions. I want to use them instead of the default stars coming in H5P for failure and passing. 

How can I apply them inside the H5P codes?

Default H5P result and desired popups are attached in the image.


Content types: 
otacke's picture


You could try to add your own script and styles, wait for the content to be initialized (as indicated by the 'initialized' event sent out by H5P.externalDispatcher) and then retrieve the instance from the H5P object in order to replace the function used for displaying the results (cmp.