View Single Post
Old 12-30-2020, 07:43 AM   #6
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,746
Karma: 24032915
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by koq View Post
I also would like to know whether React.js can be incorporating in Sigil?
I haven't tested this, but in theory, all JavaScript frameworks without external dependencies should work.

Quote:
Originally Posted by koq View Post
I did Javascript in external file (Misc folder) and put the name of the script file in the src (source) attribute of a <script> tag:
Depending on the code, you might have to explicitly reference JavaScript code with onload. For example:

Code:
<body onload="myFunction()">
Here are two very simple sample epubs with JavaScript created with Sigil:

Epub1
Epub2

However, before you spend more time on this, you might want to consider the fact that only a handful of epub3 apps actually support JavaScript.
Doitsu is offline   Reply With Quote