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