Template:ToggleWidth: Difference between revisions

Template page
No edit summary
Tag: Manual revert
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[1].style.maxWidth === "none") {
  for (i in x) {
     x[1].style.maxWidth = "115em";
   if (x[i].style.maxWidth === "none") {
     x[i].style.maxWidth = "115em";
   } else {
   } else {
     x[1].style.maxWidth = "none";
     x[i].style.maxWidth = "none";
   }
   }
}
}
}
</script>
</script>
</html>
</html>

Revision as of 14:31, 5 July 2023