View source for MediaWiki:BibleGet.js
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
(function($,mw){
$(document).ready(function(){
if( $('.bibleQuoteRef').length > 0 ){
console.log("There are bible quotes on this page!");
$('.bibleQuoteRef').each(function(){
let $span = $(this);
let version = $(this).attr('data-version');
let ref = $(this).attr('data-ref');
let tmp = (version + '/' + ref).replace(/\s/g,'');
let key = md5(tmp);
let obj = new mw.Message( mw.messages, key );
if(obj.exists()){
console.log('Bible Quote message with key = ' + key + ' and corresponding with version/ref = ' + version + '/' + ref + ' was found');
let $bGetTIP = $('<div>', {
"class": "bibleGetQuote",
"data-ref": ref,
"html": obj.text()
});
$bGetTIP.append($('<p>',{"text": " — powered by BibleGet I/O","css":{"font-size":".9em","text-align":"right","font-style":"italic","font-weight":"bold","color":"gray"}}));
$('body').append($bGetTIP);
$span.on('mouseenter', function(){
000
1:0
Return to MediaWiki:BibleGet.js.