index.htm 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <html>
  4. <head>
  5. <meta charset="UTF-8">
  6. <meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1.0" />
  7. <meta name="apple-mobile-web-app-capable" content="yes" />
  8. <title>监狱风云</title>
  9. <script type="text/javascript">
  10. isShouJi();
  11. </script>
  12. <link type="text/css" href="css/game_base.css" rel="stylesheet" />
  13. <script type="text/javascript" src="js/jquery-2.1.0.min.js"></script>
  14. <script type="text/javascript" src="js/createjs.min.js"></script>
  15. <script type="text/javascript" src="js/jquery.cookie.js"></script>
  16. <script type="text/javascript" src="js/game_base.js"></script>
  17. <script type="text/javascript" src="js/createjs_game.js"></script>
  18. <script type="text/javascript" src="js/main.js"></script>
  19. <style type="text/css">
  20. .follow {
  21. z-index: 100;
  22. position: absolute;
  23. left: -500px;
  24. bottom: 0px;
  25. width: 20%;
  26. opacity: 0;
  27. }
  28. .follow img {
  29. width: 100%
  30. }
  31. .moreGames {
  32. z-index: 100;
  33. position: absolute;
  34. bottom: 10px;
  35. margin-left: auto;
  36. margin-right: auto;
  37. width: 100%;
  38. text-align: center;
  39. }
  40. .moreGames a {
  41. font: 11px Arial;
  42. text-decoration: none;
  43. background-color: #C0C0C0;
  44. color: #FFFFFF;
  45. padding: 2px 10px 2px 10px;
  46. border-radius: 8px;
  47. -webkit-border-radius: 8px;
  48. }
  49. #share-wx{
  50. background:rgba(0,0,0,0.8);
  51. position:absolute;top:0px;
  52. left:0px;
  53. width:100%;
  54. height:100%;
  55. z-index:10000;
  56. display:none;
  57. }
  58. #wx-qr{
  59. background:rgba(0,0,0,0.8);
  60. position:absolute;top:0px;
  61. left:0px;
  62. width:100%;
  63. height:100%;
  64. z-index:10000;
  65. display:none;
  66. }
  67. .lis{overflow: hidden;width: 100%;z-index: 99999;position: absolute;top:0px;}
  68. .lis a{display: block;width:99.9%;color:#ffffff;font-size:14px;text-decoration: none;background:#606783;text-align: center;opacity: 0.5;line-height:30px;font-weight: bold;font-family:"微软雅黑"}
  69. .lis a img{position: relative;top: 1px;}
  70. </style>
  71. </head>
  72. <body>
  73. <canvas id="stage" >
  74. 您的浏览器不支持html5, 请换用支持html5的浏览器
  75. </canvas>
  76. <script language=javascript>
  77. var mebtnopenurl = 'http://game.ikongzhong.cn';
  78. dataForWeixin = {
  79. "appId": "",
  80. "imgUrl": "http://mmbiz.qpic.cn/mmbiz/2zpp2iaH4HWFeiab76PdEF0qwrib84iaNAUz8F7Iic9xvsgEjvMRicj7GMbofJnibTzV8NiaAsm2XStgbfqaL7ibWPDhtBQ/640",
  81. "url": "http://game.ikongzhong.cn/games/jyfy/",
  82. "tTitle": "监狱风云-空中传媒游戏",
  83. "tContent": "监狱风云准备开机,主角已到齐,就差你了!"
  84. };
  85. function goHome(){
  86. window.location=mebtnopenurl;
  87. }
  88. function dp_share(){
  89. document.title = "龙哥!我把"+myscore+"对吸毒者给办了!监狱犯人配对我最牛,你敢来挑战吗?";
  90. document.getElementById("share").style.display="";
  91. dataForWeixin.tTitle = document.title;
  92. }
  93. function dp_Ranking(){
  94. window.location=mebtnopenurl;
  95. }
  96. document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
  97. WeixinJSBridge.on('menu:share:appmessage', function(argv) {
  98. WeixinJSBridge.invoke('sendAppMessage', {
  99. "appid": dataForWeixin.appId,
  100. "img_url": dataForWeixin.imgUrl,
  101. "link": dataForWeixin.url,
  102. "desc": dataForWeixin.tContent,
  103. "title": dataForWeixin.tTitle
  104. });
  105. setTimeout(function () {location.href = mebtnopenurl;}, 1500);
  106. });
  107. WeixinJSBridge.on('menu:share:timeline', function(argv) {
  108. WeixinJSBridge.invoke('shareTimeline', {
  109. "appid": dataForWeixin.appId,
  110. "img_url": dataForWeixin.imgUrl,
  111. "img_width": "640",
  112. "img_height": "640",
  113. "link": dataForWeixin.url,
  114. "desc": dataForWeixin.tContent,
  115. "title": dataForWeixin.tTitle
  116. });
  117. setTimeout(function () {location.href = "http://mp.weixin.qq.com/s?__biz=MzI4MjA2MjE0MQ==&mid=246005295&idx=1&sn=490f8141976d607ba079d48f52a3fcd7#rd";}, 1500);
  118. });
  119. }, false);
  120. </script>
  121. <div id=share style="display: none">
  122. <img width=100% src="vapp/share.png" style="position: fixed; z-index: 9999; top: 0; left: 0; display: " ontouchstart="document.getElementById('share').style.display='none';">
  123. </div>
  124. <script type="text/javascript">
  125. var myData = {};
  126. var myscore=0;
  127. function dp_submitScore(score){
  128. myscore=score;
  129. myData.score = score;
  130. myData.scoreName = score+"对吸毒者";
  131. if(score>5){
  132. dp_share();
  133. if (confirm("真行,配成了"+score+"对吸毒人!要不要通知下小伙伴们呢?")){
  134. }
  135. }
  136. }
  137. </script>
  138. <div>
  139. </div>
  140. <div style="display:none;">
  141. <script type="text/javascript">
  142. var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
  143. document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F2eac95e2df0ea5d2b0aaa92e3dbbe419' type='text/javascript'%3E%3C/script%3E"));
  144. </script>
  145. </div>
  146. </body>
  147. </html>