View Single Post
Old 07-31-2020, 12:31 PM   #6
rfog
Guru
rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.rfog ought to be getting tired of karma fortunes by now.
 
Posts: 696
Karma: 2383012
Join Date: Aug 2007
Location: Schiedam (The Netherlands)
Device: Lots of eInk devices and iOS stuff
Man, works like a charm.

Some samples.

A very easy and direct footer:
Code:
<footer><div>_TOTAL_PAGES_/_TOP_LEVEL_SECTION_PAGES_/_TOP_LEVEL_SECTION_PAGENUM_</div></footer>
Remaining pages in section:
Code:
<footer style="justify-content: center;font-size:x-small">
<div></div>
<script>document.currentScript.parentNode.querySelector("div").innerHTML =  ""+(_TOP_LEVEL_SECTION_PAGES_ - _TOP_LEVEL_SECTION_PAGENUM_ )</script>
</footer>
And the mother of all:
Code:
<footer style="justify-content: center;font-size:x-small">
<div></div>
<script>document.currentScript.parentNode.querySelector("div").innerHTML =  ""+ _PAGENUM_ +" of " + _TOTAL_PAGES_ + "/" +(_TOP_LEVEL_SECTION_PAGES_ - _TOP_LEVEL_SECTION_PAGENUM_ ) + " of " + _TOP_LEVEL_SECTION_PAGES_ </script>
</footer>
Attached a capture of one of my converted ebooks.

PS: Today my iMAC is going to be very bussy reconverting books.

Attached Thumbnails
Click image for larger version

Name:	Anotación 2020-07-31 182806.png
Views:	165
Size:	30.1 KB
ID:	181041  
rfog is offline   Reply With Quote