[exos] try pluto
This commit is contained in:
parent
c36b1ad64f
commit
51248b57d3
5 changed files with 30 additions and 3 deletions
19
_includes/iframe.html
Normal file
19
_includes/iframe.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue