index.html 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>抽奖活动</title>
  6. <!--http://www.html5rocks.com/en/mobile/mobifying/-->
  7. <meta name="viewport"
  8. content="width=device-width,user-scalable=no,initial-scale=1, minimum-scale=1,maximum-scale=1"/>
  9. <!--https://developer.apple.com/library/safari/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html-->
  10. <meta name="apple-mobile-web-app-capable" content="yes">
  11. <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
  12. <meta name="format-detection" content="telephone=no">
  13. <!-- force webkit on 360 -->
  14. <meta name="renderer" content="webkit"/>
  15. <meta name="force-rendering" content="webkit"/>
  16. <!-- force edge on IE -->
  17. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
  18. <meta name="msapplication-tap-highlight" content="no">
  19. <!-- force full screen on some browser -->
  20. <meta name="full-screen" content="yes"/>
  21. <meta name="x5-fullscreen" content="true"/>
  22. <meta name="360-fullscreen" content="true"/>
  23. <!-- force screen orientation on some browser -->
  24. <meta name="screen-orientation" content="portrait"/>
  25. <meta name="x5-orientation" content="portrait">
  26. <!--fix fireball/issues/3568 -->
  27. <!--<meta name="browsermode" content="application">-->
  28. <meta name="x5-page-mode" content="app">
  29. <!--<link rel="apple-touch-icon" href=".png" />-->
  30. <!--<link rel="apple-touch-icon-precomposed" href=".png" />-->
  31. <link rel="stylesheet" type="text/css" href="style-mobile.aa686.css"/>
  32. <link rel="icon" href="favicon.8de18.ico"/>
  33. </head>
  34. <body>
  35. <canvas id="GameCanvas" oncontextmenu="event.preventDefault()" tabindex="0"></canvas>
  36. <div id="splash">
  37. <div class="progress-bar stripes">
  38. <span style="width: 0%"></span>
  39. </div>
  40. </div>
  41. <script src="src/settings.c5c45.js" charset="utf-8"></script>
  42. <script src="main.795c9.js" charset="utf-8"></script>
  43. <script type="text/javascript">
  44. //自定义后端API地址
  45. let path = window.location.pathname;
  46. let idx = path.indexOf("/index" + ".html");
  47. if(idx != -1)
  48. {
  49. path = path.substring(0, idx);
  50. }
  51. window.WEB_API = path + "/pingan_webapi";
  52. (function () {
  53. // open web debugger console
  54. if (typeof VConsole !== 'undefined') {
  55. window.vConsole = new VConsole();
  56. }
  57. var debug = window._CCSettings.debug;
  58. var splash = document.getElementById('splash');
  59. splash.style.display = 'block';
  60. function loadScript (moduleName, cb) {
  61. function scriptLoaded () {
  62. document.body.removeChild(domScript);
  63. domScript.removeEventListener('load', scriptLoaded, false);
  64. cb && cb();
  65. };
  66. var domScript = document.createElement('script');
  67. domScript.async = true;
  68. domScript.src = moduleName;
  69. domScript.addEventListener('load', scriptLoaded, false);
  70. document.body.appendChild(domScript);
  71. }
  72. loadScript(debug ? 'cocos2d-js.js' : 'cocos2d-js-min.3eab5.js', function () {
  73. if (CC_PHYSICS_BUILTIN || CC_PHYSICS_CANNON) {
  74. loadScript(debug ? 'physics.js' : 'physics-min.js', window.boot);
  75. }
  76. else {
  77. window.boot();
  78. }
  79. });
  80. })();
  81. </script>
  82. </body>
  83. </html>