index.html 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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>
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, minimal-ui" />
  8. <meta name="apple-mobile-web-app-capable" content="yes" />
  9. <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  10. <link rel="apple-touch-icon" sizes="256x256" href="icon-256.png" />
  11. <meta name="HandheldFriendly" content="true" />
  12. <meta name="mobile-web-app-capable" content="yes" />
  13. <link rel="shortcut icon" sizes="256x256" href="icon-256.png" />
  14. <script type="text/javascript">
  15. window.onload = function (){
  16. // updateShare(0,0);
  17. }
  18. </script>
  19. <style type="text/css">
  20. * {
  21. padding: 0;
  22. margin: 0;
  23. }
  24. html, body {
  25. background: #000;
  26. color: #fff;
  27. overflow: hidden;
  28. touch-action: none;
  29. -ms-touch-action: none;
  30. }
  31. canvas {
  32. touch-action-delay: none;
  33. touch-action: none;
  34. -ms-touch-action: none;
  35. }
  36. .aliForPc {display:none;position:fixed;top:5px;right:5px;width:200px;height:230px;overflow:hidden;z-index:99999;}
  37. </style>
  38. </head>
  39. <body>
  40. <div id="fb-root"></div>
  41. <script>
  42. (function(){
  43. // Check for running exported on file protocol
  44. if (window.location.protocol.substr(0, 4) === "file")
  45. {
  46. 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.)");
  47. }
  48. })();
  49. </script>
  50. <div id="c2canvasdiv">
  51. <canvas id="c2canvas" width="640" height="960">
  52. </canvas>
  53. </div>
  54. <script src="js/jquery-2.0.0.min.js"></script>
  55. <script src="js/c2runtime.js"></script>
  56. <script>
  57. // Size the canvas to fill the browser viewport.
  58. jQuery(window).resize(function() {
  59. cr_sizeCanvas(jQuery(window).width(), jQuery(window).height());
  60. });
  61. // Start the Construct 2 project running on window load.
  62. jQuery(document).ready(function ()
  63. {
  64. // Create new runtime using the c2canvas
  65. cr_createRuntime("c2canvas");
  66. });
  67. // Pause and resume on page becoming visible/invisible
  68. function onVisibilityChanged() {
  69. if (document.hidden || document.mozHidden || document.webkitHidden || document.msHidden)
  70. cr_setSuspended(true);
  71. else
  72. cr_setSuspended(false);
  73. };
  74. document.addEventListener("visibilitychange", onVisibilityChanged, false);
  75. document.addEventListener("mozvisibilitychange", onVisibilityChanged, false);
  76. document.addEventListener("webkitvisibilitychange", onVisibilityChanged, false);
  77. document.addEventListener("msvisibilitychange", onVisibilityChanged, false);
  78. </script>
  79. <script language=javascript>
  80. function showshare(){
  81. play68_submitScore(window.myPlayGameHead,window.myPlayGameScore);
  82. };
  83. function clickMore(){
  84. setTimeout(Play68.goHome(),1000);
  85. };
  86. </script>
  87. <div id=share style="display: none">
  88. </div>
  89. </body>
  90. <div style="display:none;">
  91. </div>
  92. </html>