Widget:ToggleWidth

From The Midnight Wiki
Revision as of 12:22, 5 July 2023 by Timothy (talk | contribs)

<button onclick="myFunction()">Try it</button> <script> function myFunction() {

 var x = document.getElementsByClassName("ts-inner");
 if (x.style.maxWidth === "none") {
   x.style.maxWidth = "115em !important";
 } else {
   x.style.maxWidth = "none !important";
 }

} </script>