Widget:ToggleWidth

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

<html> <body> <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> </body> </html>