Quote:
Originally Posted by koq
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
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 epub
3 apps actually support JavaScript.