index.html 1.1 KB

12345678910111213141516171819202122232425262728
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>JS *&gt;&lt;&gt;</title>
  5. <link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet">
  6. <script src="starfish.js"></script>
  7. </head>
  8. <body class="p-8">
  9. <div class="grid grid-cols-3 gap-10">
  10. <div class="col-span-3">
  11. <input type="text" id="stackInit" class="inline-block w-full p-2 border border-black rounded-sm" placeholder="Initial Stack" />
  12. </div>
  13. <div>
  14. <textarea id="script" class="w-full border border-black" rows="20" placeholder="11+n;"></textarea>
  15. </div>
  16. <div class="flex justify-center items-center">
  17. <button class="p-4 border border-black bg-blue-300 rounded" onclick="engine.Run()">Run</button>
  18. </div>
  19. <div>
  20. <textarea id="output" class="w-full border border-black" rows="20"></textarea>
  21. </div>
  22. </div>
  23. <!-- <canvas class="w-full h-full"></canvas> -->
  24. <script>
  25. const cb = new CodeBox("script", "output", "stackInit");
  26. </script>
  27. </body>
  28. </html>