index.html 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>空中传媒</title>
  6. <meta name="viewport"
  7. content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"/>
  8. <meta name="apple-mobile-web-app-capable" content="yes"/>
  9. <meta http-equiv="Access-Control-Allow-Origin" content="*">
  10. <meta name="full-screen" content="true"/>
  11. <meta name="screen-orientation" content="portrait"/>
  12. <meta name="x5-fullscreen" content="true"/>
  13. <meta name="360-fullscreen" content="true"/>
  14. <script src="jquery.min.js"></script>
  15. <style>
  16. *{padding: 0; margin: 0;}
  17. body {
  18. text-align: center;
  19. background: #000000;
  20. padding: 0;
  21. border: 0;
  22. margin: 0;
  23. height: 100%;
  24. }
  25. html {
  26. -ms-touch-action: none; /* Direct all pointer events to JavaScript code. */
  27. }
  28. #ranklist{
  29. display:none;position:fixed;top:0;left:0;width:100%;height:100%;text-align:center;color:#fff;font-size:24px;background:rgba(255,255,255,1); text-align: left;overflow-y:auto;
  30. }
  31. #ranklist ul{}
  32. #ranklist ul li{height:50px;border-bottom:1px #bbb dashed;list-style-type:none;}
  33. #ranklist ul .avatar{float:left;width:30px;height:30px;padding:10px 0; margin-left: 10px}
  34. #ranklist ul .avatar img{width:30px;height:30px;}
  35. #ranklist ul .name{float:left;height:30px;padding:10px 0 10px 10px;font-size:10px;color:#838383;}
  36. #ranklist ul .num{float:left;height:30px;padding:10px 0 10px 0;font-size:20px;color:#b20204; margin-right: 10px}
  37. #ranklist ul .fst{text-align:center;line-height:50px;font-size:18px;color:#777777;font-weight:bold;border:none;}
  38. #top_bar{height: 45px; width: 100% ; line-height: 45px;background: #000; display: block; text-align: right; font-size: 1em}
  39. .sbgshow{display:block;position:fixed;top:0;left:0;width:100%;height:100%;text-align:center;color:#fff;font-size:30px;line-height:1.7em;background:rgba(0,0,0,0.85);}
  40. .sbgshow .arron{ position:absolute;top:8px;right:8px;width:100px;height:100px;background:url(http://baby.ci123.com/yunqi/m/weixin/images/arron.png) no-repeat; background-size:100px 100px;}
  41. .sbgshow p{padding-top:78px;}
  42. .sbg{display:none;position:fixed;top:0;left:0;width:100%;height:100%;text-align:center;color:#fff;font-size:26px;line-height:1.7em;background:rgba(0,0,0,0.85);}
  43. .sbg .arron{ position:absolute;top:8px;right:8px;width:100px;height:100px;background:url(http://baby.ci123.com/yunqi/m/weixin/images/arron.png) no-repeat; background-size:100px 100px;}
  44. .sbg p{padding-top:78px;}
  45. #myfav{display: none;}
  46. </style>
  47. <style type="text/css">.app2{position:fixed;z-index:1000;left:0;top:0; width:100%;padding:5px 12px;color:#fff;background:rgba(0,0,0,0.5);}.app2 .a{font-size:18px;font-weight:bold;padding-bottom:4px;}.app2 .b{font-size:10px;}.app2 .load{float:left;background:#f66;color:#fff;font-size:16px;margin-top:4px;padding:7px 14px;border-radius:5px;}
  48. </style>
  49. </head>
  50. <body>
  51. <div style="display:inline-block;width:100%; height:100%;margin: 0 auto; background: black; position:relative;"
  52. id="gameDiv">
  53. <canvas id="gameCanvas" width="480" height="800" style="background-color: #000000"></canvas>
  54. </div>
  55. <script type="text/javascript">
  56. var document_class="GameApp";
  57. </script>
  58. <script src="egret_loader.js"></script>
  59. <script src="game-min2.js"></script>
  60. <script>
  61. Date.prototype.Format = function(fmt)
  62. {
  63. var o = {
  64. "M+" : this.getMonth()+1, //月份
  65. "d+" : this.getDate(), //日
  66. "h+" : this.getHours(), //小时
  67. "m+" : this.getMinutes(), //分
  68. "s+" : this.getSeconds(), //秒
  69. "q+" : Math.floor((this.getMonth()+3)/3), //季度
  70. "S" : this.getMilliseconds() //毫秒
  71. };
  72. if(/(y+)/.test(fmt))
  73. fmt=fmt.replace(RegExp.$1, (this.getFullYear()+"").substr(4 - RegExp.$1.length));
  74. for(var k in o)
  75. if(new RegExp("("+ k +")").test(fmt))
  76. fmt = fmt.replace(RegExp.$1, (RegExp.$1.length==1) ? (o[k]) : (("00"+ o[k]).substr((""+ o[k]).length)));
  77. return fmt;
  78. }
  79. $(document).ready(function(){
  80. info={};
  81. ranks={};
  82. egret_h5.startGame();
  83. var height = $(window).height();
  84. $("#ranklist").css("height",height+"px");
  85. $("#ranklist ul").css("height",(height-45)+"px");
  86. });
  87. </script>
  88. <script language=javascript>
  89. var mebtnopenurl = 'http://mp.weixin.qq.com/s?__biz=MzI4MjA2MjE0MQ==&mid=246005295&idx=1&sn=490f8141976d607ba079d48f52a3fcd7#rd';
  90. window.shareData = {
  91. "imgUrl": "http://game.ikongzhong.cn/games/jssjm/icon.png",
  92. "timeLineLink": "http://game.ikongzhong.cn/games/jssjm/index.html",
  93. "tTitle": "激射神经猫-空中传媒",
  94. "tContent": "激射神经猫-空中传媒"
  95. };
  96. function goHome(){
  97. window.location=mebtnopenurl;
  98. }
  99. function clickMore(){
  100. if((window.location+"").indexOf("zf",1)>0){
  101. window.location = "http://game.ikongzhong.cn/index.html";
  102. }
  103. else{
  104. goHome();
  105. }
  106. }
  107. function dp_share(){
  108. document.title ="企鹅和笨熊互打后,神经猫也来参合了,一下射出"+myData.score+"米小伙伴一起来爽!";
  109. document.getElementById("share").style.display="";
  110. window.shareData.tTitle = document.title;
  111. }
  112. function dp_Ranking(){
  113. window.location=mebtnopenurl;
  114. }
  115. function showAd(){
  116. }
  117. function hideAd(){
  118. }
  119. document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
  120. WeixinJSBridge.on('menu:share:appmessage', function(argv) {
  121. WeixinJSBridge.invoke('sendAppMessage', {
  122. "img_url": window.shareData.imgUrl,
  123. "link": window.shareData.timeLineLink,
  124. "desc": window.shareData.tContent,
  125. "title": window.shareData.tTitle
  126. }, null);
  127. });
  128. WeixinJSBridge.on('menu:share:timeline', function(argv) {
  129. WeixinJSBridge.invoke('shareTimeline', {
  130. "img_url": window.shareData.imgUrl,
  131. "img_width": "640",
  132. "img_height": "640",
  133. "link": window.shareData.timeLineLink,
  134. "desc": window.shareData.tContent,
  135. "title": window.shareData.tTitle
  136. }, null);
  137. });
  138. }, false);
  139. </script>
  140. <div id=share style="display: none">
  141. <img width=100% src="http://game.ikongzhong.cn/games/jssjm/share.png"
  142. style="position: fixed; z-index: 9999; top: 0; left: 0; display: "
  143. ontouchstart="document.getElementById('share').style.display='none';" />
  144. </div>
  145. <div style="display: none;">
  146. <script type="text/javascript">
  147. var myData = { gameid: "jssjm" };
  148. window.shareData.timeLineLink = "http://game.ikongzhong.cn/games/jssjm/index.html";
  149. function dp_submitScore(score){
  150. myData.score = score;
  151. myData.scoreName = score+"米";
  152. if(score>0){
  153. if (confirm("我一不小心把神经猫射出"+score+"米,整个人都神清气爽!")){
  154. dp_share();
  155. }
  156. }
  157. }
  158. function onShareComplete(res) {
  159. if (localStorage.myuid && myData.score != undefined) {
  160. setTimeout(function(){
  161. if (confirm("要将成绩提交到空中传媒排行榜吗?")) {
  162. window.location = "http://wx.9g.com/rank/submit2.jsp?gameid=" + myData.gameid + "&uid=" + localStorage.myuid + "&score=" + myData.score + "&scorename=" + encodeURIComponent(myData.scoreName);
  163. }
  164. else {
  165. document.location.href = mebtnopenurl;
  166. }
  167. }, 500);
  168. }
  169. else {
  170. document.location.href = mebtnopenurl;
  171. }
  172. }
  173. </script>
  174. <div style="display: none;">
  175. <script type="text/javascript" src="http://tajs.qq.com/stats?sId=36313548" charset="UTF-8"></script>
  176. </div>
  177. <script>
  178. function getParameter(name) {
  179. var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
  180. var r = window.location.search.substr(1).match(reg);
  181. if (r != null) return r[2]; return null;
  182. }
  183. if (/android|linux/i.test(navigator.userAgent)) {
  184. if(getParameter('f')=='zf'){
  185. setTimeout(function(){
  186. $("<div style='position:absolute;left:0px;bottom:0px;'><a href='http://game.ikongzhong.cn/games/dtcq/game.html'><img src='http://game.ikongzhong.cn/games/dtcq/ad2.jpg' style='width: 100%;'/></a></div>").appendTo($("#gameDiv"));
  187. }, 3000);
  188. }
  189. }
  190. </script>
  191. </body>
  192. </html>