index.html 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>监狱风云</title>
  6. <meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
  7. <meta name="apple-mobile-web-app-capable" content="yes"/>
  8. <meta name="full-screen" content="true"/>
  9. <meta name="screen-orientation" content="portrait"/>
  10. <meta name="x5-fullscreen" content="true"/>
  11. <meta name="360-fullscreen" content="true"/>
  12. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  13. <meta http-equiv="Access-Control-Allow-Origin" content="*">
  14. <style>
  15. body {
  16. text-align: center;
  17. margin: 0;
  18. padding: 0;
  19. border: 0;
  20. background-color: #000000;
  21. height: 100%;
  22. }
  23. </style>
  24. </head>
  25. <body>
  26. <script src="js/pixi.js"></script>
  27. <script src="js/game.js"></script>
  28. <script language=javascript>
  29. var mebtnopenurl = 'http://game.ikongzhong.cn';
  30. var thegameurl ="http://game.ikongzhong.cn/games/jyfy2/";
  31. var guanzhuurl ="http://mp.weixin.qq.com/s?__biz=MzI4MjA2MjE0MQ==&mid=246005295&idx=1&sn=490f8141976d607ba079d48f52a3fcd7#rd";
  32. window.shareData = {
  33. "imgUrl": "http://mmbiz.qpic.cn/mmbiz/2zpp2iaH4HWEQT7mTaxRkYUk6k9OOhxchB6XJaialeFMicbWUj4tOweFL2ICR3zwaaT0COdjlgQmReR25twpK8jzg/640",
  34. "timeLineLink": thegameurl,
  35. "tTitle": "监狱风云",
  36. "tContent": "日本右翼势力正试图为侵略历史翻案,每一个有良知的中国人都不会答应,立即阻击日本鬼子篡改历史!"
  37. };
  38. function goHome(){
  39. window.location=mebtnopenurl;
  40. }
  41. function clickMore(){
  42. if((window.location+"").indexOf("f=zf",1)>0){
  43. window.location = mebtnopenurl;
  44. }
  45. else{
  46. goHome();
  47. }
  48. }
  49. function dp_share(){
  50. document.title =shareData.sDesc;
  51. document.getElementById("share").style.display="";
  52. window.shareData.tTitle = document.title;
  53. }
  54. function dp_Ranking(){
  55. window.location=mebtnopenurl;
  56. }
  57. function showAd(){
  58. }
  59. function hideAd(){
  60. }
  61. document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
  62. WeixinJSBridge.on('menu:share:appmessage', function(argv) {
  63. WeixinJSBridge.invoke('sendAppMessage', {
  64. "img_url": window.shareData.imgUrl,
  65. "link": window.shareData.timeLineLink,
  66. "desc": window.shareData.tContent,
  67. "title": window.shareData.tTitle
  68. }, onShareComplete);
  69. });
  70. WeixinJSBridge.on('menu:share:timeline', function(argv) {
  71. WeixinJSBridge.invoke('shareTimeline', {
  72. "img_url": window.shareData.imgUrl,
  73. "img_width": "640",
  74. "img_height": "640",
  75. "link": window.shareData.timeLineLink,
  76. "desc": window.shareData.tContent,
  77. "title": window.shareData.tTitle
  78. }, onShareComplete);
  79. });
  80. }, false);
  81. </script>
  82. <div id=share style="display: none">
  83. <img width=100% src="share.png"
  84. style="position: fixed; z-index: 9999; top: 0; left: 0; display: "
  85. ontouchstart="document.getElementById('share').style.display='none';" />
  86. </div>
  87. <div style="display: none;">
  88. <script type="text/javascript">
  89. var myData = { gameid: "jyfy" };
  90. var domain = ["oixm.cn", "hiemma.cn", "peagame.net"][parseInt(Math.random() * 3)];
  91. window.shareData.timeLineLink = thegameurl ;
  92. function dp_submitScore(score){
  93. myData.score =parseInt(score);
  94. myData.scoreName = "消灭了"+score+"只鬼子";
  95. if(score>0){
  96. if (confirm("你竟然在分分钟钟间就消灭了"+score+"只鬼子,让伙伴们一起来消灭鬼子吧!")){
  97. dp_share();
  98. }
  99. }
  100. }
  101. function onShareComplete(res) {
  102. if (localStorage.myuid && myData.score != undefined) {
  103. setTimeout(function(){
  104. if (confirm("?")) {
  105. window.location = mebtnopenurl;
  106. }
  107. else {
  108. document.location.href = mebtnopenurl;
  109. }
  110. }, 500);
  111. }
  112. else {
  113. document.location.href = guanzhuurl;
  114. }
  115. }
  116. </script>
  117. <div style="display: none;">
  118. <script type="text/javascript">
  119. var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
  120. document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F2eac95e2df0ea5d2b0aaa92e3dbbe419' type='text/javascript'%3E%3C/script%3E"));
  121. </script>
  122. </div>
  123. </body>
  124. </html>