index.html 1.5 KB

1234567891011121314151617181920212223242526272829303132
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>JS *&gt;&lt;&gt;</title>
  5. <meta name="author" content="Apis Necros" />
  6. <meta name="description" content="An interpreter for the starfish esolang written in JavaScript" />
  7. <meta name="keywords" content="*><>,starfish,esolang,esoteric languages,javascript interpreter" />
  8. <meta name="canonical" content="http://starfish.vzqk50.com" />
  9. <link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet">
  10. <script src="starfish.js"></script>
  11. </head>
  12. <body class="p-8 bg-gray-300">
  13. <div class="grid grid-cols-3 gap-10">
  14. <div class="col-span-3">
  15. <input type="text" id="stackInit" class="inline-block w-full p-2 border border-black rounded-sm" placeholder="Initial Stack" />
  16. </div>
  17. <div>
  18. <textarea id="script" class="w-full font-mono border border-black" rows="20" placeholder="11+n;">11+n;</textarea>
  19. </div>
  20. <div class="flex justify-center items-center">
  21. <button class="p-4 border border-black bg-blue-300 rounded" onclick="cb.ParseCodeBox()">Run</button>
  22. </div>
  23. <div>
  24. <textarea id="output" class="w-full bg-white font-mono border border-black" rows="20" disabled></textarea>
  25. </div>
  26. </div>
  27. <!-- <canvas class="w-full h-full"></canvas> -->
  28. <script>
  29. const cb = new CodeBox("script", "stackInit", "output");
  30. </script>
  31. </body>
  32. </html>