MediaWiki:BibleGet.js: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Creata pagina con "//avoid duplicate bibleQuote divs let bibleQuoteCollection = []; let domCheckInterval = []; let ajaxCount = 0; let BibleQuotesDomElements = []; (function($,mw){ $(document).r..."
 
Nessun oggetto della modifica
Riga 31:
let rect = $bGetTIP[0].getBoundingClientRect();
let excessHeight = (rect.y + rect.height) - window.innerHeight;
let excessWidth = (rect.x + rect.width) - window.innerWidth;
//if this amount is less than the distance from the top of the screen,
// then let's just move our div up by that much
if(!$bGetTIP.hasClass('sticky') && excessHeight < rect.y){
letif(excessHeight newTop> =0 top -&& excessHeight; < rect.y){
$bGetTIP.css({"top": let newTop}) = top - excessHeight;
$bGetTIP.css({"top":newTop});
}
if(excessWidth > 0 && excessWidth < rect.x){
let newLeft = left - excessWidth;
$bGetTIP.css({"left":newLeft});
}
} else {
if(!$bGetTIP.hasClass('sticky')){