Widget:ToggleWidth: Difference between revisions

From The Midnight Wiki
No edit summary
No edit summary
Line 5: Line 5:
<includeonly>
<includeonly>
<script>
<script>
function myFunction() {
function changeWidth() {
   var x = document.getElementsByClassName("ts-inner");
   var x = document.getElementsByClassName("ts-inner");
   if (x.style.maxWidth === "none") {
   if (x.style.maxWidth === "none") {
Line 14: Line 14:
}
}
</script>
</script>
<button onclick="myFunction()">Try it</button>
<button onclick="ChangeWidth()">Try it</button>
</includeonly>
</includeonly>

Revision as of 13:36, 5 July 2023