Update read.html

This commit is contained in:
Kittenoncatnip 2019-01-16 10:42:27 +00:00
parent 00d21d8340
commit 52a79d05e7

View file

@ -41,16 +41,9 @@
function resizeIframe() {
var contentHeight = $("#bookContent").contents().find("html").height();
var menuHeight = $("#bookMenu").height();
if (contentHeight < menuHeight) {
$("#bookContent").height(menuHeight);
} else {
$("#bookContent").height(contentHeight);
}
}
</script>
<iframe id="bookContent" onload="resizeIframe();" style="width: 100%; height: 1080px; border: 0;" scrolling="auto" src="{{.Content}}" seamless="seamless" sandbox="allow-same-origin" frameborder=0></iframe>
</div>
</div>
<ul class="pager">
{{if .Prev}}
@ -68,4 +61,9 @@ function resizeIframe() {
{{end}}
</ul>
</div>
</div>
{{template "footer.html"}}