Template:ToggleWidth: Difference between revisions

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

Revision as of 14:19, 5 July 2023