MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 66: Line 66:


function customPrint() {
function customPrint() {
console.log("you clicked the id print-button");
window.print();
window.print();
}
}
Line 127: Line 126:
   var a = "drawer-button-"+x; //outputs something like "drawer-button-1"
   var a = "drawer-button-"+x; //outputs something like "drawer-button-1"
   var b = document.getElementById(a); //outputs something like document.getElementById("drawer-button-1")
   var b = document.getElementById(a); //outputs something like document.getElementById("drawer-button-1")
   if (z.style.display === "block") {
   if (z.style.display == "block") {
     z.style.display = "none";
     z.style.display = "none";
b.innerHTML = "Expand";
b.innerHTML = "Expand";