|
@@ -11,10 +11,10 @@
|
|
<input type="text" id="stackInit" class="inline-block w-full p-2 border border-black rounded-sm" placeholder="Initial Stack" />
|
|
<input type="text" id="stackInit" class="inline-block w-full p-2 border border-black rounded-sm" placeholder="Initial Stack" />
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
- <textarea id="script" class="w-full border border-black" rows="20" placeholder="11+n;"></textarea>
|
|
|
|
|
|
+ <textarea id="script" class="w-full border border-black" rows="20" placeholder="11+n;">11+n;</textarea>
|
|
</div>
|
|
</div>
|
|
<div class="flex justify-center items-center">
|
|
<div class="flex justify-center items-center">
|
|
- <button class="p-4 border border-black bg-blue-300 rounded" onclick="engine.Run()">Run</button>
|
|
|
|
|
|
+ <button class="p-4 border border-black bg-blue-300 rounded" onclick="cb.ParseCodeBox()">Run</button>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
<textarea id="output" class="w-full border border-black" rows="20"></textarea>
|
|
<textarea id="output" class="w-full border border-black" rows="20"></textarea>
|
|
@@ -22,7 +22,7 @@
|
|
</div>
|
|
</div>
|
|
<!-- <canvas class="w-full h-full"></canvas> -->
|
|
<!-- <canvas class="w-full h-full"></canvas> -->
|
|
<script>
|
|
<script>
|
|
- const cb = new CodeBox("script", "output", "stackInit");
|
|
|
|
|
|
+ const cb = new CodeBox("script", "stackInit", "output");
|
|
</script>
|
|
</script>
|
|
</body>
|
|
</body>
|
|
</html>
|
|
</html>
|