index.html 4.2 KB

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