index.html 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Cocos Creator | Kungfu_sheep</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>
  38. <script src="src/settings.8dd51.js" charset="utf-8"></script>
  39. <script src="main.62dd6.js" charset="utf-8"></script>
  40. <script type="text/javascript">
  41. (function () {
  42. // open web debugger console
  43. if (typeof VConsole !== 'undefined') {
  44. window.vConsole = new VConsole();
  45. }
  46. var debug = window._CCSettings.debug;
  47. var splash = document.getElementById('splash');
  48. splash.style.display = 'block';
  49. function loadScript (moduleName, cb) {
  50. function scriptLoaded () {
  51. document.body.removeChild(domScript);
  52. domScript.removeEventListener('load', scriptLoaded, false);
  53. cb && cb();
  54. };
  55. var domScript = document.createElement('script');
  56. domScript.async = true;
  57. domScript.src = moduleName;
  58. domScript.addEventListener('load', scriptLoaded, false);
  59. document.body.appendChild(domScript);
  60. }
  61. loadScript(debug ? 'cocos2d-js.js' : 'cocos2d-js-min.ec163.js', function () {
  62. if (CC_PHYSICS_BUILTIN || CC_PHYSICS_CANNON) {
  63. loadScript(debug ? 'physics.js' : 'physics-min.9bae2.js', window.boot);
  64. }
  65. else {
  66. window.boot();
  67. }
  68. });
  69. })();
  70. </script>
  71. </body>
  72. </html>