Widget:ToggleWidth: Difference between revisions

From The Midnight Wiki
No edit summary
No edit summary
Line 1: Line 1:
<noinclude>
<noinclude>
{{#widget:ToggleWidth}}
 
</noinclude>
</noinclude>


Line 7: Line 7:
function myFunction() {
function myFunction() {
   var x = document.getElementsByClassName("ts-inner");
   var x = document.getElementsByClassName("ts-inner");
   if (x.style.max-width === "none") {
   if (x.style.maxWidth === "none") {
     x.style.max-width = "115em !important";
     x.style.maxWidth = "115em !important";
   } else {
   } else {
     x.style.max-width = "none !important";
     x.style.maxWidth = "none !important";
   }
   }
}
}

Revision as of 13:35, 5 July 2023