Dynamic resizing script in Moodle

laustin's picture

Hi 

When copying some H5P embed script to place in a Moodle page, I noticed this message:

Include this script on your website if you want dynamic sizing of the embedded content:

<script src="https://h5p.org/sites/all/modules/h5p/library/js/h5p-resizer.js" charset="UTF-8"></script>

 

Can anyone tell me what I need to tell our Moodle tech people in regards to this. We are currently using embedded h5P as we want them to sit within a lesson or a book rather than as a separate Moodle activity.  I would like to make sure that they resize for different screens. Does this script need to go somewhere on the Moodle site?

Lilian

 

 

 

thomasmars's picture

Yes, the resize-script should be inserted after the embed code on your Moodle page.
It makes sure that H5P content has a dynamic size that will adapt to the screen and browser dimensions.

- Thomas

Is there something similar for resizing in the Camvas app?

The script didn't work in Moodle Lesson page or anywhere {h5p:} is used. Is there any other solutions for this?

Inserting the resize-script after the embed code, {h5p:}, on your Moodle page did not work. Is there any other solutions to this?