No edit summary |
No edit summary |
||
(16 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | |||
{{#widget:ToggleWidth}} | |||
</noinclude> | |||
<includeonly> | |||
<html> | <html> | ||
<button onclick="myFunction()">Try it</button> | <button onclick="myFunction()">Try it</button> | ||
<script> | <script> | ||
function myFunction() { | function myFunction() { | ||
var x = document. | var x = document.getElementsByClassName("ts-inner"); | ||
if (x.style. | for (i in x) { | ||
x.style. | if (x[i].style.maxWidth === "none") { | ||
x[i].style.maxWidth = "115em"; | |||
} else { | } else { | ||
x.style. | x[i].style.maxWidth = "none"; | ||
} | } | ||
} | |||
} | } | ||
</script> | </script> | ||
</html> | </html> | ||
</includeonly> |
Latest revision as of 14:31, 5 July 2023