Advertisement
rfog

Calibre book footer remainsng pages in section

Jul 31st, 2020 (edited)
1,972
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.81 KB | None | 0 0
  1. Calibre Remaining Pages Helper (Starting with Calibre 4.22 - Select one).
  2.  
  3. Current of Totals/Current of Section:
  4. <footer style="justify-content: center;font-size:x-small">
  5. <div></div>
  6. <script>document.currentScript.parentNode.querySelector("div").innerHTML =  ""+ _PAGENUM_ +" of " + _TOTAL_PAGES_ + " / " +_TOP_LEVEL_SECTION_PAGENUM_ + " of " + _TOP_LEVEL_SECTION_PAGES_ </script>
  7. </footer>
  8.  
  9. Current of Totals/Current of Section (With read %):
  10. <footer style="justify-content: center;font-size:x-small">
  11. <div></div>
  12. <script>document.currentScript.parentNode.querySelector("div").innerHTML =  ""+ _PAGENUM_ +" of " + _TOTAL_PAGES_ +" (" + parseInt(_PAGENUM_*100/_TOTAL_PAGES_) + "%) / " +_TOP_LEVEL_SECTION_PAGENUM_ + " of " + _TOP_LEVEL_SECTION_PAGES_ + " ("+ parseInt(_TOP_LEVEL_SECTION_PAGENUM_*100/_TOP_LEVEL_SECTION_PAGES_) +"%)"</script>
  13. </footer>
  14.  
  15.  
  16. Remaining of Totals/Remaining of Section:
  17. <footer style="justify-content: center;font-size:x-small">
  18. <div></div>
  19. <script>document.currentScript.parentNode.querySelector("div").innerHTML =  ""+ (_TOTAL_PAGES_ - _PAGENUM_ + 1 ) +" of " + _TOTAL_PAGES_ + " / " +(_TOP_LEVEL_SECTION_PAGES_ - _TOP_LEVEL_SECTION_PAGENUM_ +1 ) + " of " + _TOP_LEVEL_SECTION_PAGES_ </script>
  20. </footer>
  21.  
  22.  
  23. Remaining of Totals/Remaining of Section (With % remaining):
  24. <footer style="justify-content: center;font-size:x-small">
  25. <div></div>
  26. <script>document.currentScript.parentNode.querySelector("div").innerHTML =  ""+ (_TOTAL_PAGES_ - _PAGENUM_ + 1 ) +" of " + _TOTAL_PAGES_ + " (" + parseInt((_TOTAL_PAGES_ - _PAGENUM_ + 1 )*100/_TOTAL_PAGES_) + "%) / " +(_TOP_LEVEL_SECTION_PAGES_ - _TOP_LEVEL_SECTION_PAGENUM_ + 1 ) + " of " + _TOP_LEVEL_SECTION_PAGES_ + " (" + parseInt((_TOP_LEVEL_SECTION_PAGES_ - _TOP_LEVEL_SECTION_PAGENUM_ + 1 )*100/_TOP_LEVEL_SECTION_PAGES_) + "%)"</script>
  27. </footer>
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement