How to execute a command in a book generated from HTML - eliranwong/UniqueBible GitHub Wiki

This page describes how to execute a command when creating a book from HTML. To execute a command when generating from a UBA notes file, see running UBA commands in a note file.

Insert HTML code in the following format: <ref onclick="document.title='[UBA command]'">[Text]</ref>

Examples:

<p>
    <ref onclick="document.title='CMD:::start ..\\..\\MP3'">OPEN directory in Windows</ref>
</p>
<p>
    <ref onclick="document.title='CMD:::open ../..'">OPEN directory in Mac</ref>
</p>
<p>
    <ref onclick="document.title='BIBLE:::KJV:::John 3:16'">John 3:16</ref>
</p>

Jumping to an anchor in a book

  1. Create anchor tag in target. (e.g. <a name="bottom">)

  2. Add link with hash. (e.g. <ref onclick="document.title='Book:::notes:::appendix#bottom'">Bottom</ref>)

⚠️ **GitHub.com Fallback** ⚠️