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.
