Apply own pop ups in Question set result

siddharth013's picture

Greetings

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.

Regards

Content types: 
otacke's picture

Hi!

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. https://github.com/h5p/h5p-question-set/blob/5fa83227f9e58905271ee74247af2a2e1ccab61a/js/questionset.js#L712).

Best,
Oliver