Template:ToggleWidth: Difference between revisions

Template page
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
Line 21: Line 21:
function myFunction() {
function myFunction() {
   var x = document.getElementByClassName("ts-inner");
   var x = document.getElementByClassName("ts-inner");
   if (x.style.max-width === "115em") {
   if (x.style.max-width === "none") {
    x.style.max-width = "115em";
  } else {
     x.style.max-width = "none";
     x.style.max-width = "none";
  } else {
    x.style.max-width = "115em";
   }
   }
}
}

Revision as of 17:59, 23 June 2023