<head>
<!-- SPDX-License-Identifier: CC0-1.0 -->
<title>Bedstead editor test</title>
- <script type="module">
+ <script type="module"><![CDATA[
import Bedstead from './bedstead.js';
document.getElementById("run").onclick = function(){
Bedstead({
arguments: document.getElementById("input").value.split(" "),
+ print: function(text) {
+ document.getElementById("output").textContent = text;
+ }
});
};
+ ]]>
</script>
</head>
<body>
<input type="text" id="input"/>
<input type="button" id="run" value="Run!"/>
</form>
+ <p><code id="output"></code></p>
</body>
</html>