index.html 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  6. <title>TinyUSDZ demo using three.js</title>
  7. <style>
  8. * {
  9. margin: 0;
  10. padding: 0;
  11. box-sizing: border-box;
  12. }
  13. canvas {
  14. touch-action: none;
  15. /* 禁用浏览器默认触摸行为 */
  16. }
  17. body {
  18. background-color: #ccc;
  19. }
  20. .loadingBox {
  21. position: absolute;
  22. width: 90%;
  23. max-width: 1200px;
  24. height: 6px;
  25. border-radius: 3px;
  26. border: 1px solid #2dc0ef;
  27. top: 50%;
  28. left: 50%;
  29. transform: translate(-50%, -50%);
  30. opacity: 1;
  31. pointer-events: auto;
  32. transition: all 0.5s;
  33. }
  34. #loading {
  35. position: absolute;
  36. top: 0;
  37. left: 0;
  38. width: 0;
  39. height: 100%;
  40. background-color: #2dc0ef;
  41. }
  42. /* @media screen and (max-width: 1000px) {
  43. .loadingBox {
  44. height: 10px;
  45. border-radius: 5px;
  46. }
  47. } */
  48. </style>
  49. </head>
  50. <body>
  51. <script>
  52. </script>
  53. <div class="loadingBox">
  54. <div id="loading"></div>
  55. </div>
  56. <script type="module" src="./js/main.js"></script>
  57. </body>
  58. <!--
  59. <script>
  60. window.onload = function () {
  61. var script = document.createElement('script')
  62. script.src = 'http://cdn.bootcss.com/eruda/1.5.4/eruda.min.js'
  63. document.body.appendChild(script)
  64. script.onload = function () {
  65. eruda.init()
  66. }
  67. }
  68. </script> -->
  69. </html>