index.html 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <!DOCTYPE html>
  2. <html manifest="offline.appcache">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  6. <title>小球吃钻石</title>
  7. <!-- Standardised web app manifest -->
  8. <link rel="manifest" href="app.manifest" />
  9. <!-- Allow fullscreen mode on iOS devices. (These are Apple specific meta tags.) -->
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, minimal-ui" />
  11. <meta name="apple-mobile-web-app-capable" content="yes" />
  12. <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  13. <link rel="apple-touch-icon" sizes="256x256" href="icon-256.png" />
  14. <meta name="HandheldFriendly" content="true" />
  15. <!-- Chrome for Android web app tags -->
  16. <meta name="mobile-web-app-capable" content="yes" />
  17. <link rel="shortcut icon" sizes="256x256" href="icon-256.png" />
  18. <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
  19. <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
  20. <!-- All margins and padding must be zero for the canvas to fill the screen. -->
  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>
  41. <div id="fb-root"></div>
  42. <script>
  43. (function(){
  44. //updateShare(0);
  45. })();
  46. // Issue a warning if trying to preview an exported project on disk.
  47. (function(){
  48. // Check for running exported on file protocol
  49. if (window.location.protocol.substr(0, 4) === "file")
  50. {
  51. 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.)");
  52. }
  53. })();
  54. </script>
  55. <!-- The canvas must be inside a div called c2canvasdiv -->
  56. <div id="c2canvasdiv">
  57. <!-- The canvas the project will render to. If you change its ID, don't forget to change the
  58. ID the runtime looks for in the jQuery events above (ready() and cr_sizeCanvas()). -->
  59. <canvas id="c2canvas" width="480" height="854">
  60. <!-- This text is displayed if the visitor's browser does not support HTML5.
  61. You can change it, but it is a good idea to link to a description of a browser
  62. and provide some links to download some popular HTML5-compatible browsers. -->
  63. <h1>Your browser does not appear to support HTML5. Try upgrading your browser to the latest version. <a href="http://www.whatbrowser.org">What is a browser?</a>
  64. <br/><br/><a href="http://www.microsoft.com/windows/internet-explorer/default.aspx">Microsoft Internet Explorer</a><br/>
  65. <a href="http://www.mozilla.com/firefox/">Mozilla Firefox</a><br/>
  66. <a href="http://www.google.com/chrome/">Google Chrome</a><br/>
  67. <a href="http://www.apple.com/safari/download/">Apple Safari</a><br/>
  68. <a href="http://www.google.com/chromeframe">Google Chrome Frame for Internet Explorer</a><br/></h1>
  69. </canvas>
  70. </div>
  71. <!-- Pages load faster with scripts at the bottom -->
  72. <!-- Construct 2 exported games require jQuery. -->
  73. <script src="jquery-2.1.1.min.js"></script>
  74. <!-- The runtime script. You can rename it, but don't forget to rename the reference here as well.
  75. This file will have been minified and obfuscated if you enabled "Minify script" during export. -->
  76. <script src="c2runtime.js"></script>
  77. <script>
  78. // Size the canvas to fill the browser viewport.
  79. jQuery(window).resize(function() {
  80. cr_sizeCanvas(jQuery(window).width(), jQuery(window).height());
  81. });
  82. // Start the Construct 2 project running on window load.
  83. jQuery(document).ready(function ()
  84. {
  85. // Create new runtime using the c2canvas
  86. cr_createRuntime("c2canvas");
  87. });
  88. // Pause and resume on page becoming visible/invisible
  89. function onVisibilityChanged() {
  90. if (document.hidden || document.mozHidden || document.webkitHidden || document.msHidden)
  91. cr_setSuspended(true);
  92. else
  93. cr_setSuspended(false);
  94. };
  95. document.addEventListener("visibilitychange", onVisibilityChanged, false);
  96. document.addEventListener("mozvisibilitychange", onVisibilityChanged, false);
  97. document.addEventListener("webkitvisibilitychange", onVisibilityChanged, false);
  98. document.addEventListener("msvisibilitychange", onVisibilityChanged, false);
  99. </script>
  100. <script type="text/JavaScript">
  101. window.shareData={
  102. 'title':'小球吃钻石',
  103. 'link':'http://game.ikongzhong.cn/games/dzt/',
  104. 'imgurl':'http://game.ikongzhong.cn/games/dzt/icon.png'
  105. }
  106. window.shareFriendData={
  107. 'title':'小球吃钻石',
  108. 'content':'关注空中传媒网络科技,更多好玩的游戏等着你。',
  109. 'link':'http://game.ikongzhong.cn/games/dzt/',
  110. 'imgurl':'http://game.ikongzhong.cn/games/dzt/icon.png'
  111. }
  112. </script>
  113. <script type="text/JavaScript" src="http://gc.veiying.cn/code"></script>
  114. </body>
  115. </html>