index.html 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
  6. <title>Live Coding Space 0.2</title>
  7. <script type="text/javascript" src="/lib/page.js"></script>
  8. <script type="text/javascript" src="/lib/yamljs/dist/yaml.js"></script>
  9. <script type="text/javascript" src="/lib/compatibilitycheck.js"></script>
  10. <script type="text/javascript" src="/lib/socket.io/socket.io.js"></script>
  11. <!-- <script type="text/javascript" src="socket.io-sessionid-patch.js"></script> -->
  12. <script src="/vwf/view/webrtc/adapter-latest.js"></script>
  13. <script src="/lib/gundb/gun.js"></script>
  14. <script src="/lib/gundb/sea.js"></script>
  15. <script src="/lib/gundb/lib/then.js"></script>
  16. <script src="/lib/gundb/lib/path.js"></script>
  17. <script src="/lib/gundb/lib/not.js"></script>
  18. <script src="/lib/gundb/lib/open.js"></script>
  19. <script src="/lib/gundb/lib/load.js"></script>
  20. <!-- <script src="/gun/as.js"></script>
  21. <script src="/gun/nts.js"></script> -->
  22. <script type="text/javascript" src="/lib/cell.js"></script>
  23. <script type="text/javascript" src="/lib/he.js"></script>
  24. <script type="text/javascript" src="/lib/draggabilly.pkgd.js"></script>
  25. <script type="text/javascript" src="/lib/screenfull/screenfull.min.js"></script>
  26. <link href="/lib/noty/noty.css" rel="stylesheet">
  27. <link href="/lib/noty/themes/mint.css" rel="stylesheet">
  28. <script type="text/javascript" src="/lib/noty/noty.js"></script>
  29. <script type="text/javascript" src="/lib/polyglot/polyglot.min.js"></script>
  30. <!-- <script type="text/javascript" src="/vwf/view/lib/polyglot/language.js"></script> -->
  31. <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet">
  32. <link rel="stylesheet" href="/lib/mdc/dist/material-components-web.css">
  33. <script src="/lib/mdc/dist/material-components-web.js"></script>
  34. <!-- <link rel="stylesheet" href="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.css">
  35. <script src="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.js"></script> -->
  36. <script type="text/javascript" src="/lib/async/async.min.js"></script>
  37. <script type="text/javascript" src="/lib/require.js"></script>
  38. <script type="text/javascript" src="/lib/crypto.js"></script>
  39. <script type="text/javascript" src="/lib/md5.js"></script>
  40. <script type="text/javascript" src="/lib/alea.js"></script>
  41. <script type="text/javascript" src="/lib/mash.js"></script>
  42. <script type="text/javascript" src="/lib/ace/ace.js"></script>
  43. <script type="text/javascript" src="/vwf.js"></script>
  44. <link rel="stylesheet" type="text/css" href="/lib/index.css" />
  45. <script type="module">
  46. import { App } from '/app.js';
  47. window.onload = new App;
  48. </script>
  49. </head>
  50. <body class="mdc-typography">
  51. <div id="load-progressbar" role="progressbar" class="mdc-linear-progress mdc-linear-progress--indeterminate loader visible">
  52. <div class="mdc-linear-progress__buffering-dots"></div>
  53. <div class="mdc-linear-progress__buffer"></div>
  54. <div class="mdc-linear-progress__bar mdc-linear-progress__primary-bar">
  55. <span class="mdc-linear-progress__bar-inner"></span>
  56. </div>
  57. <div class="mdc-linear-progress__bar mdc-linear-progress__secondary-bar">
  58. <span class="mdc-linear-progress__bar-inner"></span>
  59. </div>
  60. </div>
  61. <div id="incompatibleBrowser">
  62. <div>
  63. <span style="color:#3090C7;">
  64. <br/>
  65. <br/>Your browser does not support this app</span>
  66. </div>
  67. </div>
  68. <div id="vwf-root"></div>
  69. <div id="ui-controls" class="guiwindow">
  70. <i id="hideui" class="mdc-icon-toggle material-icons" role="button" aria-pressed="true" aria-label="Hide Toollbar" tabindex="0"
  71. data-toggle-on='{"label": "Hide", "content": "grid_on"}' data-toggle-off='{"label": "Show", "content": "grid_off"}'>
  72. grid_on
  73. </i>
  74. <i id="fullscreenui" class="mdc-icon-toggle material-icons" role="button" aria-pressed="true" aria-label="Hide Toollbar"
  75. tabindex="0" data-toggle-on='{"label": "Hide", "content": "fullscreen"}' data-toggle-off='{"label": "Show", "content": "fullscreen_exit"}'>
  76. fullscreen
  77. </i>
  78. </div>
  79. <script>
  80. mdc.autoInit();
  81. window.addEventListener("load", function (event) {
  82. console.log("All resources finished loading!");
  83. });
  84. const iconEl = document.querySelector('#hideui');
  85. iconEl.addEventListener('MDCIconToggle:change', (e) => {
  86. let ui = document.querySelector('.mdc-toolbar');
  87. if (ui) {
  88. let chkAttr = e.detail.isOn;
  89. if (chkAttr) {
  90. ui.style.visibility = 'visible'
  91. } else {
  92. ui.style.visibility = 'hidden'
  93. }
  94. }
  95. });
  96. const fullScreenToggle = document.querySelector('#fullscreenui');
  97. fullScreenToggle.addEventListener('MDCIconToggle:change', (e) => {
  98. if (screenfull.enabled) {
  99. screenfull.toggle();
  100. } else {
  101. // Ignore or do something else
  102. }
  103. });
  104. </script>
  105. </body>
  106. </html>