index.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 Filesystem Demo</title>
  7. <link href="bulma.min.css" rel="stylesheet">
  8. <script src="browser.min.js"></script>
  9. <script src="browser.dom.js"></script>
  10. <script src="filesystemhost.js"></script>
  11. <style>
  12. </style>
  13. </head>
  14. <body>
  15. <div class="section pb-4">
  16. <h1 class="title is-3">Webassembly filesystem support demo</h1>
  17. <p>This demo demonstrates a webassembly program creating a directory and a file (if they do not exist yet) and read data from that file.</p>
  18. <p>The filesystem is provided in the browser using <a href="https://zen-fs.github.io/">ZenFS</a>, the successor of BrowserFS.</p>
  19. <p class="pb-2">The Pascal I/O and the WASI API are synchronous, so only a synchronous filesystem can be used.</p>
  20. <h1 class="title is-5">Webassembly console output:</h1>
  21. <div class="box" id="pasjsconsole"></div>
  22. </div>
  23. <!-- <hr> -->
  24. <div class="section">
  25. <div class="source">
  26. <div class="source-inner">
  27. <div>
  28. <p>Created using &nbsp; <a target="_blank" href="https://wiki.freepascal.org/pas2js">pas2js.</a> </p>
  29. <p>Pas2JS Sources: &nbsp; <a target="new" href="filesystemhost.lpr">Pas2JS loader Program</a></p>
  30. <p>Webassembly Sources: &nbsp; <a target="new" href="fsdemo.pp">fsdemo.lpr</a></p>
  31. </div>
  32. </div>
  33. </div>
  34. </div>
  35. <script>
  36. rtl.showUncaughtExceptions=true;
  37. rtl.run();
  38. </script>
  39. </body>
  40. </html>