MediaWiki:BibleGet.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 40: Line 40:
//distance of the top of the current window from the top of the document
//distance of the top of the current window from the top of the document
let newTop = (window.pageYOffset || (document.documentElement || document.body.parentNode || document.body).scrollTop) + 20;
let newTop = (window.pageYOffset || (document.documentElement || document.body.parentNode || document.body).scrollTop) + 20;
$bGetTIP.css({"top":newTop,"height":"90vh","overflow-y":"auto"});
$bGetTIP.css({"top":newTop});
$bGetTIP.append('<div>',{class:'closeButton'});
}
}
}
}
Line 106: Line 107:
//distance of the top of the current window from the top of the document
//distance of the top of the current window from the top of the document
let newTop = (window.pageYOffset || (document.documentElement || document.body.parentNode || document.body).scrollTop) + 20;
let newTop = (window.pageYOffset || (document.documentElement || document.body.parentNode || document.body).scrollTop) + 20;
$bGetTIP.css({"top":newTop,"height":"90vh","overflow-y":"auto"});
$bGetTIP.css({"top":newTop});
$bGetTIP.append('<div>',{class:'closeButton'});
}
}
}
}