index.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 Demo creating a button via JOB and fetch Example.json</title>
  7. <link href="bulma.min.css" rel="stylesheet">
  8. <script src="BrowserFetch1.js"></script>
  9. <style>
  10. .source {
  11. /* width: 730px; */
  12. margin: -45px auto;
  13. font-size: 0.9em;
  14. }
  15. .source-inner {
  16. display: flex;
  17. justify-content: space-between;
  18. align-items: center;
  19. /* width: 482px; */
  20. }
  21. </style>
  22. </head>
  23. <body>
  24. <div class="section py-4">
  25. <h1 class="title is-3">Test Area</h1>
  26. <div class="box" id="playground">Playground</div>
  27. </div>
  28. <div class="section py-4">
  29. <h1 class="title is-3">Console output</h1>
  30. <div class="box" id="pasjsconsole"></div>
  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="BrowserFetch1.lpr">Pas2JS Program</a></p>
  39. <p>Webassembly Sources: &nbsp; <a target="new" href="WasiFetch1.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>