index.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta http-equiv="Content-type" content="text/html; charset=utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <title>FPC-Webassembly and Pas2JS Demo</title>
  7. <link href="bulma.min.css" rel="stylesheet">
  8. <!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css"> -->
  9. <script src="demothreads.js"></script>
  10. <style>
  11. .source {
  12. /* width: 730px; */
  13. margin: -45px auto;
  14. font-size: 0.9em;
  15. }
  16. .source-inner {
  17. display: flex;
  18. justify-content: space-between;
  19. align-items: center;
  20. /* width: 482px; */
  21. }
  22. </style>
  23. </head>
  24. <body>
  25. <div class="section pb-4">
  26. <h1 class="title is-4">FPC compiled Browser Host/Webassembly programs console output:</h1>
  27. <div class="box" id="pasjsconsole"></div>
  28. </div>
  29. <div class="section pb-4">
  30. <button id="btnStart" class="button is-primary" disabled>Start program</button>
  31. </div>
  32. <!-- <hr> -->
  33. <div class="section">
  34. <div class="source">
  35. <div class="source-inner">
  36. <div>
  37. <p>Created using &nbsp; <a target="_blank" href="https://wiki.freepascal.org/pas2js">pas2js.</a> </p>
  38. <p>Pas2JS Sources: &nbsp; <a target="new" href="demothreads.lpr">Pas2JS Program</a></p>
  39. <p>Webassembly Sources: &nbsp; <a target="new" href="threadapp.lpr">FPC Program</a></p>
  40. </div>
  41. </div>
  42. </div>
  43. </div>
  44. <script>
  45. rtl.showUncaughtExceptions=true;
  46. rtl.run();
  47. </script>
  48. </body>
  49. </html>