• Register
Welcome to the in5 Answer Exchange! This a place to get answers about in5 (InDesign to HTML5) and make requests.

Progress Bar for page count?

0 votes
Is there a way to show a progress bar like an e-reader would? Looking to show how far a user has gone in a book we are exporting using multi-page export. Perhaps you have seen a plugin that works with in5 to accomplish this?
asked Jun 13 in how_to by jcfalteredimage (300 points)
    

1 Answer

0 votes

Yes, this can be done by monitoring the newPage event, e.g.,

$(function(){
$(document).on('newPage', function(e, data) {
   var progress = (nav.currentPage+1)/nav.numPages);
   /*apply progress % to element width here*/
}); });

I will try to post a full tutorial on the blog and share it via the newsletter in the near future.

answered 4 days ago by justin (111,760 points)
...