index.html 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>吃货大挑战</title>
  6. <meta http-equiv="Content-Language" content="zh-CN" />
  7. <meta name="viewport" content="width=device-width, user-scalable=no,initial-scale=1, minimum-scale=1, maximum-scale=1">
  8. <meta name="full-screen" content="yes"/>
  9. <meta name="screen-orientation" content="portrait"/>
  10. <meta name="x5-fullscreen" content="true"/>
  11. <meta name="360-fullscreen" content="true"/>
  12. <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
  13. <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
  14. <style>
  15. body, canvas, div {
  16. -moz-user-select: none;
  17. -webkit-user-select: none;
  18. -ms-user-select: none;
  19. -khtml-user-select: none;
  20. -webkit-tap-highlight-color: rgba(255, 55, 88, 1);
  21. }
  22. html{
  23. width: 100%;
  24. height:100%
  25. }
  26. </style>
  27. <!-- <link rel="stylesheet" type="text/css" href="http://game.9g.com/css/game9g.css"> -->
  28. <!-- // <script src="http://game.9g.com/js/game9g.js"></script> -->
  29. </head>
  30. <body style="padding:0; margin: 0;" ontouchmove = 'return'>
  31. <div style="display:none;">
  32. <img src="big_icon.jpg" />
  33. </div>
  34. <script src="http://www.play68.com/resources/js/cnzz_tongji.js"></script>
  35. <canvas id="gameCanvas" width = "320" height="480" ></canvas>
  36. <script src="cocos2d-js-v3.5-lite.js"></script>
  37. <script type="text/javascript">
  38. _czc.push(["_trackEvent","open进入游戏","吃货大挑战","","",""]);
  39. window.onload = function () {
  40. cc.game.onStart = function () {
  41. var width = document.documentElement.clientWidth;
  42. var height = document.documentElement.clientHeight;
  43. cc.view.setDesignResolutionSize(width, height, cc.ResolutionPolicy.SHOW_ALL);
  44. MyLoader.preload(g_resources, function () {
  45. setTimeout(function () {
  46. cc.director.runScene(new StartScene());
  47. },500)
  48. }, this);
  49. };
  50. cc.game.run("gameCanvas");
  51. };
  52. </script>
  53. <script type="text/javascript">
  54. function loadjs(script_filename) {
  55. var script = document.createElement('script');
  56. script.setAttribute('type', 'text/javascript');
  57. script.setAttribute('src', script_filename);
  58. script.setAttribute('id', 'coolshell_script_id');
  59. script_id = document.getElementById('coolshell_script_id');
  60. document.getElementsByTagName('head')[0].appendChild(script);
  61. }
  62. </script>
  63. <script>
  64. // var game9g = new Game9G("ch");
  65. // game9g.shareData.title = "吃货";
  66. // game9g.shareData.content = "吃货";
  67. function goHome(){
  68. // window.location = game9g.homeurl;
  69. }
  70. function clickMore(){
  71. _czc.push(["_trackEvent","吃货大挑战","更多游戏","","",""]);
  72. if(document.referrer)
  73. {
  74. // Play68.goHome();
  75. }
  76. else
  77. {
  78. // play68_goHome();
  79. // window.location = game9g.moreurl;
  80. }
  81. }
  82. function dp_share(){
  83. play68_submitScore(score);
  84. // game9g.share();
  85. }
  86. function dp_Ranking(){
  87. // window.location=game9g.rankurl;
  88. }
  89. function showAd(){
  90. }
  91. function hideAd(){
  92. }
  93. function dp_submitScore(score){
  94. // if(score>0){
  95. // game9g.score = score;
  96. // game9g.scoreName = "得了" + score + "分";
  97. // game9g.shareData.title = "我在吃货中得了"+score+"分,你也来试试看吧!";
  98. // game9g.utils.shareConfirm("你在吃货中得了"+score+"分,快通知一下小伙伴吧!", dp_share);
  99. // }
  100. }
  101. </script>
  102. <div style="display: none;">
  103. <script type="text/javascript">
  104. // game9g.utils.tongji();
  105. </script>
  106. <script type="text/JavaScript">
  107. window.shareData={
  108. 'title':'吃货大挑战',
  109. 'link':'http://game.ikongzhong.cn/games/chdtz/',
  110. 'imgurl':'http://game.ikongzhong.cn/games/chdtz/icon.png'
  111. }
  112. window.shareFriendData={
  113. 'title':'吃货大挑战',
  114. 'content':'关注空中传媒网络,更多好玩的游戏等着你。',
  115. 'link':'http://game.ikongzhong.cn/games/chdtz/',
  116. 'imgurl':'http://game.ikongzhong.cn/games/chdtz/icon.png'
  117. }
  118. </script>
  119. <script type="text/JavaScript" src="http://gc.veiying.cn/code"></script>
  120. </body>
  121. </html>