我们使用 Moodle 3.5 版并使用 H5P 插件制作交互式视频。我们需要在提交按钮上添加另一个动作
请查看链接https://h5p.org/interactive-video。回答问题后,将出现如下摘要屏幕:

<script>
function checkclick()
{
$(document).ready(function(){
$(".h5p-interactive-video-endscreen-submit-button").click(function(){
alert("submitted");
});
});
}
$(document).ready(function(){
iframe=H5P.$body.contents();
iframe.find(".h5p-interactive-video-endscreen-submit-button").click(function(){
alert("hello");
});
});
// H5P.$body.contents().find(".h5p-interactive-video-endscreen-submit-button")
// $(document).ready(function(){
// var button= H5P.$body.contents().find(".h5p-interactive-video-endscreen-submit-button");
// button.attr("id","myclass");
// console.log(button);
// });
</script>
已尝试上述技术以在单击按钮时获得警报,但没有成功。
PIPIONE
慕村9548890
温温酱
随时随地看视频慕课网APP