index.html 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  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="m.min.css">
  10. </head>
  11. <style>
  12. html,body,{
  13. margin: 0px;
  14. padding: 0px;
  15. border:none;
  16. text-align: center;
  17. }
  18. #container{
  19. height:90%;
  20. }
  21. #share-wx{
  22. background:rgba(0,0,0,0.8);
  23. position:absolute;top:0px;
  24. left:0px;
  25. width:100%;
  26. height:100%;
  27. z-index:10000;
  28. display:none;
  29. }
  30. #wx-qr{
  31. background:rgba(0,0,0,0.8);
  32. position:absolute;top:0px;
  33. left:0px;
  34. width:100%;
  35. height:100%;
  36. z-index:10000;
  37. display:none;
  38. }
  39. .lis{overflow: hidden;width: 100%;z-index: 99999;position: absolute;top:0;right:0;left:1}
  40. .lis a{display: block;width:100%;color:#ffffff;font-size:14px;text-decoration: none;background:#606783;text-align: center;opacity: 0.5;line-height:30px;font-weight: bold;font-family:"微软雅黑"}
  41. .lis a img{position: relative;top: 1px;}
  42. .ads{overflow: hidden;width: 100%;z-index: 999999;position: absolute;bottom:0;right:1}
  43. </style>
  44. <body>
  45. <!--div class="lis">
  46. <div style="float: left;width:33%;"><a style="border-bottom: 3px solid #fd6766;" href="/list/">游戏列表</a></div>
  47. <div style="float: left;width:34%;"><a style="border-bottom: 3px solid #04fece;" href="/jump/zjkbst.do">关注收藏</a></div>
  48. <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="4.png">重玩</a></div>
  49. </div-->
  50. <div id="container">
  51. </div>
  52. <script language=javascript>
  53. var mebtnopenurl = 'http://game.ikongzhong.cn';
  54. window.shareData = {
  55. "imgUrl": "http://game.ikongzhong.cn/icon/jolin.png",
  56. "timeLineLink": "http://game.ikongzhong.cn/games/jolin",
  57. "tTitle": "一起寻找蔡依林,众多凤姐里找蔡依林,我果然是火眼金睛呀!",
  58. "tContent": "一起寻找蔡依林,众多凤姐里找蔡依林,我果然是火眼金睛呀!"
  59. };
  60. function goHome(){
  61. window.location=mebtnopenurl;
  62. }
  63. function clickMore(){
  64. if((window.location+"").indexOf("zf",1)>0){
  65. window.location = "http://game.ikongzhong.cn/";
  66. }
  67. else{
  68. goHome();
  69. }
  70. }
  71. function dp_share(){
  72. document.title ="众多凤姐里找蔡依林!哇哦,被我找到"+myData.score+"个蔡依林,你行么?";
  73. document.getElementById("share").style.display="";
  74. window.shareData.tTitle = document.title;
  75. }
  76. function dp_Ranking(){
  77. window.location=mebtnopenurl;
  78. }
  79. function showAd(){
  80. }
  81. function hideAd(){
  82. }
  83. document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
  84. WeixinJSBridge.on('menu:share:appmessage', function(argv) {
  85. WeixinJSBridge.invoke('sendAppMessage', {
  86. "img_url": window.shareData.imgUrl,
  87. "link": window.shareData.timeLineLink,
  88. "desc": window.shareData.tContent,
  89. "title": window.shareData.tTitle
  90. }, onShareComplete);
  91. });
  92. WeixinJSBridge.on('menu:share:timeline', function(argv) {
  93. WeixinJSBridge.invoke('shareTimeline', {
  94. "img_url": window.shareData.imgUrl,
  95. "img_width": "640",
  96. "img_height": "640",
  97. "link": window.shareData.timeLineLink,
  98. "desc": window.shareData.tContent,
  99. "title": window.shareData.tTitle
  100. }, onShareComplete);
  101. });
  102. }, false);
  103. </script>
  104. <div style="display: none;">
  105. <script type="text/javascript">
  106. var myData = { gameid: "djyqlzmz" };
  107. //window.shareData.timeLineLink = "http://game.ikongzhong.cn/gamecenter.html?gameid=" + myData.gameid + (localStorage.myuid ? "&uid=" + localStorage.myuid : "");
  108. function dp_submitScore(score){
  109. myData.score = score;
  110. myData.scoreName ="找到"+score+"次蔡依林";
  111. if(score>1){
  112. if (confirm("屌爆了你"+myData.scoreName+",惊为天人不把这个游戏告诉你的小伙伴儿,那就太不厚道咯!")){
  113. dp_share();
  114. }
  115. else {
  116. dp_share();
  117. }
  118. }
  119. }
  120. function onShareComplete(res) {
  121. if (localStorage.myuid && myData.score != undefined) {
  122. setTimeout(function(){
  123. if (confirm("要将成绩分享到朋友圈吗?")) {
  124. // window.location = "http://wx.9g.com/rank/submit2.jsp?gameid=" + myData.gameid + "&uid=" + localStorage.myuid + "&score=" + myData.score + "&scorename=" + encodeURIComponent(myData.scoreName);
  125. }
  126. else {
  127. document.location.href = mebtnopenurl;
  128. }
  129. }, 500);
  130. }
  131. else {
  132. document.location.href = mebtnopenurl;
  133. }
  134. }
  135. </script>
  136. </body>
  137. </html>
  138. <script id="tpl" type="text/html">
  139. <div class="grid">
  140. <div class="page hide" id="loading">
  141. <div class="loading-txt"><%=loading%></div>
  142. </div>
  143. <div class="page hide" id="index">
  144. <h1><%=title%></h1>
  145. <div id="help"><%=help_txt%></div>
  146. <div class="btns">
  147. <button data-type="color" class="btn play-btn">
  148. <%=btn_start%>
  149. </button>
  150. <a href="javascript:void(0);" onclick="clickMore();" class="btn btn-boyaa">
  151. <%=btn_more_game%>
  152. </a>
  153. </div>
  154. </div>
  155. <div class="page hide" id="room">
  156. <header>
  157. <span class="lv">
  158. <%=score%>
  159. <em>
  160. 1
  161. </em>
  162. </span>
  163. <span class="time">
  164. </span>
  165. <span class="btn btn-pause">
  166. <%=btn_pause%>
  167. </span>
  168. </header>
  169. <div id="box" class="lv1">
  170. </div>
  171. </div>
  172. <div class="page hide" id="dialog">
  173. <div class="inner">
  174. <div class="content gameover">
  175. <div class="inner-content">
  176. <h3></h3>
  177. <div class="btn-wrap">
  178. <button class="btn btn-restart">
  179. <%=btn_reTry%>
  180. </button>
  181. <a href="javascript:void(0);" onclick="clickMore();" class="btn btn-boyaa">
  182. <%=btn_more_game%>
  183. </a>
  184. </div>
  185. </div>
  186. </div>
  187. <div class="content pause">
  188. <div class="inner-content">
  189. <h3>
  190. <%=game_pause%>
  191. </h3>
  192. <div class="btn-wrap">
  193. <button class="btn btn-resume">
  194. <%=btn_resume%>
  195. </button>
  196. <a href="javascript:void(0);" onclick="clickMore();" class="btn btn-boyaa">
  197. <%=btn_more_game%>
  198. </a>
  199. </div>
  200. </div>
  201. </div>
  202. </div>
  203. </ins>
  204. </div>
  205. </div>
  206. <div id=share style="display: none">
  207. <img width=100% src="share.png"
  208. style="position: fixed; z-index: 9999; top: 0; left: 0; display: "
  209. ontouchstart="document.getElementById('share').style.display='none';" />
  210. </div>
  211. </script>
  212. <script src="libs.min.js"></script>
  213. <script src="main.min.js"></script>
  214. <!--百度-->
  215. <div style="display: none;">
  216. </div>
  217. <!--百度-->