Template:ToggleWidth: Difference between revisions

Template page
No edit summary
Tag: Reverted
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<html>
<html>
<button onclick="myFunction()">Try it</button>
<a id="mylink" href="http://www.google.com">linky</a>
<script>
function myFunction() {
  var x = document.querySelector("#mw-content-container .ts-inner")
  if (x.style.maxWidth === "none") {
    x.style.maxWidth = "115em";
  } else {
    x.style.maxWidth = "none";
  }
}
</script>
</html>
</html>

Latest revision as of 21:33, 11 July 2023