index.html 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <div id='wx_pic' style='margin:0 auto;display:none;'>
  5. <img src='photo.jpg' />
  6. </div>
  7. <meta charset="UTF-8">
  8. <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" />
  9. <meta name="apple-mobile-web-app-capable" content="yes" />
  10. <title>国庆乐“翻”天</title>
  11. <link type="text/css" href="css/game_base.css" rel="stylesheet" />
  12. <link rel="shortcut icon" href="icon.png">
  13. <link rel="icon" href="icon.png">
  14. <script type="text/javascript" src="js/jquery-2.1.0.min.js"></script>
  15. <script type="text/javascript" src="js/game_base.js"></script>
  16. <script type="text/javascript" src="js/createjs-2013.12.12.min.js"></script>
  17. <script type="text/javascript" src="js/createjs_game.js"></script>
  18. <script type="text/javascript" src="js/jquery.cookie.js"></script>
  19. <script type="text/javascript" src="js/main.js"></script>
  20. <style type="text/css">
  21. .follow {
  22. z-index: 100;
  23. position: absolute;
  24. left: -500px;
  25. bottom: 0px;
  26. width: 20%;
  27. opacity: 0;
  28. }
  29. .follow img {
  30. width: 100%
  31. }
  32. .moreGames {
  33. z-index: 100;
  34. position: absolute;
  35. bottom: 10px;
  36. margin-left: auto;
  37. margin-right: auto;
  38. width: 100%;
  39. text-align: center;
  40. }
  41. .moreGames a {
  42. font: 11px Arial;
  43. text-decoration: none;
  44. background-color: #C0C0C0;
  45. color: #FFFFFF;
  46. padding: 2px 10px 2px 10px;
  47. border-radius: 8px;
  48. -webkit-border-radius: 8px;
  49. }
  50. </style>
  51. <style>
  52. html {
  53. -ms-touch-action: none; /* Direct all pointer events to JavaScript code. */
  54. }
  55. .sbgshow{z-index:10000;display:block;position:fixed;top:0;left:0;width:100%;height:100%;text-align:center;color:#fff;font-size:30px;line-height:1.7em;background:rgba(0,0,0,0.85);}
  56. .sbgshow .arron{z-index:10000; position:absolute;top:8px;right:8px;width:100px;height:100px;background:url(./img/arron.png) no-repeat; background-size:100px 100px;}
  57. .sbgshow p{z-index:10000; padding-top:78px;}
  58. .sbg{display:none; z-index:10000; position:fixed;top:0;left:0;width:100%;height:100%;text-align:center;color:#fff;font-size:26px;line-height:1.7em;background:rgba(0,0,0,0.85);}
  59. .sbg .arron{ z-index:10001; position:absolute;top:8px;right:8px;width:100px;height:100px;background:url(./img/arron.png) no-repeat; background-size:100px 100px;}
  60. .sbg p{ z-index:10002; padding-top:78px;}
  61. </style>
  62. </head>
  63. <body>
  64. <input id="bt-game-id" type="hidden" value="6-mengwazainali">
  65. <canvas id="stage">
  66. 您的浏览器不支持html5, 请换用支持html5的浏览器
  67. </canvas>
  68. <script type="text/javascript">
  69. </script>
  70. <script language=javascript>
  71. var mebtnopenurl = 'http://game.ikongzhong.cn/';
  72. var thegameurl ="http://game.ikongzhong.cn/games/mwzne/";
  73. var guanzhuurl ="http://mp.weixin.qq.com/s?__biz=MzI4MjA2MjE0MQ==&mid=246005295&idx=1&sn=490f8141976d607ba079d48f52a3fcd7#rd";
  74. window.shareData = {
  75. "imgUrl": "http://mmbiz.qpic.cn/mmbiz/2zpp2iaH4HWFv03p0x0LUFjTPr1UIrvoc87Yk9KrXbVq3dEAmbByvlJj0xthNuibyQtrLSPzCJ36gBVtiaWYZdG7w/640",
  76. "timeLineLink": thegameurl,
  77. "tTitle": "国庆乐“翻”天",
  78. "tContent": "国庆乐“翻”天"
  79. };
  80. function goHome(){
  81. window.location=mebtnopenurl;
  82. }
  83. function clickMore(){
  84. if((window.location+"").indexOf("f=zf",1)>0){
  85. window.location = mebtnopenurl;
  86. }
  87. else{
  88. goHome();
  89. }
  90. }
  91. function dp_share(){
  92. document.getElementById("share").style.display="";
  93. }
  94. function dp_Ranking(){
  95. window.location=mebtnopenurl;
  96. }
  97. function showAd(){
  98. }
  99. function hideAd(){
  100. }
  101. document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
  102. WeixinJSBridge.on('menu:share:appmessage', function(argv) {
  103. WeixinJSBridge.invoke('sendAppMessage', {
  104. "img_url": window.shareData.imgUrl,
  105. "link": window.shareData.timeLineLink,
  106. "desc": window.shareData.tContent,
  107. "title": window.shareData.tTitle
  108. }, onShareComplete);
  109. });
  110. WeixinJSBridge.on('menu:share:timeline', function(argv) {
  111. WeixinJSBridge.invoke('shareTimeline', {
  112. "img_url": window.shareData.imgUrl,
  113. "img_width": "640",
  114. "img_height": "640",
  115. "link": window.shareData.timeLineLink,
  116. "desc": window.shareData.tContent,
  117. "title": window.shareData.tTitle
  118. }, onShareComplete);
  119. });
  120. }, false);
  121. </script>
  122. <div id=share style="display: none">
  123. <img width="100%" src="share.png"
  124. style="position: fixed; z-index: 9999; top: 0; left: 0; display: "
  125. ontouchstart="document.getElementById('share').style.display='none';" />
  126. </div>
  127. <script type="text/javascript">
  128. var myData = { gameid: "mwzne" };
  129. function dp_submitScore(score){
  130. myData.score = parseInt(score);
  131. myData.scoreName ="国庆嗨翻天,找到"+score+"个祖国的大好风光";
  132. document.title = window.shareData.tTitle = "国庆节,做一把热血青年,我翻出了"+score+"件大事!闹大了!";
  133. game9g.utils.shareConfirm("国庆节,做一把热血青年,你翻出了"+score+"件大事!闹大了!快告诉你的小伙伴们吧!",function(){dp_share();});
  134. }
  135. function onShareComplete(res) {
  136. if (localStorage.myuid && myData.score != undefined) {
  137. setTimeout(function(){
  138. if (confirm("?")) {
  139. window.location = mebtnopenurl;
  140. }
  141. else {
  142. document.location.href = mebtnopenurl;
  143. }
  144. }, 500);
  145. }
  146. else {
  147. document.location.href = guanzhuurl;
  148. }
  149. }
  150. </script>
  151. <div style="display: none;">
  152. </div>
  153. <script type="text/javascript" src="js/game9g.utils.js"></script>
  154. </body>
  155. </html>