index.html 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Cocos Creator | smart-shoes-build-house</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=""/>
  25. <meta name="x5-orientation" content="">
  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.css"/>
  32. <link rel="icon" href="favicon.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.js" charset="utf-8"></script>
  42. <script src="main.js" charset="utf-8"></script>
  43. <script type="text/javascript">
  44. (function () {
  45. // open web debugger console
  46. if (typeof VConsole !== 'undefined') {
  47. window.vConsole = new VConsole();
  48. }
  49. var debug = window._CCSettings.debug;
  50. var splash = document.getElementById('splash');
  51. splash.style.display = 'block';
  52. function loadScript (moduleName, cb) {
  53. function scriptLoaded () {
  54. document.body.removeChild(domScript);
  55. domScript.removeEventListener('load', scriptLoaded, false);
  56. cb && cb();
  57. };
  58. var domScript = document.createElement('script');
  59. domScript.async = true;
  60. domScript.src = moduleName;
  61. domScript.addEventListener('load', scriptLoaded, false);
  62. document.body.appendChild(domScript);
  63. }
  64. loadScript(debug ? 'cocos2d-js.js' : 'cocos2d-js-min.js', function () {
  65. if (CC_PHYSICS_BUILTIN || CC_PHYSICS_CANNON) {
  66. loadScript(debug ? 'physics.js' : 'physics-min.js', window.boot);
  67. }
  68. else {
  69. window.boot();
  70. }
  71. });
  72. })();
  73. </script>
  74. </body>
  75. </html>