projects
/
kengrimes.com
/
theme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c833881
)
iframe resizer
author
ken
<ken@mihrtec.com>
Sat, 31 Mar 2018 00:57:02 +0000
(17:57 -0700)
committer
ken
<ken@mihrtec.com>
Sat, 31 Mar 2018 00:57:02 +0000
(17:57 -0700)
layouts/_default/baseof.html
patch
|
blob
|
history
static/js/main.js
patch
|
blob
|
history
diff --git
a/layouts/_default/baseof.html
b/layouts/_default/baseof.html
index
9b2e1ab
..
fd0db39
100644
(file)
--- a/
layouts/_default/baseof.html
+++ b/
layouts/_default/baseof.html
@@
-4,7
+4,6
@@
<title>{{ .Site.Title }}{{ if .Page.Title }} :: {{ .Page.Title }}{{ end }}</title>
<link rel="stylesheet" href="{{relURL `/css/main.css`}}">
<script src="{{relURL `/js/main.js`}}"></script>
- <script type="text/javascript">document.domain = "kengrimes.com"</script>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
{{ .Hugo.Generator }}
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';
+}