View Single Post
Old 05-20-2013, 02:58 PM   #8
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
dgatwood's Avatar
 
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
Set up your default styles to be appropriate for EPUB readers. Then add JavaScript:

Code:
if (typeOf(navigator.epubReadingSystem) == "undefined") {
    /* It's a browser.  Add a new CSS stylesheet element dynamically. */
}
Readers that support only EPUB 2 won't load the JavaScript. Readers that support EPUB 3 and JavaScript will have an appropriate object there. So if you get into the body of that if statement, the content is being shown by a web browser.
dgatwood is offline   Reply With Quote