Update read.html
This commit is contained in:
parent
52a79d05e7
commit
fb604ca929
1 changed files with 23 additions and 20 deletions
|
@ -1,24 +1,6 @@
|
||||||
{{template "header.html" .S}}
|
{{template "header.html" .S}}
|
||||||
|
|
||||||
<ul class="pager">
|
|
||||||
{{if .Prev}}
|
|
||||||
<li class="previous">
|
|
||||||
<a href="{{.Prev}}">← Prev</a>
|
|
||||||
</li>
|
|
||||||
{{end}}
|
|
||||||
{{if .Book.Active}}
|
|
||||||
<li class="">
|
|
||||||
<a href="{{.Back}}">Back</a>
|
|
||||||
</li>
|
|
||||||
{{else}}
|
|
||||||
<span class="label label-warning">waiting for moderation</span>
|
|
||||||
{{end}}
|
|
||||||
{{if .Next}}
|
|
||||||
<li class="next">
|
|
||||||
<a href="{{.Next}}">Next →</a>
|
|
||||||
</li>
|
|
||||||
{{end}}
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
|
@ -40,9 +22,30 @@
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function resizeIframe() {
|
function resizeIframe() {
|
||||||
var contentHeight = $("#bookContent").contents().find("html").height();
|
var contentHeight = $("#bookContent").contents().find("html").height();
|
||||||
var menuHeight = $("#bookMenu").height();
|
$("#bookContent").height(ContentHeight);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<ul class="pager">
|
||||||
|
{{if .Prev}}
|
||||||
|
<li class="previous">
|
||||||
|
<a href="{{.Prev}}">← Prev</a>
|
||||||
|
</li>
|
||||||
|
{{end}}
|
||||||
|
{{if .Book.Active}}
|
||||||
|
<li class="">
|
||||||
|
<a href="{{.Back}}">Back</a>
|
||||||
|
</li>
|
||||||
|
{{else}}
|
||||||
|
<span class="label label-warning">waiting for moderation</span>
|
||||||
|
{{end}}
|
||||||
|
{{if .Next}}
|
||||||
|
<li class="next">
|
||||||
|
<a href="{{.Next}}">Next →</a>
|
||||||
|
</li>
|
||||||
|
{{end}}
|
||||||
|
</ul>
|
||||||
|
|
||||||
<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>
|
<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>
|
||||||
|
|
||||||
<ul class="pager">
|
<ul class="pager">
|
||||||
|
|
Reference in a new issue