This might be a little niche. I’m trying to incorporate the functionality of this non-TW plugin. https://bible-link.globalrize.org/ (The manual non-Wordpress version).
It requires, as a minimum, the inclusion of this line at the end of the <body> section: <script async defer src="https://bible-link.globalrize.org/plugin.js" data-translation="esv16"></script>
In TW this script can be called in the using a tiddler with the tag $:/tags/RawMarkupWikified/BottomBody
Then if a string appears on the page that can be interpreted as a Biblical link, e.g. Matt 1:10 or Matthew 1:10 moving the mouse over the link shows a popup with the relevant text.
The functionality works in a simple non-TW test page but not when the refence is in a tiddler.
Long-shot I know, but does anyone have any ideas how to get this working?
Or maybe there is a better way of doing this in TW?
Can I draw @DaveGifford attention to this in case he has done something similar.
Yes, the fundamental design is probably quite different. We would need to find a way to run this on a tiddler after the normal processing. I don’t know what API globalrize offers, if there’s anything available besides just dropping the script on a page, but you would probably need to take advantage of whatever API it offers.
Unfortunately, I have no time soon to investigate, but if you’re interested, and if they do offer some sort of API to call on demand, then one of the techniques I discuss in Pretty fractions might help. (Sorry, it’s fairly technical.)
Thanks. I sort of guessed this was a timing issue. There are other Bible verse APIs, but none that i can see have this neat text parser.
I asked Globalrize about an API, but unfortunately, not.
Does anyone know if it is possible to create a simple API ‘wrapper’ for a JS script?
Back to TW. My other option might be to use a Preview plugin and hold the data in TW, but that does require holding a lot of data. In another context, this might be something like a Glossary or Dictionary lookup - does that prompt further ideas, anyone?