Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embedded h5p elements from Twillo not properly loaded #148

Open
JuliaHeiken opened this issue Dec 11, 2023 · 5 comments
Open

Embedded h5p elements from Twillo not properly loaded #148

JuliaHeiken opened this issue Dec 11, 2023 · 5 comments

Comments

@JuliaHeiken
Copy link

When embedding h5p elements from Twillo, there are some icons not shown or sometimes the file cannot be loaded at all. On Twillo, the elements look fine.
h5p_bug
h5p_bug_2

@andre-dietrich
Copy link
Member

Hi @JuliaHeiken ... could you provide a small code-example, how you embed the H5P elements? Either here as a markdown-code-block or you create an example at

https://liascript.github.io/LiveEditor/

and then share it by clicking on menu and then on snapshot-url ... this way, the URL will contain the entire content ...

@JuliaHeiken
Copy link
Author

Sure, for example
<iframe src="https://www.twillo.de/edu-sharing/eduservlet/render?node_id=291a02e3-2fd0-4276-b49d-37c205fe945d" width="100%" height="840" frameborder="0" allowfullscreen="allowfullscreen" title="Research Data Management in the Energy Sector"></iframe>

@andre-dietrich
Copy link
Member

You can try the following, add a persistent instruction to the global header-comment or locally per slide, where you add an IFrame ...

persistent

You can try this out here: LiveEditor


I hope this fixes your issue?

@JuliaHeiken
Copy link
Author

Unfortunately, it doesn't. I think the issue is browser-dependent. The issue appears in chrome, but I just tried in Firefox and there it's working.

@andre-dietrich
Copy link
Member

Ah, I see ... These little icons are actually fonts:

image

The problem you are facing is related to how different browsers handle the loading of web fonts from an iframe. Firefox seems to be able to handle the situation gracefully and only shows a warning, while Chrome fails with a 400 Bad Request error.

You could either try to use real images for this purpose or you have to ask your administrator to change the CORS settings for this case. This link should help solve the issue:

https://stackoverflow.com/questions/33197751/fonts-are-blocked-in-web-client-cors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants