Difference between revisions of "MediaWiki:Common.js"

no edit summary
Line 3: Line 3:


function scrollFunction() {
function scrollFunction() {
console.log("scrollFunction");
if(document.getElementById("myBtn")!=null){
    if(document.getElementById("myBtn")!=null){
     if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
     if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
       if(document.getElementById("myBtn").style!=null){
       if(document.getElementById("myBtn").style!=null){