I know others have asked in the past, but I have not found an answer yet. I am am trying to get RefTagger working on Google Sites. It is a free service (affordable for us) we are using for our church site.
I created a Google App Script to get the javascript code for Reftagger onto the page since Google security will not allow it any other way.
I created a Google App Script:
Code.gs
function doGet() {
return HtmlService
.createHtmlOutputFromFile('Reftag')
}
Reftag.html
<div>
<p>Here is some content and Matthew 1:1 as a reference.</p>
<script>
var refTagger = {
settings: {
bibleVersion: "NIV",
convertHyperlinks: true,
roundCorners: true
}
};
(function(d, t) {
var g = d.createElement(t), s = d.getElementsByTagName(t)[0];
g.src = "//api.reftagger.com/v2/RefTagger.js";
s.parentNode.insertBefore(g, s);
}(document, "script"));
</script>
</div>
It does not work.
Here is what the javascript console shows in Google Chrome:

I know there are real programmers out there. Anyone able to help out with this? I believe there are a number of users who would appreciate getting this to work on Google Sites.