1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-05 15:32:55 +02:00

Added basic pagination

This commit is contained in:
Fred Chasen 2014-08-28 17:05:13 -04:00
parent 1a89a9c3ff
commit 816880d328
12 changed files with 1289 additions and 373 deletions

View file

@ -17,15 +17,17 @@
#viewer {
display: block;
margin: 0;
width: 100%;
width: 60%;
height: 100%;
margin: 0 auto;
}
#viewer iframe {
background: white;
box-shadow: 0 0 4px #ccc;
width: 590px;
margin: 10px auto;
margin: 10px;
width: calc(100% - 60px) !important;
padding: 20px;
}
@ -72,7 +74,7 @@
<script>
var currentSectionIndex = 10;
// Load the opf
var book = ePub("../books/accessible_epub_3-20121024.epub/package.opf");
var book = ePub("https://s3.amazonaws.com/moby-dick/OPS/package.opf");
var rendition = book.renderTo("viewer");
var displayed = rendition.display(currentSectionIndex);