index.html 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>空中传媒</title>
  6. <link rel="icon" type="image/GIF" href="res/favicon.ico"/>
  7. <meta name="apple-mobile-web-app-capable" content="yes"/>
  8. <meta name="full-screen" content="yes"/>
  9. <meta name="screen-orientation" content="portrait"/>
  10. <meta name="x5-fullscreen" content="true"/>
  11. <meta name="360-fullscreen" content="true"/>
  12. <style>
  13. body, canvas, div {
  14. -moz-user-select: none;
  15. -webkit-user-select: none;
  16. -ms-user-select: none;
  17. -khtml-user-select: none;
  18. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  19. }
  20. </style>
  21. </head>
  22. <body style="padding:0; margin: 0; background: #000;">
  23. <canvas id="gameCanvas" width="320" height="480"></canvas>
  24. <script src="game.min.js"></script>
  25. <script language=javascript>
  26. var mebtnopenurl = 'http://game.ikongzhong.cn/index.html';
  27. window.shareData = {
  28. "imgUrl": "http://game.ikongzhong.cn/icon/bljqzffxwz.png",
  29. "timeLineLink": "http://game.ikongzhong.cn/games/bljqzffxwz/index.html",
  30. "tTitle": "暴力街区之反腐小王子",
  31. "tContent": "暴力街区之反腐小王子"
  32. };
  33. function goHome(){
  34. window.location=mebtnopenurl;
  35. }
  36. function clickMore(){
  37. if((window.location+"").indexOf("f=zf",1)>0){
  38. window.location = "http://game.ikongzhong.cn/games/bljqzffxwz/index.html";
  39. }
  40. else{
  41. goHome();
  42. }
  43. }
  44. function dp_share(){
  45. document.getElementById("share").style.display="";
  46. }
  47. function dp_Ranking(){
  48. window.location=mebtnopenurl;
  49. }
  50. function showAd(){
  51. }
  52. function hideAd(){
  53. }
  54. document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
  55. WeixinJSBridge.on('menu:share:appmessage', function(argv) {
  56. WeixinJSBridge.invoke('sendAppMessage', {
  57. "img_url": window.shareData.imgUrl,
  58. "link": window.shareData.timeLineLink,
  59. "desc": window.shareData.tContent,
  60. "title": window.shareData.tTitle
  61. }, onShareComplete);
  62. });
  63. WeixinJSBridge.on('menu:share:timeline', function(argv) {
  64. WeixinJSBridge.invoke('shareTimeline', {
  65. "img_url": window.shareData.imgUrl,
  66. "img_width": "640",
  67. "img_height": "640",
  68. "link": window.shareData.timeLineLink,
  69. "desc": window.shareData.tContent,
  70. "title": window.shareData.tTitle
  71. }, onShareComplete);
  72. });
  73. }, false);
  74. </script>
  75. <div id=share style="display: none">
  76. <img width="100%" src="http://game.ikongzhong.cn/games/bljqzffxwz/share.png"
  77. style="position: fixed; z-index: 9999; top: 0; left: 0; display: "
  78. ontouchstart="document.getElementById('share').style.display='none';" />
  79. </div>
  80. <script type="text/javascript">
  81. var myData = { gameid: "bljqzffxwz" };
  82. // var domain = ["oixm.cn", "hiemma.cn", "peagame.net"][parseInt(Math.random() * 3)];
  83. window.shareData.timeLineLink = "http://game.ikongzhong.cn/games/bljqzffxwz/index.html";
  84. function dp_submitScore(score,stitle){
  85. if(score>0){
  86. myData.score = parseInt(score);
  87. myData.scoreName ="打了"+score+"下";
  88. window.shareData.tTitle = document.title=stitle;
  89. game9g.utils.shareConfirm("你不错哟,竟然打了"+score+"下,快告诉你的小伙伴们吧!",function(){dp_share();});
  90. }
  91. }
  92. function onShareComplete(res) {
  93. if (localStorage.myuid && myData.score != undefined) {
  94. setTimeout(function(){
  95. if (confirm("要将成绩提交到空中传媒排行榜吗?")) {
  96. window.location = "http://game.ikongzhong.cn/games/bljqzffxwz/index.html";
  97. }
  98. else {
  99. document.location.href = mebtnopenurl;
  100. }
  101. }, 500);
  102. }
  103. else {
  104. document.location.href = mebtnopenurl;
  105. }
  106. }
  107. </script>
  108. <div style="display: none;">
  109. <script type="text/javascript" src="http://tajs.qq.com/stats?sId=36313548" charset="UTF-8"></script>
  110. </div>
  111. <script type="text/javascript" src="./js/game9g.utils.js"></script>
  112. </body>
  113. </html>