index.html 7.8 KB

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