View Single Post
Old 04-27-2024, 05:30 AM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,455
Karma: 129358310
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by RbnJrg View Post
On epub2, no (or very poorly). On epub3 you have javascript and with it, you can know a lot of things about the device (or app) where the epub was opened (and the position and size of the elements contained in that ebook) and to adapt the layout accordingly. For example, one old epub3 ereader is Gitden; is deprecated, but even so is quite good. But it has a drawback; you can't set -with the app- the margins of the body text; with javascript you can know that the epub is being opening on Gitden and then set margin by means of css styles (those styles are only applied if the epub was opened under Gitden).
But in most cases, you have no need for javascript. As long as this eBook is just a simply formatted novel, don't use any advanced code. The simpler the code the more it's compatible.
JSWolf is offline   Reply With Quote