index.html 4.5 KB

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