index.html 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" />
  6. <title>足球大师</title>
  7. <!--jQuery-->
  8. <script type="text/javascript" src="js/createjs.min.js"></script>
  9. <script type="text/javascript" src="js/zepto.min.js"></script>
  10. <script src="js/common.js"></script>
  11. <link type="text/css" href="js/common.css" rel="stylesheet" />
  12. <style>
  13. body,html{padding:0;margin:0;width:100%;height:100%;background:#000;-webkit-tap-highlight-color: transparent;}
  14. canvas{width:100%;height:100%;}
  15. #container{
  16. position:absolute;
  17. bottom:0;left:0;width:100%;height:100%;
  18. }
  19. </style>
  20. </head>
  21. <body>
  22. <script type="text/javascript">
  23. </script>
  24. <div id="container">
  25. <canvas id="canvas"></canvas>
  26. </div>
  27. <div style="display: none;">
  28. </div>
  29. <script src="js/index.js"></script>
  30. <script src="js/flyline.js"></script>
  31. <script language=javascript>
  32. var mebtnopenurl = 'http://game.ikongzhong.cn/';
  33. var thegameurl ="http://game.ikongzhong.cn/games/zqds/";
  34. var guanzhuurl ="http://mp.weixin.qq.com/s?__biz=MzI4MjA2MjE0MQ==&mid=246005295&idx=1&sn=490f8141976d607ba079d48f52a3fcd7#rd";
  35. var is9gUser=false;
  36. window.shareData = {
  37. "imgUrl": "http://mmbiz.qpic.cn/mmbiz/2zpp2iaH4HWE92HhqV9004ib4JDjX8NNnn1WpTricDylYZJtajFfPRfE4vW3hLNrZDRbOoXEU9sFPMS4HPRSjyRZA/640",
  38. "timeLineLink": thegameurl,
  39. "tTitle": "足球大师",
  40. "tContent": "足球大师"
  41. };
  42. function goHome(){
  43. window.location=mebtnopenurl;
  44. }
  45. function clickMore(){
  46. if((window.location+"").indexOf("zf",1)>0){
  47. window.location = mebtnopenurl;
  48. }
  49. else{
  50. goHome();
  51. }
  52. }
  53. function dp_share(){
  54. document.getElementById("share").style.display="";
  55. }
  56. function dp_Ranking(){
  57. window.location=mebtnopenurl;
  58. }
  59. function showAd(){
  60. }
  61. function hideAd(){
  62. }
  63. document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
  64. WeixinJSBridge.on('menu:share:appmessage', function(argv) {
  65. WeixinJSBridge.invoke('sendAppMessage', {
  66. "img_url": window.shareData.imgUrl,
  67. "link": window.shareData.timeLineLink,
  68. "desc": window.shareData.tContent,
  69. "title": window.shareData.tTitle
  70. }, onShareComplete);
  71. });
  72. WeixinJSBridge.on('menu:share:timeline', function(argv) {
  73. WeixinJSBridge.invoke('shareTimeline', {
  74. "img_url": window.shareData.imgUrl,
  75. "img_width": "640",
  76. "img_height": "640",
  77. "link": window.shareData.timeLineLink,
  78. "desc": window.shareData.tContent,
  79. "title": window.shareData.tTitle
  80. }, onShareComplete);
  81. });
  82. }, false);
  83. </script>
  84. <div id=share style="display: none">
  85. <img width=100% src="http://g.9g.com/share.png"
  86. style="position: fixed; z-index: 9999; top: 0; left: 0; display: "
  87. ontouchstart="document.getElementById('share').style.display='none';" />
  88. </div>
  89. <div style="display: none;">
  90. <script type="text/javascript">
  91. var myData = { gameid: "zqds" };
  92. function dp_submitScore(score,place){
  93. myData.score = parseInt(score*10);
  94. myData.scoreName = "踢了"+score+"米";
  95. if(score>0){
  96. game9g.utils.shareConfirm("小伙伴!你太棒了!一脚踢了"+score+"米踢到了"+place+"!在朋友圈里show出来,和你兄弟姐妹们比比谁NB!",dp_share,"提示");
  97. document.title ="小伙伴!你太棒了!一脚踢了"+score+"米踢到了"+place+"!在朋友圈里show出来,和你兄弟姐妹们比比谁NB!";
  98. window.shareData.tTitle = document.title;
  99. }
  100. }
  101. function onShareComplete(res) {
  102. if (localStorage.myuid && myData.score>0) {
  103. setTimeout(function(){
  104. if (confirm("?")) {
  105. window.location =mebtnopenurl;
  106. }
  107. else {
  108. document.location.href = mebtnopenurl;
  109. }
  110. }, 500);
  111. }
  112. else {
  113. document.location.href = guanzhuurl ;
  114. }
  115. }
  116. </script>
  117. <div style="display: none;">
  118. </div>
  119. <script type="text/javascript" src="js/game9g.utils.js?r="+Math.rand()></script>
  120. </body>
  121. </html>