Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

194 lines
7.8KB

  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>CR产品上线流程 银标</title>
  6. <meta name="viewport" content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
  7. <meta name="apple-mobile-web-app-capable" content="yes" />
  8. <meta name="full-screen" content="true" />
  9. <meta name="screen-orientation" content="portrait" />
  10. <meta name="x5-fullscreen" content="true" />
  11. <meta name="360-fullscreen" content="true" />
  12. <style>
  13. html, body {
  14. -ms-touch-action: none;
  15. background: #ffffff;
  16. padding: 0;
  17. border: 0;
  18. margin: 0;
  19. height: 100%;
  20. }
  21. #videoDiv{
  22. width: 1px;
  23. height: 1px;
  24. display: none;
  25. position: absolute;
  26. top: 0;
  27. left: 0;
  28. background: #000000;
  29. }
  30. #video1,#video2,#video3,#video4,#video5,#video6,#video7,#video8{
  31. width: 1px;
  32. height: 1px;
  33. display: none;
  34. object-fit:cover;
  35. }
  36. #img{
  37. position: absolute;
  38. top: 5%;
  39. right: 2%;
  40. width: 150px;
  41. height: 30px;
  42. }
  43. </style>
  44. </head>
  45. <body>
  46. <div style="margin: auto;width: 100%;height: 100%;" class="egret-player"
  47. data-entry-class="Main"
  48. data-orientation="auto"
  49. data-scale-mode="showAll"
  50. data-frame-rate="30"
  51. data-content-width="640"
  52. data-content-height="960"
  53. data-multi-fingered="2"
  54. data-show-fps="false" data-show-log="false"
  55. data-show-fps-style="x:0,y:0,size:12,textColor:0xffffff,bgAlpha:0.9">
  56. </div>
  57. <div id="videoDiv" onclick="clickVideo()">
  58. <img id="img" src="resource/assets/sound/deleVideo.png" alt="">
  59. <video id="video1" src="resource/assets/sound/video1.mp4" preload="auto" playsinline="true" x-webkit-airplay="true" webkit-playsinline="true" x5-playsinline="true"></video>
  60. <video id="video2" src="resource/assets/sound/video2.mp4" preload="auto" playsinline="true" x-webkit-airplay="true" webkit-playsinline="true" x5-playsinline="true"></video>
  61. <video id="video3" src="resource/assets/sound/video3.mp4" preload="auto" playsinline="true" x-webkit-airplay="true" webkit-playsinline="true" x5-playsinline="true"></video>
  62. <video id="video4" src="resource/assets/sound/video4.mp4" preload="auto" playsinline="true" x-webkit-airplay="true" webkit-playsinline="true" x5-playsinline="true"></video>
  63. <video id="video5" src="resource/assets/sound/video5.mp4" preload="auto" playsinline="true" x-webkit-airplay="true" webkit-playsinline="true" x5-playsinline="true"></video>
  64. <video id="video6" src="resource/assets/sound/video6.mp4" preload="auto" playsinline="true" x-webkit-airplay="true" webkit-playsinline="true" x5-playsinline="true"></video>
  65. <video id="video7" src="resource/assets/sound/video7.mp4" preload="auto" playsinline="true" x-webkit-airplay="true" webkit-playsinline="true" x5-playsinline="true"></video>
  66. <video id="video8" src="resource/assets/sound/video8.mp4" preload="auto" playsinline="true" x-webkit-airplay="true" webkit-playsinline="true" x5-playsinline="true"></video>
  67. </div>
  68. <audio id="music1"><source src="resource/assets/sound/bg.mp3" type="audio/mpeg"></audio>
  69. <script>
  70. var audio=document.getElementById("music1");
  71. audio.loop=true;
  72. document.addEventListener("DOMContentLoaded",function(){
  73. audio.play();
  74. document.addEventListener("WeixinJSBridgeReady",function(){
  75. audio.play();
  76. },false);
  77. });
  78. var musicstart=true;
  79. function audioPaly() {
  80. musicstart=true;
  81. audio.muted=false;
  82. audio.volume=1;
  83. audio.play();
  84. }
  85. function audioPause() {
  86. musicstart=false;
  87. audio.muted=true;
  88. audio.volume=0;
  89. audio.pause();
  90. }
  91. </script>
  92. <script>
  93. function skipPage(){
  94. window.location.href="https://shimo.im/docs/KGJwYTj3QxYdXVQY";
  95. var timestamp=new Date().getTime();
  96. localStorage.setItem('page', "10");
  97. localStorage.setItem('time', timestamp);
  98. localStorage.setItem('showAgain', "1");
  99. }
  100. // 视频播放
  101. var videoDiv = document.getElementById("videoDiv");
  102. var videoArr = ["video1","video2","video3","video4","video5","video6","video7","video8"];
  103. function videoPlay(e){
  104. var video;
  105. video = document.getElementById(videoArr[e-1]);
  106. console.log(video)
  107. videoDiv.style.display = "block";
  108. videoDiv.style.width = "100%";
  109. videoDiv.style.height = "100%";
  110. video.style.width = "100%";
  111. video.style.height = "100%";
  112. video.style.display = "block";
  113. video.setAttribute("x5-video-player-type", "h5");
  114. video.setAttribute("x5-videoplayer-fullscreen", "true");
  115. video.play();
  116. }
  117. function clickVideo(){
  118. videoDiv.style.display = "none";
  119. videoDiv.style.width = 1+"px";
  120. videoDiv.style.height = 1+"px";
  121. var videoPause;
  122. for(var i=0;i<videoArr.length;i++){
  123. console.log(videoArr[i])
  124. videoPause = document.getElementById(videoArr[i]);
  125. videoPause.style.width = 1+"px";
  126. videoPause.style.height = 1+"px";
  127. videoPause.style.display = "none";
  128. videoPause.pause();
  129. }
  130. }
  131. </script>
  132. <script>
  133. var loadScript = function (list, callback) {
  134. var loaded = 0;
  135. var loadNext = function () {
  136. loadSingleScript(list[loaded], function () {
  137. loaded++;
  138. if (loaded >= list.length) {
  139. callback();
  140. }
  141. else {
  142. loadNext();
  143. }
  144. })
  145. };
  146. loadNext();
  147. };
  148. var loadSingleScript = function (src, callback) {
  149. var s = document.createElement('script');
  150. s.async = false;
  151. s.src = src;
  152. s.addEventListener('load', function () {
  153. s.parentNode.removeChild(s);
  154. s.removeEventListener('load', arguments.callee, false);
  155. callback();
  156. }, false);
  157. document.body.appendChild(s);
  158. };
  159. var xhr = new XMLHttpRequest();
  160. xhr.open('GET', './manifest.json?v=' + Math.random(), true);
  161. xhr.addEventListener("load", function () {
  162. var manifest = JSON.parse(xhr.response);
  163. var list = manifest.initial.concat(manifest.game);
  164. loadScript(list, function () {
  165. /**
  166. * {
  167. * "renderMode":, //Engine rendering mode, "canvas" or "webgl"
  168. * "audioType": 0 //Use the audio type, 0: default, 2: web audio, 3: audio
  169. * "antialias": //Whether the anti-aliasing is enabled in WebGL mode, true: on, false: off, defaults to false
  170. * "calculateCanvasScaleFactor": //a function return canvas scale factor
  171. * }
  172. **/
  173. egret.sys.screenAdapter = new easy.EasyGameFullScreen();
  174. egret.runEgret({ renderMode: "webgl", audioType: 0, calculateCanvasScaleFactor:function(context) {
  175. var backingStore = context.backingStorePixelRatio ||
  176. context.webkitBackingStorePixelRatio ||
  177. context.mozBackingStorePixelRatio ||
  178. context.msBackingStorePixelRatio ||
  179. context.oBackingStorePixelRatio ||
  180. context.backingStorePixelRatio || 1;
  181. return (window.devicePixelRatio || 1) / backingStore;
  182. }});
  183. });
  184. });
  185. xhr.send(null);
  186. </script>
  187. </body>
  188. </html>