Mobileread
CSS media queries to detect apple books
#1  scruffs 06-27-2020, 05:02 AM
If I want to detect Kindle readers, I can use:
@media amzn-kf8 {
/* CSS for KF8 devices */
}
or
@media amzn-mobi7 {
/* CSS for Mobi7 devices */
}

Is there an equivalent for Apple Books?

THX
Reply 

#2  Doitsu 06-27-2020, 04:27 PM
Quote scruffs
Is there an equivalent for Apple Books?
AFAIK, there's no Apple Books equivalent. You can, of course, test for specific Apple devices, for example iPads.
If you want to be absolutely sure, you'll need to use JavaScript to get the value of the epubReadingSystem name property.
Reply 

#3  scruffs 06-30-2020, 02:02 PM
Thank you!
Reply 

Today's Posts | Search this Thread | Login | Register