index.html 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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. <script type="text/javascript" src="js/jquery.min.js"></script>
  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. <style>
  12. body,html{padding:0;margin:0;width:100%;height:100%;background:#000;-webkit-tap-highlight-color:transparent;}
  13. canvas{width:100%;height:100%;}#container{position:absolute;bottom:0;left:0;width:100%;height:100%;}.bt-animation{-webkit-transition:all 200ms;-moz-transition:all 200ms;-ms-transition:all 200ms;-o-transition:all 200ms;transition:all 200ms;}.bt-advertisement,.bt-h-scrren,.bt-v-scrren,.bt-play-logo-adv,.bt-play-share-tip{position:absolute;top:0;left:0;z-index:6000;width:100%;height:100%;text-align:center;font-size:16px;color:#fff;}#bt-play-logo-adv{z-index:9001;}#bt-play-logo-adv-lock{z-index:9000;}.bt-play-share-tip{text-align:right;}.bt-play-share-tip-img{margin:10px 2%0 0;width:60%;max-width:180px;}.bt-h-scrren,.bt-v-scrren{background:#fff;}.bt-h-scrren table,.bt-h-scrren tr,.bt-h-scrren td,.bt-v-scrren table,.bt-v-scrren tr,.bt-v-scrren td{width:100%;height:100%;padding:0;margin:0;}.bt-h-screen-img,.bt-v-screen-img{margin:10px 1%;max-width:98%;}.bt-lock-screen{position:absolute;top:0;left:0;z-index:5000;width:100%;height:100%;opacity:0.4;background:#000;}#bt-hide-lock{z-index:-1;}.bt-game-loading{position:fixed;position:absolute;top:0;left:0;width:100%;height:100%;font-size:1.6rem;text-align:center;color:gray;background:#fff;}.bt-game-loading table,.bt-game-loading tr,.bt-game-loading td{height:100%;width:100%;padding:0;margin:0;}.bt-game-loading.bt-img{width:452px;max-width:70%;}.bt-game-loading.bt-text{padding-top:30px;}.bt-hide{overflow:hidden!important;width:0!important;height:0!important;opacity:0!important;margin:0!important;padding:0!important;}
  14. #share-wx{
  15. background:rgba(0,0,0,0.8);
  16. position:absolute;top:0px;
  17. left:0px;
  18. width:100%;
  19. height:100%;
  20. z-index:10000;
  21. display:none;
  22. }
  23. #wx-qr{
  24. background:rgba(0,0,0,0.8);
  25. position:absolute;top:0px;
  26. left:0px;
  27. width:100%;
  28. height:100%;
  29. z-index:10000;
  30. display:none;
  31. }
  32. .lis{overflow: hidden;width: 100%;z-index: 99999;position: absolute;top:0;}
  33. .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:"微软雅黑"}
  34. .lis a img{position: relative;top: 1px;}
  35. </style>
  36. </head>
  37. <body>
  38. <script type="text/javascript" src="http://game.2sky.cn/js/code.js"></script>
  39. <div class="lis">
  40. <div style="float: left;width:33%;"><a style="border-bottom: 3px solid #fd6766;" href="/">游戏列表</a></div>
  41. <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>
  42. <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>
  43. </div>
  44. <div id="container">
  45. <canvas id="canvas"></canvas>
  46. </div>
  47. <div style="display: none;">
  48. </div>
  49. <script src="js/index.js"></script>
  50. <script src="js/flyline.js"></script>
  51. <script language=javascript>
  52. var mebtnopenurl = 'http://mp.weixin.qq.com/s?__biz=MzI4MjA2MjE0MQ==&mid=246005295&idx=1&sn=490f8141976d607ba079d48f52a3fcd7#rd';
  53. var rankurl = mebtnopenurl;
  54. dataForWeixin = {
  55. "appId": "",
  56. "imgUrl": "http://game.ikongzhong.cn/icon/qedfc.png",
  57. "url": "http://game.ikongzhong.cn/games/qedfc",
  58. "tTitle": "企鹅的复仇"
  59. "tContent": "企鹅的复仇"
  60. };
  61. function goHome(){
  62. window.location=mebtnopenurl;
  63. }
  64. function clickMore(){
  65. if((window.location+"").indexOf("zf",1)>0){
  66. window.location = mebtnopenurl;
  67. }
  68. else{
  69. goHome();
  70. }
  71. }
  72. function dp_Ranking() {
  73. window.location = rankurl;
  74. }
  75. document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
  76. WeixinJSBridge.on('menu:share:appmessage', function(argv) {
  77. WeixinJSBridge.invoke('sendAppMessage', {
  78. "appid": dataForWeixin.appId,
  79. "img_url": dataForWeixin.imgUrl,
  80. "link": dataForWeixin.url,
  81. "desc": dataForWeixin.tContent,
  82. "title": dataForWeixin.tTitle
  83. });
  84. setTimeout(function () {location.href = mebtnopenurl;}, 1500);
  85. });
  86. WeixinJSBridge.on('menu:share:timeline', function(argv) {
  87. WeixinJSBridge.invoke('shareTimeline', {
  88. "appid": dataForWeixin.appId,
  89. "img_url": dataForWeixin.imgUrl,
  90. "img_width": "640",
  91. "img_height": "640",
  92. "link": dataForWeixin.url,
  93. "desc": dataForWeixin.tContent,
  94. "title": dataForWeixin.tTitle
  95. });
  96. setTimeout(function () {location.href = mebtnopenurl;}, 1500);
  97. });
  98. }, false);
  99. function dp_share(){
  100. document.title ="总算复仇了,把大笨熊射出"+myData.scoreName+",我真是吊炸天!";
  101. document.getElementById("share").style.display="";
  102. dataForWeixin.tTitle = document.title;
  103. }
  104. </script>
  105. <div id="share" style="display: none">
  106. <img width="100%" src="/shares.png" style="position: fixed; z-index: 9999; top: 0; left: 0;" ontouchstart="document.getElementById('share').style.display='none';">
  107. </div>
  108. <div style="display: none;">
  109. <script type="text/javascript">
  110. var myData = {};
  111. function dp_submitScore(score){
  112. myData.score = score*10;
  113. myData.scoreName = score+"米";
  114. if(score>0){
  115. if (confirm("企鹅你太强悍了,把伦家熊熊射出"+score+"米!要不要通知一下小伙伴")){
  116. dp_share();
  117. }
  118. }
  119. }
  120. </script>
  121. </div>
  122. <script type="text/javascript" src="js/config.main.js"></script>
  123. <div style="display:none;">
  124. <script>
  125. var _hmt = _hmt || [];
  126. (function() {
  127. var hm = document.createElement("script");
  128. hm.src = "//hm.baidu.com/hm.js?fa356a94bf5ae253b76fefa953bb56e4";
  129. var s = document.getElementsByTagName("script")[0];
  130. s.parentNode.insertBefore(hm, s);
  131. })();
  132. </script>
  133. </div>
  134. </body>
  135. </html>