index.html 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. <html>
  2. <head>
  3. <meta charset="UTF-8">
  4. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,minimal-ui">
  5. <meta http-equiv="pragma" content="no-cache">
  6. <meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
  7. <meta http-equiv="expires" content="-1">
  8. <title>空中传媒</title>
  9. <link rel="stylesheet" type="text/css" href="css/m.min.css">
  10. </head>
  11. <body>
  12. <div id="container">
  13. </div>
  14. <div style="position:absolute;rigth:0px;bottom:20px;">找不到?摇一摇有惊喜哦!</div>
  15. <script language=javascript>
  16. var mebtnopenurl = 'http://game.ikongzhong.cn';
  17. window.shareData = {
  18. "imgUrl": "http://game.ikongzhong.cn/icon/qmxzfzm2.png",
  19. "timeLineLink": "http://game.ikongzhong.cn/games/qmxzfzm2",
  20. "tTitle": "升级版全民摇一摇寻找房祖名-空中传媒",
  21. "tContent": "升级版全民摇一摇寻找房祖名-空中传媒"
  22. };
  23. function goHome(){
  24. window.location=mebtnopenurl;
  25. }
  26. function clickMore(){
  27. // if((window.location+"").indexOf("zf",1)>0){
  28. // window.location = "http://game.ikongzhong.cn/games/qmxzfzm2";
  29. // }
  30. // else{
  31. // goHome();
  32. // }
  33. if (Math.random() > 0.5) {
  34. window.location = "http://game.ikongzhong.cn/games/qmxzfzm2";
  35. }
  36. else {
  37. goHome();
  38. }
  39. }
  40. function dp_share(){
  41. document.title ="升级版!我在1分钟内" + (myData.score) + "次从柯少身边找到房祖名!你也来试试!";
  42. document.getElementById("share").style.display="";
  43. window.shareData.tTitle = document.title;
  44. }
  45. function dp_Ranking(){
  46. window.location=mebtnopenurl;
  47. }
  48. function showAd(){
  49. }
  50. function hideAd(){
  51. }
  52. document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
  53. WeixinJSBridge.on('menu:share:appmessage', function(argv) {
  54. WeixinJSBridge.invoke('sendAppMessage', {
  55. "img_url": window.shareData.imgUrl,
  56. "link": window.shareData.timeLineLink,
  57. "desc": window.shareData.tContent,
  58. "title": window.shareData.tTitle
  59. }, onShareComplete);
  60. });
  61. WeixinJSBridge.on('menu:share:timeline', function(argv) {
  62. WeixinJSBridge.invoke('shareTimeline', {
  63. "img_url": window.shareData.imgUrl,
  64. "img_width": "640",
  65. "img_height": "640",
  66. "link": window.shareData.timeLineLink,
  67. "desc": window.shareData.tContent,
  68. "title": window.shareData.tTitle
  69. }, onShareComplete);
  70. });
  71. }, false);
  72. </script>
  73. <div style="display: none;">
  74. <script type="text/javascript">
  75. var myData = { gameid: "qmxzfzm" };
  76. var domain = ["oixm.cn", "hiemma.cn", "peagame.net"][parseInt(Math.random() * 3)];
  77. window.shareData.timeLineLink = "http://game.ikongzhong.cn/games/qmxzfzm2";
  78. function dp_submitScore(score){
  79. myData.score = parseInt(score);
  80. myData.scoreName = "成功寻找"+score+"次房祖名";
  81. if(score>1){
  82. if (confirm("你一共" + score+ "次从柯少身边找到房祖名,你的24k氪金眼还没瞎吗?快让你的朋友也来试试吧")){
  83. dp_share();
  84. }
  85. }
  86. }
  87. function onShareComplete(res) {
  88. if (localStorage.myuid && myData.score != undefined) {
  89. setTimeout(function(){
  90. if (confirm("要将成绩提交到空中传媒排行榜吗?")) {
  91. window.location = "http://game.ikongzhong.cn/";
  92. }
  93. else {
  94. document.location.href = mebtnopenurl;
  95. }
  96. }, 500);
  97. }
  98. else {
  99. document.location.href = mebtnopenurl;
  100. }
  101. }
  102. </script>
  103. <div style="display: none;">
  104. <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>
  105. <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>
  106. </div>
  107. </body>
  108. </html>
  109. <script id="tpl" type="text/html">
  110. <div class="grid">
  111. <div class="page hide" id="loading">
  112. <div class="loading-txt"><%=loading%></div>
  113. </div>
  114. <div class="page hide" id="index">
  115. <h1><%=title%></h1>
  116. <div id="help"><%=help_txt%></div>
  117. <div class="btns">
  118. <button data-type="color" class="btn play-btn">
  119. <%=btn_start%>
  120. </button>
  121. <a href="javascript:void(0);" onclick="clickMore();" class="btn btn-boyaa">
  122. <%=btn_more_game%>
  123. </a>
  124. </div>
  125. </div>
  126. <div class="page hide" id="room">
  127. <header>
  128. <span class="lv">
  129. <%=score%>
  130. <em>
  131. 1
  132. </em>
  133. </span>
  134. <span class="time">
  135. </span>
  136. <!-- <span class="btn btn-pause">
  137. <%=btn_pause%>
  138. </span>
  139. -->
  140. </header>
  141. <div id="box" class="lv1">
  142. </div>
  143. </div>
  144. <div class="page hide" id="dialog">
  145. <div class="inner">
  146. <div class="content gameover">
  147. <div class="inner-content">
  148. <h3></h3>
  149. <div class="btn-wrap">
  150. <button class="btn btn-restart">
  151. <%=btn_reTry%>
  152. </button>
  153. <a href="javascript:void(0);" onclick="clickMore();" class="btn btn-boyaa">
  154. <%=btn_more_game%>
  155. </a>
  156. </div>
  157. </div>
  158. </div>
  159. <div class="content pause">
  160. <div class="inner-content">
  161. <h3>
  162. <%=game_pause%>
  163. </h3>
  164. <div class="btn-wrap">
  165. <button class="btn btn-resume">
  166. <%=btn_resume%>
  167. </button>
  168. <a href="javascript:void(0);" onclick="clickMore();" class="btn btn-boyaa">
  169. <%=btn_more_game%>
  170. </a>
  171. </div>
  172. </div>
  173. </div>
  174. </div>
  175. </ins>
  176. </div>
  177. </div>
  178. <div id=share style="display: none">
  179. <img width=100% src="http://game.ikongzhong.cn/games/qmxzfzm2/share.png"
  180. style="position: fixed; z-index: 9999; top: 0; left: 0; display: "
  181. ontouchstart="document.getElementById('share').style.display='none';" />
  182. </div>
  183. </script>
  184. <script src="js/libs.min.js"></script>
  185. <script src="js/main.min3.js"></script>