mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-05 15:32:55 +02:00
Updated expanding, and resize
This commit is contained in:
parent
a574c68975
commit
1f7a4a2ccf
9 changed files with 362 additions and 256 deletions
|
@ -12,8 +12,9 @@
|
|||
background: #fafafa;
|
||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
color: #333;
|
||||
height: 100%;
|
||||
height: 100%;
|
||||
/* height: 100%;
|
||||
width: 100%;
|
||||
overflow: hidden;*/
|
||||
/* position: absolute; */
|
||||
}
|
||||
|
||||
|
@ -29,7 +30,7 @@
|
|||
}
|
||||
|
||||
#viewer > div {
|
||||
/*padding: 0 25% 0 25%;*/
|
||||
padding: 0 20% 0 20%;
|
||||
|
||||
}
|
||||
|
||||
|
@ -38,11 +39,11 @@
|
|||
box-shadow: 0 0 4px #ccc;
|
||||
margin: 10px;
|
||||
padding: 20px;
|
||||
width: 50% !important;
|
||||
/*width: 50% !important;*/
|
||||
}
|
||||
|
||||
#viewer .epub-view iframe {
|
||||
width: 100% !important;
|
||||
/*width: 100% !important;*/
|
||||
}
|
||||
|
||||
|
||||
|
@ -90,7 +91,7 @@
|
|||
var currentSectionIndex = 8;
|
||||
// Load the opf
|
||||
var book = ePub("../books/moby-dick/OPS/package.opf");
|
||||
var rendition = book.renderTo("viewer", { method: "continuous", width: "100%", height: "100%" });
|
||||
var rendition = book.renderTo("viewer", { method: "continuous", width: "60%", height: "100%" });
|
||||
var displayed = rendition.display(currentSectionIndex);
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue