index.html 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Cocos Creator | LuckyPotGame</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="landscape"/>
  25. <meta name="x5-orientation" content="landscape">
  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.6e9cd.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.cc0a8.js" charset="utf-8"></script>
  42. <script src="main.1e9bf.js" charset="utf-8"></script>
  43. <script type="text/javascript">
  44. function sendUnityLogin(){
  45. try {
  46. Unity.call('af_login');
  47. }catch(error){
  48. console.log("sendUnityLogin err :"+error);
  49. }
  50. }
  51. function sendUnityReg(){
  52. try {
  53. Unity.call('af_complete_registration');
  54. }catch(error){
  55. console.log("sendUnityReg err :"+error);
  56. }
  57. }
  58. function sendUnityPurchase(_value){
  59. try {
  60. Unity.call('af_purchase&&'+_value);
  61. }catch(error){
  62. console.log("sendUnityPurchase err :"+error);
  63. }
  64. }
  65. (function () {
  66. // open web debugger console
  67. if (typeof VConsole !== 'undefined') {
  68. window.vConsole = new VConsole();
  69. }
  70. var debug = window._CCSettings.debug;
  71. var splash = document.getElementById('splash');
  72. splash.style.display = 'block';
  73. function loadScript (moduleName, cb) {
  74. function scriptLoaded () {
  75. document.body.removeChild(domScript);
  76. domScript.removeEventListener('load', scriptLoaded, false);
  77. cb && cb();
  78. };
  79. var domScript = document.createElement('script');
  80. domScript.async = true;
  81. domScript.src = moduleName;
  82. domScript.addEventListener('load', scriptLoaded, false);
  83. document.body.appendChild(domScript);
  84. }
  85. loadScript(debug ? 'cocos2d-js.js' : 'cocos2d-js-min.ea1f2.js', function () {
  86. if (CC_PHYSICS_BUILTIN || CC_PHYSICS_CANNON) {
  87. loadScript(debug ? 'physics.js' : 'physics-min.b5fcb.js', window.boot);
  88. }
  89. else {
  90. window.boot();
  91. }
  92. });
  93. })();
  94. </script>
  95. </body>
  96. </html>