index.html 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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,,minimal-ui" />
  8. <meta name="apple-mobile-web-app-capable" content="yes" />
  9. <meta name="full-screen" content="true" />
  10. <meta name="screen-orientation" content="portrait" />
  11. <meta name="x5-fullscreen" content="true" />
  12. <meta name="360-fullscreen" content="true" />
  13. <link href="css/game.css" rel="stylesheet" type="text/css" />
  14. </head>
  15. <body>
  16. <div id="container">
  17. <div class="grid">
  18. <div class="page hide" id="loading" style="display: block;">
  19. <div class="loading-txt">
  20. 加载中...
  21. </div>
  22. </div>
  23. <div class="page hide" id="index" style="display: none">
  24. <div
  25. style="position: absolute; width: 100%; height: 100%; max-width: 480px; z-index: -1">
  26. <img src="img/start.png" height="100%" width="100%" />
  27. </div>
  28. <!--<h1>
  29. 来治明星的你
  30. </h1>
  31. <div id="help">
  32. 出现提示字母时,从下面的三个头像中找到首字母相匹配的人物
  33. </div>
  34. -->
  35. <div class="btns">
  36. <img src="img/startbtn.png" class="btn2" id="startbtn" />
  37. <img src="img/morebtn.png" class="btn2" onClick="clickMore();" />
  38. </div>
  39. </div>
  40. <div class="page hide" id="room" style="display: none;">
  41. <header>
  42. <span class="lv">闯关: <em> 0 </em> </span>
  43. <span class="time">60</span>
  44. </header>
  45. <div id="boxguess" class="lv1" style="width: 150px; height: 150px;">
  46. <div class="boxguesstext"></div>
  47. </div>
  48. <div id="boxlist" style="width: 96%; height: 120px;">
  49. </div>
  50. </div>
  51. <div class="page hide" id="dialog">
  52. <div
  53. style="position: absolute; width: 100%; height: 100%; max-width: 480px; z-index: -1">
  54. <img src="img/over.png" height="100%" width="100%" />
  55. </div>
  56. <div class="inner">
  57. <div class="content gameover">
  58. <div class="inner-content">
  59. <div id="result"></div>
  60. <div class="btns">
  61. <img src="img/againbtn.png" class="btn2" id="againbtn">
  62. <img src="img/morebtn.png" class="btn2" id="morebtn2" onClick="clickMore();">
  63. </div>
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. </div>
  69. <div id="orientation"
  70. style="position: absolute; width: 100%; height: 100%; max-width: 480px; z-index: 99;display:none;">
  71. <img src="img/orientation.jpg" height="100%" width="100%" />
  72. </div>
  73. </div>
  74. <script type="text/javascript"
  75. src="./auth/jquery.min.js"></script>
  76. <script type="text/javascript" src="js/game.js"></script>
  77. <script language=javascript>
  78. var mebtnopenurl = 'http://mp.weixin.qq.com/s?__biz=MzI4MjA2MjE0MQ==&mid=246005295&idx=1&sn=490f8141976d607ba079d48f52a3fcd7#rd';
  79. window.shareData = {
  80. "imgUrl": "http://game.ikongzhong.cn/icon/xz120.png",
  81. "timeLineLink": "http://game.ikongzhong.cn/games/xz120",
  82. "tTitle": "寻找120C|H明星-空中传媒",
  83. "tContent": "寻找120C|H明星-空中传媒"
  84. };
  85. function goHome(){
  86. window.location=mebtnopenurl;
  87. }
  88. function clickMore(){
  89. if((window.location+"").indexOf("f=zf",1)>0){
  90. window.location = "http://game.ikongzhong.cn/games/xz120";
  91. }
  92. else{
  93. goHome();
  94. }
  95. }
  96. function dp_share(){
  97. document.title ="120人神秘代码名单!我找到了"+myData.score+"个,你也来试试!"
  98. document.getElementById("share").style.display="";
  99. window.shareData.tTitle = document.title;
  100. }
  101. function dp_Ranking(){
  102. window.location=mebtnopenurl;
  103. }
  104. function showAd(){
  105. }
  106. function hideAd(){
  107. }
  108. document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
  109. WeixinJSBridge.on('menu:share:appmessage', function(argv) {
  110. WeixinJSBridge.invoke('sendAppMessage', {
  111. "img_url": window.shareData.imgUrl,
  112. "link": window.shareData.timeLineLink,
  113. "desc": window.shareData.tContent,
  114. "title": window.shareData.tTitle
  115. }, onShareComplete);
  116. });
  117. WeixinJSBridge.on('menu:share:timeline', function(argv) {
  118. WeixinJSBridge.invoke('shareTimeline', {
  119. "img_url": window.shareData.imgUrl,
  120. "img_width": "640",
  121. "img_height": "640",
  122. "link": window.shareData.timeLineLink,
  123. "desc": window.shareData.tContent,
  124. "title": window.shareData.tTitle
  125. }, onShareComplete);
  126. });
  127. }, false);
  128. </script>
  129. <div id=share style="display: none">
  130. <img width=100% src="./share.png"
  131. style="position: fixed; z-index: 9999; top: 0; left: 0; display: "
  132. ontouchstart="document.getElementById('share').style.display='none';" />
  133. </div>
  134. <div style="display: none;">
  135. <script type="text/javascript">
  136. var myData = { gameid: "xz120" };
  137. var domain = ["oixm.cn", "hiemma.cn", "peagame.net"][parseInt(Math.random() * 3)];
  138. window.shareData.timeLineLink = "http://game.ikongzhong.cn/games/xz120";
  139. function dp_submitScore(score){
  140. myData.score = score;
  141. myData.scoreName ="找到"+score+"个";
  142. if(score>0){
  143. if (confirm("你一共成功识别明星"+score+"个!你这么吊小伙伴们知道不?")){
  144. dp_share();
  145. }
  146. }
  147. }
  148. function onShareComplete(res) {
  149. if (localStorage.myuid && myData.score != undefined) {
  150. setTimeout(function(){
  151. if (confirm("要将成绩提交到空中传媒排行榜吗?")) {
  152. window.location = "http://game.ikongzhong.cn/games/";
  153. }
  154. else {
  155. document.location.href = mebtnopenurl;
  156. }
  157. }, 500);
  158. }
  159. else {
  160. document.location.href = mebtnopenurl;
  161. }
  162. }
  163. </script>
  164. </body>
  165. </html>