Template:ToggleWidth: Difference between revisions

Template page
No edit summary
No edit summary
Line 5: Line 5:
   var x = document.getElementsByClassName("ts-inner");
   var x = document.getElementsByClassName("ts-inner");
   if (x[0].style.maxWidth === "none") {
   if (x[0].style.maxWidth === "none") {
     x[0].style.maxWidth = "115em !important";
     x[0].style.maxWidth = "115em";
   } else {
   } else {
     x[0].style.maxWidth = "none !important";
     x[0].style.maxWidth = "none";
   }
   }
}
}
</script>
</script>
</html>
</html>

Revision as of 14:18, 5 July 2023