index.html 7.0 KB

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