index.html 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1.0" />
  6. <meta name="apple-mobile-web-app-capable" content="yes" />
  7. <title>数钱数到手抽筋</title>
  8. <script type="text/javascript">
  9. var GID = "shuqian";
  10. var SCORE_LIMIT = 6000;
  11. var APP_LIST_URL = 'http://game.ikongzhong.cn/';
  12. </script>
  13. <script type="text/javascript" src="js/jquery-2.1.1.min.js"></script>
  14. <script type="text/javascript" src="js/jquery.cookie.js"></script>
  15. <script type="text/javascript" src="js/createjs-2013.12.12.min.js"></script>
  16. <script type="text/javascript" src="js/qipa_app.js"></script>
  17. <script type="text/javascript" src="js/qipa_stage.js"></script>
  18. <script type="text/javascript" src="js/main.js"></script>
  19. <style type="text/css">
  20. html,body,canvas {
  21. margin: 0px;
  22. padding: 0px;
  23. border:none;
  24. text-align: center;
  25. background-color: black;
  26. }
  27. canvas {
  28. background-color: white;
  29. }
  30. </style>
  31. </head>
  32. <body>
  33. <canvas id="stage">
  34. 您的浏览器不支持html5, 请换用支持html5的浏览器。
  35. </canvas>
  36. <script language=javascript>
  37. var mebtnopenurl = 'http://game.ikongzhong.cn/index.html';
  38. window.shareData = {
  39. "imgUrl": "http://game.ikongzhong.cn/icon/sqsdscj.png",
  40. "timeLineLink": "http://game.ikongzhong.cn/games/sqsdscj/index.html",
  41. "tTitle": "数钱数到手抽筋-空中传媒",
  42. "tContent": "数钱数到手抽筋-空中传媒"
  43. };
  44. function goHome(){
  45. window.location=mebtnopenurl;
  46. }
  47. function clickMore(){
  48. if((window.location+"").indexOf("zf",1)>0){
  49. window.location = "http://game.ikongzhong.cn/index.html";
  50. }
  51. else{
  52. goHome();
  53. }
  54. }
  55. function dp_share(){
  56. document.getElementById("share").style.display="";
  57. }
  58. function dp_Ranking(){
  59. window.location=mebtnopenurl;
  60. }
  61. function showAd(){
  62. }
  63. function hideAd(){
  64. }
  65. document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
  66. WeixinJSBridge.on('menu:share:appmessage', function(argv) {
  67. WeixinJSBridge.invoke('sendAppMessage', {
  68. "img_url": window.shareData.imgUrl,
  69. "link": window.shareData.timeLineLink,
  70. "desc": window.shareData.tContent,
  71. "title": window.shareData.tTitle
  72. }, onShareComplete);
  73. });
  74. WeixinJSBridge.on('menu:share:timeline', function(argv) {
  75. WeixinJSBridge.invoke('shareTimeline', {
  76. "img_url": window.shareData.imgUrl,
  77. "img_width": "640",
  78. "img_height": "640",
  79. "link": window.shareData.timeLineLink,
  80. "desc": window.shareData.tContent,
  81. "title": window.shareData.tTitle
  82. }, onShareComplete);
  83. });
  84. }, false);
  85. </script>
  86. <div id=share style="display: none">
  87. <img width=100% src="./share.png"
  88. style="position: fixed; z-index: 9999; top: 0; left: 0; display: "
  89. ontouchstart="document.getElementById('share').style.display='none';" />
  90. </div>
  91. <div style="display: none;">
  92. <script type="text/javascript">
  93. var myData = { gameid: "sqsdscj" };
  94. // var domain = ["oixm.cn", "hiemma.cn", "peagame.net"][parseInt(Math.random() * 3)];
  95. window.shareData.timeLineLink ="{morelin}/games/sqsdscj/index.html";
  96. function dp_submitScore(score){
  97. myData.score = score;
  98. myData.scoreName = "数了"+score+"元";
  99. document.title ="我30秒内数了"+myData.score+"元钞票,手都快抽筋,你也来试试看!";
  100. window.shareData.tTitle = document.title;
  101. }
  102. function onShareComplete(res) {
  103. if (localStorage.myuid && myData.score != undefined) {
  104. setTimeout(function(){
  105. if (confirm("要将成绩提交到空中传媒排行榜吗?")) {
  106. // window.location = "http://wx.9g.com/rank/submit2.jsp?gameid=" + myData.gameid + "&uid=" + localStorage.myuid + "&score=" + myData.score + "&scorename=" + encodeURIComponent(myData.scoreName);
  107. }
  108. else {
  109. document.location.href = mebtnopenurl;
  110. }
  111. }, 500);
  112. }
  113. else {
  114. document.location.href = mebtnopenurl;
  115. }
  116. }
  117. </script>
  118. <div style="display: none;">
  119. <script type="text/javascript" src="http://tajs.qq.com/stats?sId=36313548" charset="UTF-8"></script>
  120. </div>
  121. </body>
  122. </html>