MediaWiki:BibleGet.js: Difference between revisions
Content deleted Content added
Johnrdorazio (talk | contribs) No edit summary |
Johnrdorazio (talk | contribs) No edit summary |
||
Line 1:
(function($){
$(document).ready(function(){
if( $('.
console.log("There are bible quotes on this page!");
$('.
let version = $(this).attr('data-version');
let ref = $(this).attr('data-ref');
let $
$.ajax({
method: 'POST',
Line 17:
},
success: function(data){
let $bGetTIP = $('<div>', {
$div.html(data);▼
"class": "bibleGetQuote",
"data-ref": ref,
});
$(body).append($bGetTIP);
$span.on('mouseenter', function(){
$bGetTIP.show();
let top = $span.offset().top;
let left = $span.offset().left + $span.outerWidth();
$bGetTIP.css({"top":top,"left":left});
});
console.log("Injected Bible quote for ref = " + ref + " with value obtained from BibleGet service:");
console.log(data);
|