MediaWiki:BibleGet.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 19:
$bGetTIP = $("div[data-version='"+version+"'][data-ref='"+ref+"']");
console.log('I found ' + $bGetTIP.length + ' div(s) at the bottom of the page with this bible quote');
$bGetTIP.showremoveClass('hidden');
let top = $span.offset().top;
let left = $span.offset().left + $span.outerWidth() + 15;
Line 36:
$bGetTIP = $("div[data-version='"+version+"'][data-ref='"+ref+"']");
//console.log('I found ' + $bGetTIP.length + ' div(s) at the bottom of the page with this bible quote');
setTimeout(function(){ $bGetTIP.fadeOutaddClass('slowhidden'); },500);
});
} else {
Line 52:
if(data.hasOwnProperty('html')){
let $bGetTIP = $('<div>', {
"class": "bibleGetQuote hidden",
"data-version": version,
"data-ref": ref,
Line 61:
$span.on('mouseenter', function(){
$bGetTIP.showremoveClass('hidden');
let top = $span.offset().top;
let left = $span.offset().left + $span.outerWidth() + 15;
Line 76:
$span.on('mouseleave', function(){
setTimeout(function(){ $bGetTIP.fadeOutaddClass('slowhidden'); },500);
});
}