index.html 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  6. <title>唤醒圣诞老人</title><meta name="x-id" content="631">
  7. <meta name="x-share-icon" content="icon.png">
  8. <meta name="screen-orientation" content="portrait">
  9. <meta name="x-key" content="de3c6b0b58ffe51ee36f1d15ba3a6df5">
  10. <link rel="manifest" href="app.manifest" />
  11. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, minimal-ui" />
  12. <meta name="apple-mobile-web-app-capable" content="yes" />
  13. <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  14. <link rel="apple-touch-icon" sizes="256x256" href="icon.png" />
  15. <meta name="HandheldFriendly" content="true" />
  16. <meta name="HandheldFriendly" content="True">
  17. <meta name="apple-mobile-web-app-capable" content="yes" />
  18. <meta name="apple-touch-fullscreen" content="yes" />
  19. <meta name="mobile-web-app-capable" content="yes" />
  20. <link rel="shortcut icon" sizes="256x256" href="icon.png" />
  21. <style type="text/css">
  22. * {
  23. padding: 0;
  24. margin: 0;
  25. }
  26. html, body {
  27. background: #000;
  28. color: #fff;
  29. overflow: hidden;
  30. touch-action: none;
  31. -ms-touch-action: none;
  32. }
  33. canvas {
  34. touch-action-delay: none;
  35. touch-action: none;
  36. -ms-touch-action: none;
  37. }
  38. </style>
  39. </head>
  40. <body><img id="wxsicon" src="icon.png" width="0" height="0" style="position:absolute">
  41. <div id="fb-root"></div>
  42. <div id="c2canvasAlign" style="text-align: center;">
  43. <script>
  44. // Issue a warning if trying to preview an exported project on disk.
  45. (function () {
  46. // Check for running exported on file protocol
  47. if (window.location.protocol.substr(0, 4) === "file") {
  48. //alert("Exported games won't work until you upload them. (When running on the file:/// protocol, browsers block many features from working for security reasons.)");
  49. }
  50. })();
  51. </script>
  52. <div id="c2canvasdiv">
  53. <canvas id="c2canvas" width="432" height="640">
  54. <h1>您的浏览器不支持html5,请升级您的浏览器。
  55. <br />
  56. <br />
  57. <a href="http://www.microsoft.com/windows/internet-explorer/default.aspx">Microsoft Internet Explorer</a><br />
  58. <a href="http://www.mozilla.com/firefox/">Mozilla Firefox</a><br />
  59. <a href="http://www.google.com/chrome/">Google Chrome</a><br />
  60. <a href="http://www.apple.com/safari/download/">Apple Safari</a><br />
  61. <a href="http://www.google.com/chromeframe">Google Chrome Frame for Internet Explorer</a><br />
  62. </h1>
  63. </canvas>
  64. </div>
  65. </div>
  66. <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
  67. <script src="game.js"></script>
  68. <script src="c2runtime.js"></script>
  69. <script>
  70. // Size the canvas to fill the browser viewport.
  71. jQuery(window).resize(function () {
  72. cr_sizeCanvas(jQuery(window).width(), jQuery(window).height());
  73. });
  74. // Start the Construct 2 project running on window load.
  75. jQuery(document).ready(function () {
  76. if ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {
  77. document.getElementById("c2canvasdiv").id = "c2canvasdiv2";
  78. }
  79. // Create new runtime using the c2canvas
  80. cr_createRuntime("c2canvas");
  81. });
  82. // Pause and resume on page becoming visible/invisible
  83. function onVisibilityChanged() {
  84. if (document.hidden || document.mozHidden || document.webkitHidden || document.msHidden)
  85. cr_setSuspended(true);
  86. else
  87. cr_setSuspended(false);
  88. };
  89. document.addEventListener("visibilitychange", onVisibilityChanged, false);
  90. document.addEventListener("mozvisibilitychange", onVisibilityChanged, false);
  91. document.addEventListener("webkitvisibilitychange", onVisibilityChanged, false);
  92. document.addEventListener("msvisibilitychange", onVisibilityChanged, false);
  93. </script>
  94. </body>
  95. </html>