MediaWiki:BibleGet.js: Difference between revisions
no edit summary
Johnrdorazio (talk | contribs) No edit summary |
Johnrdorazio (talk | contribs) 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, | $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, | $bGetTIP.css({"top":newTop}); | ||
$bGetTIP.append('<div>',{class:'closeButton'}); | |||
} | } | ||
} | } |