View Single Post
Old 01-30-2024, 09:26 AM   #2
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 74,053
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Quote:
Originally Posted by Daniele Giampà View Post
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.
pdurrant is offline   Reply With Quote