run setup on js load

This commit is contained in:
Sebastian Hugentobler 2023-02-23 14:07:36 +01:00
parent e2831d7c6b
commit 7e95a338de
Signed by: shu
GPG Key ID: BB32CF3CA052C2F0
2 changed files with 3 additions and 1 deletions

View File

@ -4,7 +4,7 @@
<meta charset="utf-8" />
<title>Woweb Playground</title>
</head>
<body onload="setup()">
<body>
<textarea id="doctext" name="story" rows="5" cols="33">Things just happen, what the hell.</textarea>
<script src="/index.js"></script>
</body>

View File

@ -71,3 +71,5 @@ function onInput(event) {
console.log(selectionEnd);
console.log(event.data);
}
setup();