From 949ccbe50ac2f43648064439085042eb58fc3b95 Mon Sep 17 00:00:00 2001 From: donal <donalspring@gmail.com> Date: Tue, 03 Jul 2018 15:43:27 +0200 Subject: [PATCH] ADD new page with practices via iframe --- index.html | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/index.html b/index.html index 16d48fe..1eccc72 100644 --- a/index.html +++ b/index.html @@ -32,6 +32,13 @@ <script src="//unpkg.com/prismjs/components/prism-groovy.min.js"></script> <script src="//unpkg.com/prismjs/components/prism-yaml.min.js"></script> <script src="//unpkg.com/prismjs/components/prism-json.min.js"></script> + <script> + // this didn't work cuz of CORS :( + function resizeIframeHack(iframe) { + // console.log(window.document.body.scrollHeight) + iframe.height = iframe.contentWindow.document.body.scrollHeight + "px"; + } + </script> </body> </html> -- Gitblit v1.9.3