Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
(Added potential BackToTop visibility function) |
m |
||
Line 3: | Line 3: | ||
const backToTop = document.getElementById("BackToTop"); | const backToTop = document.getElementById("BackToTop"); | ||
if(backToTop) { | if(backToTop) { | ||
− | backToTop.addEventListener("wheel", | + | backToTop.addEventListener("wheel", function() { |
console.log(backToTop); | console.log(backToTop); | ||
}); | }); | ||
} | } |
Revision as of 23:35, 28 August 2020
/* Any JavaScript here will be loaded for all users on every page load. */
const backToTop = document.getElementById("BackToTop");
if(backToTop) {
backToTop.addEventListener("wheel", function() {
console.log(backToTop);
});
}