How to listen to the start button of the H5P Question Set library using the H5P
-
Hello, I am using the H5P Question Set library to create a quiz on my WordPress site. I have enabled the option to show an introduction screen before the quiz starts. This screen has a button with the class “.qs-startbutton” that says “Start Quiz”. When I click this button, I want to hide all the “p” elements inside the div with the class “.entry-content” that are outside the iframe that contains the H5P content. However, I cannot access this button from outside the iframe due to security reasons. I have learned that I can use the H5P API to listen to events inside the iframe, but this button does not send an xAPI statement when it is clicked, so I cannot use the H5P.externalDispatcher.on(‘xAPI’, eventHandler) method to listen to this button. Is there any other way to listen to this button using the H5P API? Or can you please add an xAPI statement to this button in future versions of the H5P Question Set library? Thank you for your help.
- The topic ‘How to listen to the start button of the H5P Question Set library using the H5P’ is closed to new replies.