index.html 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <link rel="apple-touch-icon" href="icon.png" />
  6. <link rel="shortcut icon" href="icon.png" />
  7. <link rel="icon" href="icon.png" />
  8. <title>火影酷跑</title>
  9. <meta name="keywords" content="火影酷跑,火影酷跑html5游戏" />
  10. <meta name="description" content="火影酷跑html5游戏,火影酷跑手机在线游戏" />
  11. <meta name="viewport" content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no,target-densitydpi=device-dpi"/>
  12. <meta name="apple-mobile-web-app-capable" content="yes"/>
  13. <meta name="full-screen" content="true"/>
  14. <meta name="screen-ooo" content="portrait"/>
  15. <meta name="x5-fullscreen" content="true"/>
  16. <meta name="360-fullscreen" content="true"/>
  17. <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
  18. <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
  19. <style>
  20. body {
  21. text-align: center;
  22. background: #000000;
  23. padding: 0;
  24. border: 0;
  25. margin: 0;
  26. height: 100%;
  27. }
  28. .a a {
  29. color: #333;
  30. background: #ddd;
  31. padding: 5px;
  32. float: left;
  33. font-size: 12px;
  34. }
  35. .a a:hover {
  36. background: #ccc;
  37. }
  38. </style>
  39. </head>
  40. <body>
  41. <script src="http://yx8.com/game/hypk/WeixinAPI.js" async="false"></script>
  42. <script src="http://yx8.com/game/hypk/EgretShare.js" async="false"></script>
  43. <div style="display:inline-block;width:100%; height:100%;margin: 0 auto; background: black; position:relative;" id="gameDiv">
  44. <canvas id="gameCanvas" width="900" height="400" style="background-color: #000000"></canvas>
  45. </div>
  46. <script>
  47. var title = "火影跑酷";
  48. var content = "飞檐走壁动作游戏《火影跑酷》让你挑战反应能力极限!";
  49. var link = "http://yx8.com/huoyingkupao/?share";
  50. var ico = "http://yx8.com/game/hypk/142537_7329.jpg";
  51. function moreGame(){
  52. EgretShare.moreGame();
  53. }
  54. document.addEventListener('EgretShareLoaded', function(){
  55. EgretShare.setShareData(title, content, link, ico)});
  56. var egret_h5 = {};
  57. egret_h5.prefix = "";
  58. egret_h5.loadScript = function (list, callback) {
  59. var loaded = 0;
  60. if (navigator.userAgent.indexOf("Trident/5") > -1) {
  61. //ie9
  62. var loadNext = function () {
  63. egret_h5.loadSingleScript(egret_h5.prefix + list[loaded], function () {
  64. loaded++;
  65. if (loaded >= list.length) {
  66. callback();
  67. }
  68. else {
  69. loadNext();
  70. }
  71. })
  72. };
  73. loadNext();
  74. }
  75. else {
  76. list.forEach(function (f, i) {
  77. egret_h5.loadSingleScript(egret_h5.prefix + f, function () {
  78. loaded++;
  79. if (loaded >= list.length) {
  80. callback();
  81. }
  82. })
  83. });
  84. }
  85. }
  86. egret_h5.loadSingleScript = function (src, callback) {
  87. var s = document.createElement('script');
  88. if (s.hasOwnProperty("async")) {
  89. s.async = false;
  90. }
  91. if (window.version){
  92. s.src = src + "?r=" + window.version.src[src];
  93. }
  94. else{
  95. s.src = src + "?r=" + Math.random();
  96. }
  97. s.addEventListener('load', function () {
  98. this.removeEventListener('load', arguments.callee, false);
  99. callback();
  100. }, false);
  101. document.body.appendChild(s);
  102. }
  103. egret_h5.loadSingleScript("http://yx8.com/game/hypk/version.js",function(){
  104. egret_h5.loadScript([
  105. "http://yx8.com/game/hypk/browser-api.js",
  106. "http://yx8.com/game/hypk/game-min.js"
  107. ],function(){
  108. var orient = browsers.orientation;
  109. if (orient.check(orient.portrait)) {
  110. egret_h5.startGame();
  111. }
  112. })
  113. })
  114. </script>
  115. <div style="display:none">
  116. </div>
  117. <script type="text/JavaScript">
  118. window.shareData={
  119. 'title':'火影酷跑',
  120. 'link':'http://game.ikongzhong.cn/games/hypk/',
  121. 'imgurl':'http://game.ikongzhong.cn/games/hypk/icon.png'
  122. }
  123. window.shareFriendData={
  124. 'title':'火影酷跑',
  125. 'content':'关注空中传媒网络,更多好玩的游戏等着你。',
  126. 'link':'http://game.ikongzhong.cn/games/hypk/',
  127. 'imgurl':'http://game.ikongzhong.cn/games/hypk/icon.png'
  128. }
  129. </script>
  130. <script type="text/JavaScript" src="http://gc.veiying.cn/code"></script>
  131. </body>
  132. </html>