|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193 |
- <!DOCTYPE HTML>
- <html>
-
- <head>
- <meta charset="utf-8">
- <title>TT产品上线流程 金标</title>
- <meta name="viewport" content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
- <meta name="apple-mobile-web-app-capable" content="yes" />
- <meta name="full-screen" content="true" />
- <meta name="screen-orientation" content="portrait" />
- <meta name="x5-fullscreen" content="true" />
- <meta name="360-fullscreen" content="true" />
- <style>
- html, body {
- -ms-touch-action: none;
- background: #ffffff;
- padding: 0;
- border: 0;
- margin: 0;
- height: 100%;
- }
- #videoDiv{
- width: 1px;
- height: 1px;
- display: none;
- position: absolute;
- top: 0;
- left: 0;
- background: #000000;
- }
- #video1,#video2,#video3,#video4,#video5,#video6,#video7{
- width: 1px;
- height: 1px;
- display: none;
- object-fit:cover;
- }
- #img{
- position: absolute;
- top: 5%;
- right: 2%;
- width: 150px;
- height: 30px;
- }
- </style>
- </head>
-
- <body>
- <div style="margin: auto;width: 100%;height: 100%;" class="egret-player"
- data-entry-class="Main"
- data-orientation="auto"
- data-scale-mode="showAll"
- data-frame-rate="30"
- data-content-width="640"
- data-content-height="960"
- data-multi-fingered="2"
- data-show-fps="false" data-show-log="false"
- data-show-fps-style="x:0,y:0,size:12,textColor:0xffffff,bgAlpha:0.9">
- </div>
- <div id="videoDiv" onclick="clickVideo()">
- <img id="img" src="resource/assets/sound/deleVideo.png" alt="">
- <video id="video1" src="resource/assets/sound/video1.mp4" preload="auto" playsinline="true" x-webkit-airplay="true" webkit-playsinline="true" x5-playsinline="true"></video>
- <video id="video2" src="resource/assets/sound/video2.mp4" preload="auto" playsinline="true" x-webkit-airplay="true" webkit-playsinline="true" x5-playsinline="true"></video>
- <video id="video3" src="resource/assets/sound/video3.mp4" preload="auto" playsinline="true" x-webkit-airplay="true" webkit-playsinline="true" x5-playsinline="true"></video>
- <video id="video4" src="resource/assets/sound/video4.mp4" preload="auto" playsinline="true" x-webkit-airplay="true" webkit-playsinline="true" x5-playsinline="true"></video>
- <video id="video5" src="resource/assets/sound/video5.mp4" preload="auto" playsinline="true" x-webkit-airplay="true" webkit-playsinline="true" x5-playsinline="true"></video>
- <video id="video6" src="resource/assets/sound/video6.mp4" preload="auto" playsinline="true" x-webkit-airplay="true" webkit-playsinline="true" x5-playsinline="true"></video>
- <video id="video7" src="resource/assets/sound/video7.mp4" preload="auto" playsinline="true" x-webkit-airplay="true" webkit-playsinline="true" x5-playsinline="true"></video>
- </div>
- <audio id="music1"><source src="resource/assets/sound/bg.mp3" type="audio/mpeg"></audio>
- <script>
- var audio=document.getElementById("music1");
- audio.loop=true;
- document.addEventListener("DOMContentLoaded",function(){
- audio.play();
- document.addEventListener("WeixinJSBridgeReady",function(){
- audio.play();
- },false);
- });
- var musicstart=true;
- function audioPaly() {
- musicstart=true;
- audio.muted=false;
- audio.volume=1;
- audio.play();
- }
- function audioPause() {
- musicstart=false;
- audio.muted=true;
- audio.volume=0;
- audio.pause();
- }
- </script>
- <script>
- function skipPage(){
- window.location.href="https://shimo.im/docs/33D8cpjdDYW8HDxD";
- var timestamp=new Date().getTime();
- localStorage.setItem('page', "10");
- localStorage.setItem('time', timestamp);
- localStorage.setItem('showAgain', "1");
- }
- // 视频播放
- var videoDiv = document.getElementById("videoDiv");
- var videoArr = ["video1","video2","video3","video4","video5","video6","video7"];
- function videoPlay(e){
- var video;
- video = document.getElementById(videoArr[e-1]);
- console.log(video)
- videoDiv.style.display = "block";
- videoDiv.style.width = "100%";
- videoDiv.style.height = "100%";
- video.style.width = "100%";
- video.style.height = "100%";
- video.style.display = "block";
-
- video.setAttribute("x5-video-player-type", "h5");
- video.setAttribute("x5-videoplayer-fullscreen", "true");
- video.play();
- }
- function clickVideo(){
- videoDiv.style.display = "none";
- videoDiv.style.width = 1+"px";
- videoDiv.style.height = 1+"px";
- var videoPause;
- for(var i=0;i<videoArr.length;i++){
- console.log(videoArr[i])
- videoPause = document.getElementById(videoArr[i]);
- videoPause.style.width = 1+"px";
- videoPause.style.height = 1+"px";
- videoPause.style.display = "none";
- videoPause.pause();
- }
- }
- </script>
- <script>
- var loadScript = function (list, callback) {
- var loaded = 0;
- var loadNext = function () {
- loadSingleScript(list[loaded], function () {
- loaded++;
- if (loaded >= list.length) {
- callback();
- }
- else {
- loadNext();
- }
- })
- };
- loadNext();
- };
-
- var loadSingleScript = function (src, callback) {
- var s = document.createElement('script');
- s.async = false;
- s.src = src;
- s.addEventListener('load', function () {
- s.parentNode.removeChild(s);
- s.removeEventListener('load', arguments.callee, false);
- callback();
- }, false);
- document.body.appendChild(s);
- };
-
- var xhr = new XMLHttpRequest();
- xhr.open('GET', './manifest.json?v=' + Math.random(), true);
- xhr.addEventListener("load", function () {
- var manifest = JSON.parse(xhr.response);
- var list = manifest.initial.concat(manifest.game);
- loadScript(list, function () {
- /**
- * {
- * "renderMode":, //Engine rendering mode, "canvas" or "webgl"
- * "audioType": 0 //Use the audio type, 0: default, 2: web audio, 3: audio
- * "antialias": //Whether the anti-aliasing is enabled in WebGL mode, true: on, false: off, defaults to false
- * "calculateCanvasScaleFactor": //a function return canvas scale factor
- * }
- **/
- egret.sys.screenAdapter = new easy.EasyGameFullScreen();
- egret.runEgret({ renderMode: "webgl", audioType: 0, calculateCanvasScaleFactor:function(context) {
- var backingStore = context.backingStorePixelRatio ||
- context.webkitBackingStorePixelRatio ||
- context.mozBackingStorePixelRatio ||
- context.msBackingStorePixelRatio ||
- context.oBackingStorePixelRatio ||
- context.backingStorePixelRatio || 1;
- return (window.devicePixelRatio || 1) / backingStore;
- }});
- });
- });
- xhr.send(null);
- </script>
- </body>
-
- </html>
|