Your Community is getting an upgrade!
Read about our partnership with Higher Logic and how we will build the next generation of the Instructure Community.
Found this content helpful? Log in or sign up to leave a like!
As a theological institution, it would be helpful if in our discussion forums Bible references such as "John 3:16" was automatically tagged and have a tooltip using the following Reftagger code:
<script>
var refTagger = {
settings: {
bibleVersion: 'ESV'
}
};
(function(d, t) {
var n=d.querySelector('[nonce]');
refTagger.settings.nonce = n && (n.nonce||n.getAttribute('nonce'));
var g = d.createElement(t), s = d.getElementsByTagName(t)[0];
g.src='https://api.reftagger.com/v2/RefTagger.js';
g.nonce = refTagger.settings.nonce;
s.parentNode.insertBefore(g, s);
}(document, 'script'));
</script>
Does anybody know if this is possible and/or how to convert this script code to get it to work in discussion forums?
You may be able to upload custom JS by following this guide, if you are a Canvas admin How do I upload custom JavaScript and CSS files to... - Instructure Community - 253
Sorry for not being more clear. I know how to upload CSS and JS for themes. My question was how to turn the above code into Javascript. However, I believe I was able to accomplish that with some trial and error combined with AI help. I'll be happy to share my code if somebody comes across this in the future.
To interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign InTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign In