Quote:
Originally Posted by Daniele Giampà
Hello
I created a generative poem on my web page and I converted it into an EPUB3 document.
I used GSAP to create two animations and in the EPUB Check I get the following error:
Remote resource reference is not allowed in this context; resource "https://cdnjs.cloudflare.com/ajax/libs/gsap/3.9.1/gsap.min.js" must be located in the EPUB container.
What does this mean?
|
The gasp.min.js file that's referenced in your ePub is not part of your epub, it's on a cloudflare server. This is usually fine for a web page, but not for an ePub, where all required resources must be part of the ePub. You'll need to get a copy of the file and include it in the ePub and then make sure references to it are to the ePub copy, not the copy on cloudflare. You should probably check that you're allowed to do that under whatever licence covers the gsap code.
Whether the javascript animations will work in an ePub is not something I know. It certainly won't work in all ePub readers.