index.html 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  11. <title>Live Coding Space 0.2</title>
  12. <!-- <script type="text/javascript" src="/lib/page.js"></script> -->
  13. <script type="text/javascript" src="/lib/loadjs/loadjs.js"></script>
  14. <script type="text/javascript" src="/loadLibs.js"></script>
  15. <link href="/lib/noty/noty.css" rel="stylesheet">
  16. <link href="/lib/noty/themes/mint.css" rel="stylesheet">
  17. <link href="/lib/treeview/treeview.min.css" rel="stylesheet">
  18. <!-- <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet"> -->
  19. <link rel="stylesheet" href="/lib/mdc/dist/material-components-web.min.css">
  20. <link rel="stylesheet" type="text/css" href="/vwf/model/aframe/addon/virtualgc/virtual-gamepad-controls.css" />
  21. <link rel="stylesheet" type="text/css" href="/lib/index.css" />
  22. <script type="text/javascript" src="/lib/closure/base.js"></script>
  23. <script type="text/javascript">goog.require('goog.vec.Vec2')</script>
  24. <script type="text/javascript">goog.require('goog.vec.Mat4')</script>
  25. <script type="text/javascript">goog.require('goog.vec.Quaternion')</script>
  26. </head>
  27. <body class="mdc-typography">
  28. <div id="load-progressbar" role="progressbar"
  29. class="mdc-linear-progress mdc-linear-progress--indeterminate loader visible">
  30. <div class="mdc-linear-progress__buffering-dots"></div>
  31. <div class="mdc-linear-progress__buffer"></div>
  32. <div class="mdc-linear-progress__bar mdc-linear-progress__primary-bar">
  33. <span class="mdc-linear-progress__bar-inner"></span>
  34. </div>
  35. <div class="mdc-linear-progress__bar mdc-linear-progress__secondary-bar">
  36. <span class="mdc-linear-progress__bar-inner"></span>
  37. </div>
  38. </div>
  39. <div id="incompatibleBrowser">
  40. <div>
  41. <span style="color:#3090C7;">
  42. <br />
  43. <br />Your browser does not support this app</span>
  44. </div>
  45. </div>
  46. <div id="vwf-root"></div>
  47. <div id="ui-controls" class="guiwindow">
  48. <i id="hideui" class="mdc-icon-button material-icons" role="button" aria-pressed="true"
  49. aria-label="Hide Toollbar" tabindex="0" data-toggle-on='{"label": "Hide", "content": "grid_on"}'
  50. data-toggle-off='{"label": "Show", "content": "grid_off"}'>
  51. grid_on
  52. </i>
  53. <i id="fullscreenui" class="mdc-icon-button material-icons" role="button" aria-pressed="true"
  54. aria-label="Hide Toollbar" tabindex="0" data-toggle-on='{"label": "Hide", "content": "fullscreen"}'
  55. data-toggle-off='{"label": "Show", "content": "fullscreen_exit"}'>
  56. fullscreen
  57. </i>
  58. </div>
  59. <script>
  60. window.addEventListener("load", function (event) {
  61. console.log("All resources finished loading!");
  62. const iconEl = document.querySelector('#hideui');
  63. const compHideUI = new mdc.iconButton.MDCIconButtonToggle(iconEl);
  64. iconEl.addEventListener('MDCIconButtonToggle:change', (e) => {
  65. let ui = document.querySelector('.mdc-top-app-bar');
  66. if (ui) {
  67. let chkAttr = e.detail.isOn;
  68. if (chkAttr) {
  69. ui.style.visibility = 'visible'
  70. } else {
  71. ui.style.visibility = 'hidden'
  72. }
  73. }
  74. });
  75. const fullScreenToggle = document.querySelector('#fullscreenui');
  76. const compfullScreen = new mdc.iconButton.MDCIconButtonToggle(fullScreenToggle);
  77. fullScreenToggle.addEventListener('MDCIconButtonToggle:change', (e) => {
  78. if (screenfull.enabled) {
  79. screenfull.toggle();
  80. } else {
  81. // Ignore or do something else
  82. }
  83. });
  84. });
  85. </script>
  86. </body>
  87. </html>