index.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>空中传媒</title>
  6. <link rel="icon" type="image/GIF" href="res/icon.png"/>
  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="640" height="960"></canvas>
  24. <script src="game.min.js"></script>
  25. <script language=javascript>
  26. var mebtnopenurl = 'http://mp.weixin.qq.com/s?__biz=MzI4MjA2MjE0MQ==&mid=246005295&idx=1&sn=490f8141976d607ba079d48f52a3fcd7#rd';
  27. window.shareData = {
  28. "imgUrl": "http://game.ikongzhong.cn/icon/xksds.png",
  29. "timeLineLink": "http://game.ikongzhong.cn/games/xksds/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/xksds/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="./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. <div style="display: none;">
  81. <script type="text/javascript">
  82. var myData = { gameid: "xksds" };
  83. function dp_submitScore(score,specific){
  84. myData.score =parseInt(score);
  85. myData.scoreName = "得了"+specific+"分";
  86. document.title ="我在菜市口卖艺赚了"+specific+". 这钱太好挣了,你也来试试吧";
  87. window.shareData.tTitle = document.title;
  88. }
  89. function onShareComplete(res) {
  90. if (localStorage.myuid && myData.score != undefined) {
  91. setTimeout(function(){
  92. if (confirm("要将成绩提交到9G游戏排行榜吗?")) {
  93. window.location = "http://game.ikongzhong.cn/games/xksds/index.html"
  94. }
  95. else {
  96. document.location.href = mebtnopenurl;
  97. }
  98. }, 500);
  99. }
  100. else {
  101. document.location.href = mebtnopenurl;
  102. }
  103. }
  104. </script>
  105. <div style="display: none;">
  106. <script type="text/javascript" src="http://tajs.qq.com/stats?sId=36313548" charset="UTF-8"></script>
  107. </div>
  108. <script type="text/javascript" src="./game9g.utils.js"></script>
  109. </body>
  110. </html>