X-Git-Url: https://www.kengrimes.com/gitweb/?p=kengrimes.com%2Ftheme.git;a=blobdiff_plain;f=static%2Fjs%2Fmain.js;h=13c4dae668bcbf0cfb4b8987dbb39fa84a4cbe91;hp=8c3d452b1b239d873fad6d0f0405ff4907497fbd;hb=2bdf0073b6bdd74e3f64a358239b43ec650dad10;hpb=9c780480b76a525dd0e6cc709bdb150a4cc592cb diff --git a/static/js/main.js b/static/js/main.js index 8c3d452..13c4dae 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -20,3 +20,7 @@ window.onload = () => { }) updateNav() } +const resizeIFrame = (iframe) => { + iframe.style.height = 0 + iframe.style.height = (iframe.contentWindow.document.body.scrollHeight * 1.2) + 'px'; +}