index.html 5.5 KB

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