This repository has been archived on 2025-03-01. You can view files and clone it, but cannot push or open issues or pull requests.
trantor/templates/read.html

73 lines
1.4 KiB
HTML
Raw Permalink Normal View History

2012-08-21 18:15:21 +02:00
{{template "header.html" .S}}
2019-01-16 23:34:13 +00:00
2012-08-21 18:15:21 +02:00
2012-08-28 10:38:00 +02:00
<div class="row">
<div class="span4">
{{range .Chapters}}
2012-08-28 12:24:11 +02:00
{{range .In}}
<ul id="bookMenu" class="nav nav-list hidden-phone">
2012-08-28 11:50:08 +02:00
{{end}}
2012-08-28 10:38:00 +02:00
<li {{if .Active}}class="active"{{end}}><a href="{{.Link}}">{{.Label}}</a></li>
2013-04-01 14:05:04 +02:00
{{range .Out}}
</ul>
{{end}}
2012-08-28 11:50:08 +02:00
{{end}}
{{if .Chapters}}
2012-08-28 10:38:00 +02:00
</ul>
2012-08-28 11:50:08 +02:00
{{end}}
2012-08-28 10:38:00 +02:00
</div>
2012-09-02 15:40:43 +02:00
<div class="span8">
2012-08-30 20:49:58 +02:00
<script type="text/javascript">
2012-09-02 15:40:43 +02:00
function resizeIframe() {
var contentHeight = $("#bookContent").contents().find("html").height();
2019-01-16 23:34:13 +00:00
$("#bookContent").height(ContentHeight);
2012-08-30 20:49:58 +02:00
}
</script>
2019-01-16 23:34:13 +00:00
<ul class="pager">
{{if .Prev}}
<li class="previous">
<a href="{{.Prev}}">&larr; 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 &rarr;</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>
2012-08-21 18:15:21 +02:00
<ul class="pager">
{{if .Prev}}
<li class="previous">
<a href="{{.Prev}}">&larr; Prev</a>
</li>
{{end}}
<li class="">
2012-08-21 20:54:57 +02:00
<a href="{{.Back}}">Back</a>
</li>
2012-08-21 18:15:21 +02:00
{{if .Next}}
<li class="next">
<a href="{{.Next}}">Next &rarr;</a>
</li>
{{end}}
</ul>
2019-01-16 10:42:27 +00:00
</div>
</div>
2020-03-23 19:13:58 +00:00
{{template "footer.html" .S}}