index.html 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  6. <meta name="renderer" content="webkit">
  7. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  8. <link rel="icon" href="<%= BASE_URL %>favicon.ico">
  9. <title><%= webpackConfig.name %></title>
  10. <!--[if lt IE 11]><script>window.location.href='/html/ie.html';</script><![endif]-->
  11. <style>
  12. html,
  13. body,
  14. #app {
  15. height: 100%;
  16. margin: 0px;
  17. padding: 0px;
  18. -webkit-text-size-adjust: 100% !important;
  19. -moz-text-size-adjust: 100% !important;
  20. text-size-adjust: 100% !important;
  21. }
  22. .chromeframe {
  23. margin: 0.2em 0;
  24. background: #ccc;
  25. color: #000;
  26. padding: 0.2em 0;
  27. }
  28. #loader-wrapper {
  29. position: fixed;
  30. top: 0;
  31. left: 0;
  32. width: 100%;
  33. height: 100%;
  34. z-index: 999999;
  35. }
  36. #loader {
  37. display: block;
  38. position: relative;
  39. left: 50%;
  40. top: 50%;
  41. width: 150px;
  42. height: 150px;
  43. margin: -75px 0 0 -75px;
  44. border-radius: 50%;
  45. border: 3px solid transparent;
  46. border-top-color: #FFF;
  47. -webkit-animation: spin 2s linear infinite;
  48. -ms-animation: spin 2s linear infinite;
  49. -moz-animation: spin 2s linear infinite;
  50. -o-animation: spin 2s linear infinite;
  51. animation: spin 2s linear infinite;
  52. z-index: 1001;
  53. }
  54. #loader:before {
  55. content: "";
  56. position: absolute;
  57. top: 5px;
  58. left: 5px;
  59. right: 5px;
  60. bottom: 5px;
  61. border-radius: 50%;
  62. border: 3px solid transparent;
  63. border-top-color: #FFF;
  64. -webkit-animation: spin 3s linear infinite;
  65. -moz-animation: spin 3s linear infinite;
  66. -o-animation: spin 3s linear infinite;
  67. -ms-animation: spin 3s linear infinite;
  68. animation: spin 3s linear infinite;
  69. }
  70. #loader:after {
  71. content: "";
  72. position: absolute;
  73. top: 15px;
  74. left: 15px;
  75. right: 15px;
  76. bottom: 15px;
  77. border-radius: 50%;
  78. border: 3px solid transparent;
  79. border-top-color: #FFF;
  80. -moz-animation: spin 1.5s linear infinite;
  81. -o-animation: spin 1.5s linear infinite;
  82. -ms-animation: spin 1.5s linear infinite;
  83. -webkit-animation: spin 1.5s linear infinite;
  84. animation: spin 1.5s linear infinite;
  85. }
  86. @-webkit-keyframes spin {
  87. 0% {
  88. -webkit-transform: rotate(0deg);
  89. -ms-transform: rotate(0deg);
  90. transform: rotate(0deg);
  91. }
  92. 100% {
  93. -webkit-transform: rotate(360deg);
  94. -ms-transform: rotate(360deg);
  95. transform: rotate(360deg);
  96. }
  97. }
  98. @keyframes spin {
  99. 0% {
  100. -webkit-transform: rotate(0deg);
  101. -ms-transform: rotate(0deg);
  102. transform: rotate(0deg);
  103. }
  104. 100% {
  105. -webkit-transform: rotate(360deg);
  106. -ms-transform: rotate(360deg);
  107. transform: rotate(360deg);
  108. }
  109. }
  110. #loader-wrapper .loader-section {
  111. position: fixed;
  112. top: 0;
  113. width: 51%;
  114. height: 100%;
  115. background: #85a1af;
  116. z-index: 1000;
  117. -webkit-transform: translateX(0);
  118. -ms-transform: translateX(0);
  119. transform: translateX(0);
  120. }
  121. #loader-wrapper .loader-section.section-left {
  122. left: 0;
  123. }
  124. #loader-wrapper .loader-section.section-right {
  125. right: 0;
  126. }
  127. .loaded #loader-wrapper .loader-section.section-left {
  128. -webkit-transform: translateX(-100%);
  129. -ms-transform: translateX(-100%);
  130. transform: translateX(-100%);
  131. -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
  132. transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
  133. }
  134. .loaded #loader-wrapper .loader-section.section-right {
  135. -webkit-transform: translateX(100%);
  136. -ms-transform: translateX(100%);
  137. transform: translateX(100%);
  138. -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
  139. transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
  140. }
  141. .loaded #loader {
  142. opacity: 0;
  143. -webkit-transition: all 0.3s ease-out;
  144. transition: all 0.3s ease-out;
  145. }
  146. .loaded #loader-wrapper {
  147. visibility: hidden;
  148. -webkit-transform: translateY(-100%);
  149. -ms-transform: translateY(-100%);
  150. transform: translateY(-100%);
  151. -webkit-transition: all 0.3s 1s ease-out;
  152. transition: all 0.3s 1s ease-out;
  153. }
  154. .no-js #loader-wrapper {
  155. display: none;
  156. }
  157. .no-js h1 {
  158. color: #222222;
  159. }
  160. #loader-wrapper .load_title {
  161. font-family: 'Open Sans';
  162. color: #FFF;
  163. font-size: 19px;
  164. width: 100%;
  165. text-align: center;
  166. z-index: 9999999999999;
  167. position: absolute;
  168. top: 60%;
  169. opacity: 1;
  170. line-height: 30px;
  171. }
  172. #loader-wrapper .load_title span {
  173. font-weight: normal;
  174. font-style: italic;
  175. font-size: 13px;
  176. color: #FFF;
  177. opacity: 0.5;
  178. }
  179. </style>
  180. </head>
  181. <body>
  182. <div id="app">
  183. <div id="loader-wrapper">
  184. <div id="loader"></div>
  185. <div class="loader-section section-left"></div>
  186. <div class="loader-section section-right"></div>
  187. <div class="load_title">正在加载,请耐心等待</div>
  188. </div>
  189. </div>
  190. </body>
  191. </html>