index.html 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta http-equiv="Content-type" content="text/html; charset=utf-8">
  5. <title>Project1</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <link rel="stylesheet" type="text/css" href="bulma.min.css">
  8. <link rel="stylesheet" type="text/css" href="zfsstyles.css">
  9. <script src="browser.min.js"></script>
  10. <script src="browser.dom.js"></script>
  11. <script src="treedemo.js"></script>
  12. </head>
  13. <body>
  14. <div class="box">
  15. <p class="title is-3">ZenFS demo</p>
  16. <p>This page demonstrates a utilty for the <a href="ZenFS">ZenFS Api</a>, a browser filesystem simulation.</p>
  17. <p>The backend is using local storage. This means that the files do not actually exist on disk, but their
  18. contents are saved across page loads in the browser local storage.</p>
  19. <p>
  20. You can use the utility to construct a file tree of the ZenFS filesystem. At the same time, you can
  21. use the helper routines to create a download link and to download the (virtual) files from browser to disk.
  22. You can use the "Reset" button to clear the filesystem and re-populate it.
  23. </p>
  24. </div> <!-- .box -->
  25. <div class="box columns" style="min-height: 400px;">
  26. <div class="column">
  27. <div id="treeFiles" style="min-height: 300px;">
  28. </div>
  29. <div>
  30. <button class="button is-small" id="btnReset">Reset</button>
  31. </div>
  32. <div class="field is-horizontal">
  33. <div class="field-label is-normal">
  34. <label class="label">File</label>
  35. </div>
  36. <div class="field-body">
  37. <div class="field has-addons">
  38. <div class="control">
  39. <input id="edtFilename" type="text" class="input is-link" placeholder="Type filename or select file in tree">
  40. </div>
  41. <div class="control">
  42. <button class="button" id="btnDownload">Download</button>
  43. </div> <!-- .control -->
  44. </div> <!-- .field.has-addons -->
  45. </div> <!-- .field-body -->
  46. </div> <!-- field-body -->
  47. <div id="divDownloads">
  48. </div>
  49. </div>
  50. <div class="column">
  51. <p class="title is-5">Program output</p>
  52. <div id="pasjsconsole"></div>
  53. </div>
  54. </div> <!-- .box .columns -->
  55. <footer class="footer">
  56. <div class="content has-text-centered">
  57. <p>
  58. Created using &nbsp; <a target="_blank" href="https://wiki.freepascal.org/pas2js">pas2js.</a>
  59. &nbsp;&nbsp;Sources: &nbsp; <a target="new" href="treedemo.lpr">Program</a>
  60. </p>
  61. </div>
  62. </footer>
  63. <script>
  64. rtl.run();
  65. </script>
  66. </body>
  67. </html>