12-28-2009, 05:03 AM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Dec 2009
Device: Sony PRS-505
|
Pages to end of chapter. Any javascript function?
Hi,
I would like to have in the status line the number of pages to the end of chapter, but I cannot find a javascript function to get this information. Do any of you know how can it be done? Where can I find the functions that can be used within the pageChanged fucntios as countPages of getPage? Code:
<function id="pageChanged"> if (this.isShown()) { this.setVariable("BOOK_SIZE", this.getScale()); this.setVariable("BOOK_HALF_PAGE", this.getHalfPage()); var c = this.countPages(); var i = this.getPage() + 1; ... I have already started modifying the main.xml and applicationStart.xml files, and now I master the procedure after bricking my reader several times. As soon as it is ready I will submit to Jeff in case he wants to add it to the PRSCustomizer. /Carlos |
Tags |
sony prs-505 hack mod |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Ebook chapter titles: with or without chapter number? | amoroso | Writers' Corner | 16 | 06-14-2011 06:35 AM |
HTML to PDF, blank pages after each chapter | ibarro | Calibre | 5 | 08-02-2010 03:08 PM |
Next Chapter skips to End in last chapter? | JoGoCo | Kobo Reader | 5 | 07-13-2010 09:23 PM |
Adding chapter breaks by number of pages/lines | raptir | Calibre | 8 | 10-22-2009 12:11 PM |
Repagination problems? Losing words at the end of pages | melrowgo | Sony Reader | 6 | 05-26-2009 12:57 PM |