No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<button onclick="myFunction()">Try it</button> | <button onclick="myFunction()">Try it</button> | ||
<script> | <script> | ||
| Line 12: | Line 10: | ||
} | } | ||
</script> | </script> | ||
Revision as of 12:22, 5 July 2023
<button onclick="myFunction()">Try it</button> <script> function myFunction() {
var x = document.getElementsByClassName("ts-inner");
if (x.style.maxWidth === "none") {
x.style.maxWidth = "115em !important";
} else {
x.style.maxWidth = "none !important";
}
} </script>