projects
/
kengrimes.com
/
theme.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
iframe resizer
[kengrimes.com/theme.git]
/
static
/
js
/
main.js
diff --git
a/static/js/main.js
b/static/js/main.js
index
8c3d452
..
a699357
100644
(file)
--- 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 = document.body.scrollHeight + 'px';
+}