Template:ToggleWidth: Difference between revisions

Template page
No edit summary
No edit summary
Tag: Reverted
Line 3: Line 3:
<script>
<script>
function myFunction() {
function myFunction() {
   var x = document.getElementsByClassName("ts-inner");
   var x = document.querySelector("#mw-content-container .ts-inner")
   if (x[1].style.maxWidth === "none") {
   if (x.style.maxWidth === "none") {
     x[1].style.maxWidth = "115em";
     x.style.maxWidth = "115em";
   } else {
   } else {
     x[1].style.maxWidth = "none";
     x.style.maxWidth = "none";
   }
   }
}
}
</script>
</script>
</html>
</html>

Revision as of 14:22, 5 July 2023