Dynamic resizing script in Moodle
Submitted by laustin on Thu, 12/29/2016 - 23:34
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
Mon, 01/02/2017 - 09:49
Permalink
Hi Lilian,
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
mmatheas
Mon, 04/19/2021 - 06:29
Permalink
resizing
Is there something similar for resizing in the Camvas app?
ealsdorf
Thu, 06/17/2021 - 22:15
Permalink
resizing
The script didn't work in Moodle Lesson page or anywhere {h5p:} is used. Is there any other solutions for this?
ealsdorf
Thu, 06/17/2021 - 22:17
Permalink
resizing
Inserting the resize-script after the embed code, {h5p:}, on your Moodle page did not work. Is there any other solutions to this?