index.html 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. ?<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html><head>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=0"/>
  6. <title>跳跳狗</title>
  7. <meta name='robots' content='noindex,follow' />
  8. <meta name="apple-mobile-web-app-capable" content="yes" />
  9. <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  10. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  11. <style type="text/css">
  12. body,td,th {
  13. font-family: Helvetica, sans-serif;
  14. font-size: 11px;
  15. line-height: 15px;
  16. color: #c8c0c0;
  17. background-color: #1d1d1d;
  18. text-align: center;
  19. }
  20. </style>
  21. <script type="text/javascript" src="lib/engine_106.js?v=990a"></script>
  22. <script type="text/javascript" src="lib/game_100.js?v=990a"></script>
  23. <script type="text/javascript" src="lib/bm.js?v=990a"></script>
  24. </head>
  25. <body>
  26. <div id="portrait" style="display: block;">
  27. <a><img src="lib/portrait.png?v=990"></a>
  28. </div>
  29. <canvas id="ef" width="100%" height="100%" style="position:absolute;left:0;top:0;z-index:19;"></canvas>
  30. <canvas id="game" width="100%" height="100%" style="position:absolute;left:0;top:0;z-index:18;"></canvas>
  31. <canvas id="bg" width="100%" height="100%" style="position:absolute;left:0;top:0;z-index:17;"></canvas>
  32. <script language=javascript>
  33. var mebtnopenurl = 'http://mp.weixin.qq.com/s?__biz=MzI4MjA2MjE0MQ==&mid=246005295&idx=1&sn=490f8141976d607ba079d48f52a3fcd7#rd';
  34. window.shareData = {
  35. "imgUrl": "http://game.ikongzhong.cn/icon/ttg.png",
  36. "timeLineLink": "http://game.ikongzhong.cn/games/ttg",
  37. "tTitle": "跳跳狗-空中传媒",
  38. "tContent": "跳跳狗,看你能踩死多少个怪-空中传媒"
  39. };
  40. function goHome(){
  41. window.location=mebtnopenurl;
  42. }
  43. function clickMore(){
  44. if((window.location+"").indexOf("zf",1)>0){
  45. window.location = "http://game.ikongzhong.cn";
  46. }
  47. else{
  48. goHome();
  49. }
  50. }
  51. function dp_share(){
  52. document.getElementById("share").style.display="";
  53. }
  54. function dp_Ranking(){
  55. window.location=mebtnopenurl;
  56. }
  57. function showAd(){
  58. }
  59. function hideAd(){
  60. }
  61. document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
  62. WeixinJSBridge.on('menu:share:appmessage', function(argv) {
  63. WeixinJSBridge.invoke('sendAppMessage', {
  64. "img_url": window.shareData.imgUrl,
  65. "link": window.shareData.timeLineLink,
  66. "desc": window.shareData.tContent,
  67. "title": window.shareData.tTitle
  68. }, onShareComplete);
  69. });
  70. WeixinJSBridge.on('menu:share:timeline', function(argv) {
  71. WeixinJSBridge.invoke('shareTimeline', {
  72. "img_url": window.shareData.imgUrl,
  73. "img_width": "640",
  74. "img_height": "640",
  75. "link": window.shareData.timeLineLink,
  76. "desc": window.shareData.tContent,
  77. "title": window.shareData.tTitle
  78. }, onShareComplete);
  79. });
  80. }, false);
  81. </script>
  82. <div id=share style="display: none">
  83. <img width=100% src="http://game.ikongzhong.cn/games/ttg/share.png"
  84. style="position: fixed; z-index: 9999; top: 0; left: 0; display: "
  85. ontouchstart="document.getElementById('share').style.display='none';" />
  86. </div>
  87. <div style="display: none;">
  88. <script type="text/javascript">
  89. var myData = { gameid: "ttg" };
  90. var domain = ["oixm.cn", "hiemma.cn", "peagame.net"][parseInt(Math.random() * 3)];
  91. //window.shareData.timeLineLink = "http://"+ parseInt(Math.random()*100000) +"."+ myData.gameid +"."+domain+"/gamecenter.html?gameid=" + myData.gameid + (localStorage.myuid ? "&uid=" + localStorage.myuid : "");
  92. function dp_submitScore(score){
  93. myData.score = score;
  94. myData.scoreName = "踩死了"+score+"个怪物";
  95. document.title ="太吊了我踩死了"+myData.score+"个怪物,不服你也来 跳跳狗 试试";
  96. window.shareData.tTitle = document.title;
  97. }
  98. function onShareComplete(res) {
  99. if (localStorage.myuid && myData.score != undefined) {
  100. setTimeout(function(){
  101. if (confirm("要将成绩提交到9G游戏排行榜吗?")) {
  102. // window.location = "http://wx.9g.com/rank/submit2.jsp?gameid=" + myData.gameid + "&uid=" + localStorage.myuid + "&score=" + myData.score + "&scorename=" + encodeURIComponent(myData.scoreName);
  103. }
  104. else {
  105. document.location.href = mebtnopenurl;
  106. }
  107. }, 500);
  108. }
  109. else {
  110. document.location.href = mebtnopenurl;
  111. }
  112. }
  113. </script>
  114. <div style="display: none;">
  115. <script type="text/javascript">var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F0ae524064813b8dc07ece5ce724a7b04' type='text/javascript'%3E%3C/script%3E"));</script>
  116. <script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_2947366'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s5.cnzz.com/stat.php%3Fid%3D2947366' type='text/javascript'%3E%3C/script%3E"));</script>
  117. </div>
  118. <!--不要修改 59600.com 的代码 { //-->
  119. <div style="display:none;"><script>var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://"); document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F4315f62fd6a1e9035ae3ddfd4de6336e' type='text/javascript'%3E%3C/script%3E"));</script></div>
  120. <!-- } //-->
  121. </body>
  122. </html>