MediaWiki:Mobile.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 22: Line 22:
     }
     }
   }
   }
}
function toggleListTable() {
  var x = document.getElementById("all-texts-table");
  if (x.style.display === "none") {
      x.style.display = "block";
    } else {
      x.style.display = "none";
    }
  var y = document.getElementById("all-texts-list");
  if (y.style.display === "block") {
      y.style.display = "none";
    } else {
      y.style.display = "block";
    }
}
}