Drag and Drop

Help with Getting the API Score for Drag and Drop

Hi. I am trying to get the score from my Drag and Drop to interact with some javascript function.

I followed one of the previous posts and added the following code to my (wordpress) theme's functions.php file.

 

function h5pmods_alter_scripts(&$scripts, $libraries, $embed_type) {

  if (isset($libraries['H5P.DragQuestion'])) {

    $scripts[] = (object) array(

      // Path can be relative to wp-content/uploads/h5p or absolute.

      'path' => 'score-tracking.js',

Drag and Drop Highlights Answer

absolom's picture

I created a drag and drop activity.

When I try the activity it keeps highlighting the correct drop-zone for each element.  I have no idea how to fix it.  I have recreated the activity several times, but I keep ending up with the same result.

Please, how do I fix this?

https://habitat.creataholic.ca/whats-the-sku/

Drag and Drop Background Image

absolom's picture

I found an error in my drag and drop background image.
Is it possible to change the background image of a drag and drop activity to a different image or do I have to recreate the entire activity over again?
If I have to recreate it, is there a way to migrate the drop zones and images to a new drag and drop activity?
Thanks,
Abs

Pages