mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-03 14:59:18 +02:00
initial pagination features
This commit is contained in:
parent
73ac66ba65
commit
93a0cd772d
19 changed files with 970 additions and 104 deletions
|
@ -79,7 +79,7 @@ EPUBJS.reader.ControlsController = function(book) {
|
|||
|
||||
});
|
||||
|
||||
book.on('renderer:pageChanged', function(cfi){
|
||||
book.on('renderer:locationChanged', function(cfi){
|
||||
//-- Check if bookmarked
|
||||
var bookmarked = reader.isBookmarked(cfi);
|
||||
if(bookmarked === -1) { //-- Not bookmarked
|
||||
|
@ -93,6 +93,10 @@ EPUBJS.reader.ControlsController = function(book) {
|
|||
}
|
||||
|
||||
});
|
||||
|
||||
book.on('book:pageChanged', function(location){
|
||||
console.log("page", location.page, location.percentage)
|
||||
});
|
||||
|
||||
return {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue