index.html 4.2 KB

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