[exos] try pluto

This commit is contained in:
Gaspard Jankowiak 2022-01-05 16:10:25 +01:00
commit 51248b57d3
5 changed files with 30 additions and 3 deletions

19
_includes/iframe.html Normal file
View file

@ -0,0 +1,19 @@
<iframe id="iframe" style="width:100%" src="{{ include.src }}"></iframe>
<script>
// Selecting the iframe element
var frame = document.getElementById("iframe");
// Adjusting the iframe height onload event
frame.onload = function()
// function execute while load the iframe
{
// set the height of the iframe as
// the height of the iframe content
setTimeout(function() {
frame.style.height = frame.contentWindow.document.body.scrollHeight + 'px';
console.log(frame.contentWindow.document.body.scrollHeight + 'px');
}, 1000);
}
</script>