ElkArte Community

Extending Elk => Addons => Addons ideas and questions => Topic started by: TigerAnt on June 03, 2017, 11:19:19 pm

Title: Script
Post by: TigerAnt on June 03, 2017, 11:19:19 pm
Guy, I do not know what kinda script this is, but it is used to read Bible Scripture. When a Scripture like this is posted (James 2:24) as you move your mouse over the Scripture over the text "James 2:24" the Scripture will appear. Is there a way to use this script in the forum posts?


<script>
   var refTagger = {
      settings: {
         bibleVersion: "KJV"         
      }
   };
   (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>
Title: Re: Script
Post by: Frenzie on June 04, 2017, 03:00:47 am
I made you a quick demo add-on to show you the principle of the thing.
Title: Re: Script
Post by: TigerAnt on June 04, 2017, 08:03:08 am
I do not understand your demo? it does not play and it is all in some kinda script.
Title: Re: Script
Post by: emanuele on June 04, 2017, 08:47:32 am
Since you posted (originally) in features discussion, I guess Frenzie understood (as I did) you wanted to add it to an elkarte install, so he packed for you an addon that can be installed through elkarte package manager.
Title: Re: Script
Post by: TigerAnt on June 04, 2017, 01:10:59 pm
ok, Now I understand, Thank you both.  :D



Just thought I would let you guys know that it works great and thanks again.
Title: Re: Script
Post by: Frenzie on June 05, 2017, 10:21:18 am
No problem.