Update read.html
This commit is contained in:
parent
00d21d8340
commit
52a79d05e7
1 changed files with 5 additions and 7 deletions
|
@ -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"}}
|
||||
|
|
Reference in a new issue