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

5 роки тому
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>ABI经销商进销存管理-01经销商定位与服务水平</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. </style>
  22. </head>
  23. <body>
  24. <div style="margin: auto;width: 100%;height: 100%;" class="egret-player"
  25. data-entry-class="Main"
  26. data-orientation="auto"
  27. data-scale-mode="showAll"
  28. data-frame-rate="30"
  29. data-content-width="640"
  30. data-content-height="960"
  31. data-multi-fingered="2"
  32. data-show-fps="false" data-show-log="false"
  33. data-show-fps-style="x:0,y:0,size:12,textColor:0xffffff,bgAlpha:0.9">
  34. </div>
  35. <audio id="music1"><source src="resource/assets/sound/bg.mp3" type="audio/mpeg"></audio>
  36. <script>
  37. var audio=document.getElementById("music1");
  38. audio.loop=true;
  39. document.addEventListener("DOMContentLoaded",function(){
  40. audio.play();
  41. document.addEventListener("WeixinJSBridgeReady",function(){
  42. audio.play();
  43. },false);
  44. });
  45. var musicstart=true;
  46. function audioPaly() {
  47. musicstart=true;
  48. audio.muted=false;
  49. audio.volume=1;
  50. audio.play();
  51. }
  52. function audioPause() {
  53. musicstart=false;
  54. audio.muted=true;
  55. audio.volume=0;
  56. audio.pause();
  57. }
  58. </script>
  59. <script>
  60. var loadScript = function (list, callback) {
  61. var loaded = 0;
  62. var loadNext = function () {
  63. loadSingleScript(list[loaded], function () {
  64. loaded++;
  65. if (loaded >= list.length) {
  66. callback();
  67. }
  68. else {
  69. loadNext();
  70. }
  71. })
  72. };
  73. loadNext();
  74. };
  75. var loadSingleScript = function (src, callback) {
  76. var s = document.createElement('script');
  77. s.async = false;
  78. s.src = src;
  79. s.addEventListener('load', function () {
  80. s.parentNode.removeChild(s);
  81. s.removeEventListener('load', arguments.callee, false);
  82. callback();
  83. }, false);
  84. document.body.appendChild(s);
  85. };
  86. var xhr = new XMLHttpRequest();
  87. xhr.open('GET', './manifest.json?v=' + Math.random(), true);
  88. xhr.addEventListener("load", function () {
  89. var manifest = JSON.parse(xhr.response);
  90. var list = manifest.initial.concat(manifest.game);
  91. loadScript(list, function () {
  92. /**
  93. * {
  94. * "renderMode":, //Engine rendering mode, "canvas" or "webgl"
  95. * "audioType": 0 //Use the audio type, 0: default, 2: web audio, 3: audio
  96. * "antialias": //Whether the anti-aliasing is enabled in WebGL mode, true: on, false: off, defaults to false
  97. * "calculateCanvasScaleFactor": //a function return canvas scale factor
  98. * }
  99. **/
  100. egret.sys.screenAdapter = new easy.EasyGameFullScreen();
  101. egret.runEgret({ renderMode: "webgl", audioType: 0, calculateCanvasScaleFactor:function(context) {
  102. var backingStore = context.backingStorePixelRatio ||
  103. context.webkitBackingStorePixelRatio ||
  104. context.mozBackingStorePixelRatio ||
  105. context.msBackingStorePixelRatio ||
  106. context.oBackingStorePixelRatio ||
  107. context.backingStorePixelRatio || 1;
  108. return (window.devicePixelRatio || 1) / backingStore;
  109. }});
  110. });
  111. });
  112. xhr.send(null);
  113. </script>
  114. </body>
  115. </html>