It's needed because we don't want to query the LRS every time we want the score, if the score is requested multiple times on a page.
Had to refactor things a bit, but think the new version handles it.
Rise to alpha3 after resolving !1 (diffs, comment 516607)
Review and release https://www.drupal.org/project/lms_xapi/issues/3524661, get rid of the duplicated code here in favor of getLatestStatementByUuid()
Ahh, we probably need to $clicked_button->click()
instead.
This clicks the back button unfortunately. I don't know why though so needs a bit js debugging.
Remove comment.
Needs resolving.
I think it's nice. I'd just sleep for half a second after clicking the check answer button. Also, we need to check if the check answer button exist...
Actually it works even though $variables isn't a render array, we we can replace several lines of a code with an explanatory comment. A small hack ...
Added some js to click the 'check' button when the 'next' button is clicked.
This is the H5P formatter, it's mostly because of the iframe implementation, because render blocking assets are chained from within the iframe. Nee...
Oh I see......
Yes, I added it in this branch.
Yes because this one is a render array ;)
Would be great but $variables isn't a render array.