PreTeXt: Write Once, Read Anywhere
pretextbook.org
pretextbook.org
https://pretextbook.org/examples/sample-article/html/frontma...
Chapter 14 of the sample book covers interactive elements and Javascript:
https://pretextbook.org/examples/sample-article/html/section...