Template:ToggleWidth: Difference between revisions

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

Latest revision as of 22:33, 11 July 2023