Changes

MediaWiki:Common.js

214 bytes added, 21:38, 13 May 2017
no edit summary
window.onscroll = function() {
var header_height = document.getElementById("p-visit").scrollHeight;
 
if (document.getElementById('p-tb') !=null) {
if (window.scrollY + 430 > header_height){
document.getElementById("p-visit").style.position="fixed";
document.getElementById("p-visit").style.top="0px";
}
}
else{
if (window.scrollY + 330 > header_height){
document.getElementById("p-visit").style.position="fixed";
document.getElementById("p-visit").style.top="0px";
}
}
 
else{
document.getElementById("p-visit").style.position="static";