Template:ToggleWidth: Difference between revisions

Template page
No edit summary
No edit summary
Line 6: Line 6:
   var x = document.getElementsByClassName("ts-inner");
   var x = document.getElementsByClassName("ts-inner");
   if (x.style.maxWidth === "none") {
   if (x.style.maxWidth === "none") {
     x.style.maxWidth = "115em";
     x.style.maxWidth = "115em !important";
   } else {
   } else {
     x.style.maxWidth = "none";
     x.style.maxWidth = "none !important";
   }
   }
}
}

Revision as of 12:21, 5 July 2023