index.html 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width,initial-scale=1.0">
  7. <link rel="icon" href="<%= BASE_URL %>favicon.png">
  8. <title>祝融工地塔吊吊钩三维定位系统</title>
  9. <style>#loading-mask{position:fixed;left:0;top:0;height:100%;width:100%;background:#fff;user-select:none;z-index:9999;overflow:hidden}.loading-wrapper{position:absolute;top:50%;left:50%;transform:translate(-50%,-100%)}.loading-dot{animation:antRotate 1.2s infinite linear;transform:rotate(45deg);position:relative;display:inline-block;font-size:64px;width:64px;height:64px;box-sizing:border-box}.loading-dot i{width:22px;height:22px;position:absolute;display:block;background-color:#1890ff;border-radius:100%;transform:scale(.75);transform-origin:50% 50%;opacity:.3;animation:antSpinMove 1s infinite linear alternate}.loading-dot i:nth-child(1){top:0;left:0}.loading-dot i:nth-child(2){top:0;right:0;-webkit-animation-delay:.4s;animation-delay:.4s}.loading-dot i:nth-child(3){right:0;bottom:0;-webkit-animation-delay:.8s;animation-delay:.8s}.loading-dot i:nth-child(4){bottom:0;left:0;-webkit-animation-delay:1.2s;animation-delay:1.2s}@keyframes antRotate{to{-webkit-transform:rotate(405deg);transform:rotate(405deg)}}@-webkit-keyframes antRotate{to{-webkit-transform:rotate(405deg);transform:rotate(405deg)}}@keyframes antSpinMove{to{opacity:1}}@-webkit-keyframes antSpinMove{to{opacity:1}}</style>
  10. </head>
  11. <body>
  12. <noscript>
  13. <strong>We're sorry but bin-admin doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
  14. </noscript>
  15. <div id="app">
  16. <div id="loading-mask">
  17. <div class="loading-wrapper">
  18. <span class="loading-dot loading-dot-spin"><i></i><i></i><i></i><i></i></span>
  19. </div>
  20. </div>
  21. </div>
  22. <!-- built files will be auto injected -->
  23. <script id='vShader' type='x-vertex/x-shader'>
  24. uniform float size;
  25. uniform float t;
  26. uniform float z;
  27. uniform float pixelRatio;
  28. varying vec3 vPosition;
  29. varying vec3 mPosition;//modified position
  30. varying float gas;
  31. float a,b=0.;
  32. void main(){
  33. vPosition=position;
  34. a=length(position);
  35. if(t>0.)b=max(0.,(cos(a/20.-t*.02)-.99)*3./a);
  36. if(z>0.)b=max(0.,cos(a/40.-z*.01+2.));
  37. mPosition=position*(1.+b*4.);
  38. vec4 mvPosition=modelViewMatrix*vec4(mPosition,1.);
  39. gl_Position=mvPosition*projectionMatrix;
  40. gas=max(.0,sin(-a/20.));
  41. gl_PointSize=pixelRatio*size*(1.+gas*2.)/length(mvPosition.xyz);
  42. }
  43. </script>
  44. <script id='fShader' type='x-fragment/x-shader'>
  45. uniform float z;
  46. varying vec3 vPosition;
  47. varying vec3 mPosition;
  48. varying float gas;
  49. void main(){
  50. float a=distance(mPosition,vPosition);
  51. if(a>0.)a=1.;
  52. float b=max(.32,.0065*length(vPosition));
  53. float c=distance(gl_PointCoord,vec2(.5));
  54. float starlook=-(c-.5)*1.2*gas;
  55. float gaslook=(1.-gas)/(c*10.);
  56. float texture=starlook+gaslook;
  57. gl_FragColor=vec4(.32,.28,b,1.)*texture*(1.-a*.35);
  58. if(z>0.)gl_FragColor*=cos(1.57*z/322.)*(1.-.001*length(mPosition));
  59. }
  60. </script>
  61. </body>
  62. </html>