Difference between revisions of "MediaWiki:Common.js"
From SomLabs Wiki
Line 3: | Line 3: | ||
document.onscroll = function(){ | document.onscroll = function(){ | ||
− | var element = document. | + | var element = document.getElementById("nxppartner")[0]; |
if (document.body.scrollTop > 20) | if (document.body.scrollTop > 20) |
Revision as of 19:48, 16 October 2022
/* Any JavaScript here will be loaded for all users on every page load. */
document.onscroll = function(){
var element = document.getElementById("nxppartner")[0];
if (document.body.scrollTop > 20)
element.classList.add("slideout");
else
element.classList.remove("slideout");
};