View Single Post
Old 03-03-2023, 11:33 AM   #2
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,845
Karma: 169712582
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
JS is supported in epub3 but not epub2. And even in epub3, only a relatively small subset is of real use. As for adding scripted in the opf file? You need to add a properties="scripted" in the appropriate places. See the example below:

Code:
<item href="Text/File_with_script.xhtml" id="File_with_script.xhtml" media-type="application/xhtml+xml" properties="scripted"/>
DNSB is offline   Reply With Quote