1
0
Fork 0
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:
fchasen 2014-01-31 11:58:19 -08:00
parent 73ac66ba65
commit 93a0cd772d
19 changed files with 970 additions and 104 deletions

View file

@ -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 {