Widget:ToggleWidth: Difference between revisions

From The Midnight Wiki
No edit summary
No edit summary
Line 8: Line 8:
function myFunction() {
function myFunction() {
   var x = document.getElementsByClassName("ts-inner");
   var x = document.getElementsByClassName("ts-inner");
   if (x.style.maxWidth === "none") {
   if (x.style.max-width === "none") {
     x.style.maxWidth = "115em !important";
     x.style.max-width = "115em !important";
   } else {
   } else {
     x.style.maxWidth = "none !important";
     x.style.max-width = "none !important";
   }
   }
}
}
</script>
</script>
</includeonly>
</includeonly>

Revision as of 13:34, 5 July 2023