Difference between revisions of "MediaWiki:Common.js"

no edit summary
(Created page with "→‎Il codice JavaScript inserito qui viene caricato da ciascuna pagina, per tutti gli utenti.: window.onscroll = function() {scrollFunction()}; function scrollFunction() { if(document.getElementById("myBtn")!=null){ if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) { if(document.getElementById("myBtn").style!=null){ document.getElementById("myBtn").style.display = "block"; } } else { if(document.getEleme...")
 
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) {