View Single Post
Old 09-29-2017, 09:40 AM   #12
fbrzvnrnd
Fanatic
fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.
 
Posts: 559
Karma: 400004
Join Date: Feb 2009
Device: ONYX M96
I do not think the scroll position could work: every chapter is a new xhtml file, so I got a different value (0) for each page.
I have the same problem when I use a script in a chapter that uses the localstorage.
For example: chapter 1, after a user action, put a "yes" value in locastorage.

Chapter 4, if the value in localstorage is "yes", must use red color for paragraph.

This is working in ADE. But iBooks starts ALL the scripts of ALL the pages when load the ePub the first time. So no way to check the "yes" value in localstorage.
fbrzvnrnd is offline   Reply With Quote