diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2026-09-12 18:35:12 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2026-09-12 18:35:12 +0200 |
| commit | 9e6100310cedd97cf351955ddc98de5057fe6d2b (patch) | |
| tree | 064c0a426db63f7e7e4f608b08417ff003d81631 | |
| parent | 4624002d9623f54748fc2eaa5a01d92addd2f1ce (diff) | |
| download | unterricht-9e6100310cedd97cf351955ddc98de5057fe6d2b.tar.gz unterricht-9e6100310cedd97cf351955ddc98de5057fe6d2b.zip | |
planet: escape pandoc template character in js format string
| -rw-r--r-- | Info/9/3/Planet/templates/h5p-autoembed.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Info/9/3/Planet/templates/h5p-autoembed.js b/Info/9/3/Planet/templates/h5p-autoembed.js index 8c41e6e5..c26c0c84 100644 --- a/Info/9/3/Planet/templates/h5p-autoembed.js +++ b/Info/9/3/Planet/templates/h5p-autoembed.js @@ -48,7 +48,7 @@ async function embedScorm() { const iframe = document.createElement('iframe'); // Concatenate the URL to prevent Moodle's auto link feature to mess with the url - iframe.src = `/mod/scorm/player.php?a=${scormplayerdata.scorm}¤torg=${scormplayerdata.currentorg}&scoid=${scormplayerdata.sco}&sesskey=${M.cfg.sesskey}&display=popup&mode=normal` + iframe.src = `/mod/scorm/player.php?a=$${scormplayerdata.scorm}¤torg=$${scormplayerdata.currentorg}&scoid=$${scormplayerdata.sco}&sesskey=$${M.cfg.sesskey}&display=popup&mode=normal` iframe.frameborder = div.frameborder ? div.frameborder : 0; iframe.allowfullscreen = div.allowfullscreen ? div.allowfullscreen : "allowfullscreen"; iframe.title = autoEmbedLink.title; |
