index.html 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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 charset="utf-8">
  5. <title>拯救精子-空中传媒</title>
  6. <script type="text/javascript">
  7. var _con = {}; _con["num"] = 60;
  8. </script>
  9. <link rel="icon" type="image/GIF" href="./res/favicon.ico"/>
  10. <meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1, initial-scale=1, user-scalable=no">
  11. <meta name="apple-mobile-web-app-capable" content="yes" />
  12. <style>
  13. body, canvas, div {
  14. -moz-user-select: none;
  15. -webkit-user-select: none;
  16. -ms-user-select: none;
  17. -khtml-user-select: none;
  18. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  19. }
  20. #share-wx{
  21. background:rgba(0,0,0,0.8);
  22. position:absolute;top:0px;
  23. left:0px;
  24. width:100%;
  25. height:100%;
  26. z-index:10000;
  27. display:none;
  28. }
  29. #wx-qr{
  30. background:rgba(0,0,0,0.8);
  31. position:absolute;top:0px;
  32. left:0px;
  33. width:100%;
  34. height:100%;
  35. z-index:10000;
  36. display:none;
  37. }
  38. .lis{overflow: hidden;width: 100%;z-index: 99999;position: absolute;top:0;}
  39. .lis a{display: block;width:99.9%;color:#ffffff;font-size:14px;text-decoration: none;background:#606783;text-align: center;opacity: 0.5;line-height:30px;font-weight: bold;font-family:"微软雅黑"}
  40. .lis a img{position: relative;top: 1px;}
  41. </style>
  42. </head>
  43. <body style="padding:0; margin: 0; background: #000;">
  44. <script type="text/javascript" src="./js/code.js"></script>
  45. <div class="lis">
  46. <div style="float: left;width:33%;"><a style="border-bottom: 3px solid #fd6766;" href="http://game.ikongzhong.cn/">游戏列表</a></div>
  47. <div style="float: left;width:34%;"><a style="border-bottom: 3px solid #04fece;" href="http://mp.weixin.qq.com/s?__biz=MzI4MjA2MjE0MQ==&mid=246005295&idx=1&sn=490f8141976d607ba079d48f52a3fcd7#rd">关注收藏</a></div>
  48. <div style="float: left;width:33%;"><a style="width:100%;margin:0;border-bottom: 3px solid #fdcd01;" onclick="location.href=location.href;" href="javascript:;" ><img width="15" src="./vapp/4.png">重玩</a></div>
  49. </div>
  50. <canvas id="gameCanvas" width="320" height="480"></canvas>
  51. <div>
  52. <script type="text/javascript">
  53. /*20:3底部悬*/
  54. var cpro_id = "u1639910";
  55. </script>
  56. </div>
  57. <script src="./js/60/game.min.js"></script>
  58. <script language=javascript>
  59. var mebtnopenurl = 'http://mp.weixin.qq.com/s?__biz=MzI4MjA2MjE0MQ==&mid=246005295&idx=1&sn=490f8141976d607ba079d48f52a3fcd7#rd';
  60. dataForWeixin = {
  61. "appId": "wx408c550b2ca13101",
  62. "imgUrl": "http://game.ikongzhong.cn/games/icon/jingzi.png",
  63. "url": "http://game.ikongzhong.cn/games/jingzi/",
  64. "tTitle": "拯救精子",
  65. "tContent": "拯救精子"
  66. };
  67. function goHome(){
  68. window.location=mebtnopenurl;
  69. }
  70. function clickMore(){
  71. goHome();
  72. }
  73. function dp_share(){
  74. document.title ="哇塞你拯救了"+myData.score+"只可爱的小蝌蚪,你的小伙伴儿知道吗?";
  75. document.getElementById("share").style.display="";
  76. dataForWeixin.tTitle = document.title;
  77. }
  78. function dp_Ranking(){
  79. window.location=mebtnopenurl;
  80. }
  81. document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
  82. WeixinJSBridge.on('menu:share:appmessage', function(argv) {
  83. WeixinJSBridge.invoke('sendAppMessage', {
  84. "appid": dataForWeixin.appId,
  85. "img_url": dataForWeixin.imgUrl,
  86. "link": dataForWeixin.url,
  87. "desc": dataForWeixin.tContent,
  88. "title": dataForWeixin.tTitle
  89. }, onShareComplete);
  90. });
  91. WeixinJSBridge.on('menu:share:timeline', function(argv) {
  92. WeixinJSBridge.invoke('shareTimeline', {
  93. "appid": dataForWeixin.appId,
  94. "img_url": dataForWeixin.imgUrl,
  95. "img_width": "640",
  96. "img_height": "640",
  97. "link": dataForWeixin.url,
  98. "desc": dataForWeixin.tContent,
  99. "title": dataForWeixin.tTitle
  100. }, onShareComplete);
  101. });
  102. }, false);
  103. </script>
  104. <div id=share style="display: none">
  105. <img width=100% src="./vapp/60/share.png"
  106. style="position: fixed; z-index: 9999; top: 0; left: 0; display: "
  107. ontouchstart="document.getElementById('share').style.display='none';" />
  108. </div>
  109. <script type="text/javascript">
  110. var myData = { gameid: "zjjz" };
  111. function dp_submitScore(score){
  112. myData.score = score;
  113. myData.scoreName = "拯救了"+score+"只可爱的小蝌蚪";
  114. if(score>0){
  115. if (confirm("你拯救了"+score+"只可爱的小蝌蚪,再接再厉!")){
  116. dp_share();
  117. }
  118. }
  119. }
  120. function onShareComplete(res) {
  121. document.location.href = mebtnopenurl;
  122. }
  123. </script>
  124. <div style="display: none;"><script type="text/javascript" src="http://tajs.qq.com/stats?sId=36313548" charset="UTF-8"></script></div>
  125. </body>
  126. </html>