mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-04 15:09:16 +02:00
updated bower, bug fixes
This commit is contained in:
parent
e7839220f2
commit
1fdbf609f5
8 changed files with 69 additions and 32 deletions
|
@ -17,16 +17,17 @@
|
|||
#viewer {
|
||||
display: block;
|
||||
margin: 0;
|
||||
width: 60%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#viewer iframe {
|
||||
background: white;
|
||||
box-shadow: 0 0 4px #ccc;
|
||||
margin: 10px;
|
||||
width: calc(100% - 60px) !important;
|
||||
width: calc(60% - 60px) !important;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
|
@ -72,7 +73,7 @@
|
|||
<div id="viewer"></div>
|
||||
|
||||
<script>
|
||||
var currentSectionIndex = 10;
|
||||
var currentSectionIndex = 0;
|
||||
// Load the opf
|
||||
var book = ePub("https://s3.amazonaws.com/moby-dick/OPS/package.opf");
|
||||
var rendition = book.renderTo("viewer");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue