View Single Post
Old 02-18-2025, 11:01 AM   #1
Ilcaa
Junior Member
Ilcaa began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2011
Device: Nook
JS script not running in EPub, sample attached

hello, i am trying to run a JS script that places each sentences into its own line.

This JS script works because i can successfully run it on my browser on any website, BUT i follwed the instructions for adding JS scripts to EPub via Sigil and I cant get it to work. can you take a look (file attached)

seems striaght forward...
1. add JS Script to Misc folder.
2. select the xHTML file, right click and select "link JS File"
3. Sigil adds script tags to the xHTML pointing to JS Script
4. save as EPub

i am attaching a very small sample with the script. If someone could correct it and let me know what I was missing that would be great. Thanks for the help
Attached Files
File Type: epub TEST_EPUB_PARSE.epub (2.8 KB, 117 views)
Ilcaa is offline   Reply With Quote