index.html 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <!DOCTYPE HTML>
  2. <html>
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <meta name="viewport" content="initial-scale=1, width=device-width, maximum-scale=1, user-scalable=no">
  5. <meta name="apple-mobile-web-app-capable" content="yes">
  6. <meta name='apple-touch-fullscreen' content='yes'>
  7. <meta name="full-screen" content="yes">
  8. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  9. <meta name="format-detection" content="telephone=no">
  10. <meta name="format-detection" content="address=no">
  11. <head>
  12. <title>纸飞机</title>
  13. <style type="text/css">
  14. .gameOn {-webkit-animation: game 1s 1 ease-in; }
  15. @-webkit-keyframes game { 0% {
  16. -webkit-transform:translate3d(-4px, 0px, 0px);
  17. }
  18. 10% {
  19. -webkit-transform:translate3d(4px, 0px, 0px);
  20. }
  21. 20% {
  22. -webkit-transform:translate3d(-4px, 0px, 0px);
  23. }
  24. 30% {
  25. -webkit-transform:translate3d(4px, 0px, 0px);
  26. }
  27. 40% {
  28. -webkit-transform:translate3d(-4px, 0px, 0px);
  29. }
  30. 50% {
  31. -webkit-transform:translate3d(4px, 0px, 0px);
  32. }
  33. 60% {
  34. -webkit-transform:translate3d(-4px, 0px, 0px);
  35. }
  36. 70% {
  37. -webkit-transform:translate3d(4px, 0px, 0px);
  38. }
  39. 80% {
  40. -webkit-transform:translate3d(-4px, 0px, 0px);
  41. }
  42. 90% {
  43. -webkit-transform:translate3d(4px, 0px, 0px);
  44. }
  45. 100% {
  46. -webkit-transform:translate3d(0px, 0px, 0px);
  47. }
  48. }
  49. </style>
  50. </head>
  51. <body style="padding:0;margin:0">
  52. <script src="js/shanku_loading.js"></script>
  53. <div class="game" style="width:100%; height:100%;position:absolute;overflow: hidden;-webkit-transform:translate3d(0px, 0px, 0px);left:0px;top:0px;">
  54. <canvas id="myCanvas" class="" style="position:absolute;overflow:visible;-webkit-transform:translate3d(0px, 0px, 0px);left:0px;top:0;width:100%" width="360" height="645"></canvas>
  55. </div>
  56. <script src="js/easyGame.js" type="text/javascript"></script>
  57. <script language=javascript>
  58. var mebtnopenurl = 'http://game.ikongzhong.cn/index.html';
  59. var thegameurl ="http://game.ikongzhong.cn/games/zfj/";
  60. var guanzhuurl ="http://mp.weixin.qq.com/s?__biz=MzI4MjA2MjE0MQ==&mid=246005295&idx=1&sn=490f8141976d607ba079d48f52a3fcd7#rd";
  61. window.shareData = {
  62. "imgUrl": "http://mmbiz.qpic.cn/mmbiz/2zpp2iaH4HWFv03p0x0LUFjTPr1UIrvocTMMtFxibDictTpT4PagWraZdTseBD1db1MywR3YOp1kn6FZjUiaPMjaXg/640",
  63. "timeLineLink": thegameurl,
  64. "tTitle": "纸飞机",
  65. "tContent": "纸飞机飞啊飞"
  66. };
  67. function goHome(){
  68. window.location=mebtnopenurl;
  69. }
  70. function clickMore(){
  71. if((window.location+"").indexOf("f=zf",1)>0){
  72. window.location = mebtnopenurl;
  73. }
  74. else{
  75. goHome();
  76. }
  77. }
  78. function dp_share(){
  79. document.getElementById("share").style.display="";
  80. }
  81. function dp_Ranking(){
  82. window.location=mebtnopenurl;
  83. }
  84. function showAd(){
  85. }
  86. function hideAd(){
  87. }
  88. document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
  89. WeixinJSBridge.on('menu:share:appmessage', function(argv) {
  90. WeixinJSBridge.invoke('sendAppMessage', {
  91. "img_url": window.shareData.imgUrl,
  92. "link": window.shareData.timeLineLink,
  93. "desc": window.shareData.tContent,
  94. "title": window.shareData.tTitle
  95. }, onShareComplete);
  96. });
  97. WeixinJSBridge.on('menu:share:timeline', function(argv) {
  98. WeixinJSBridge.invoke('shareTimeline', {
  99. "img_url": window.shareData.imgUrl,
  100. "img_width": "640",
  101. "img_height": "640",
  102. "link": window.shareData.timeLineLink,
  103. "desc": window.shareData.tContent,
  104. "title": window.shareData.tTitle
  105. }, onShareComplete);
  106. });
  107. }, false);
  108. </script>
  109. <div id=share style="display: none">
  110. <img width=100% src="share.png"
  111. style="position: fixed; z-index: 9999; top: 0; left: 0; display: "
  112. ontouchstart="document.getElementById('share').style.display='none';" />
  113. </div>
  114. <div style="display: none;">
  115. <script type="text/javascript">
  116. var myData = { gameid: "zfj" };
  117. function dp_submitScore(score){
  118. myData.score =parseInt(score*10);
  119. myData.scoreName = "飞了"+score+"米";
  120. document.title ="我的小飞机飞了"+score+"米,小伙伴们快来找下童年的记忆吧!";
  121. window.shareData.tTitle = document.title;
  122. }
  123. function onShareComplete(res) {
  124. if (localStorage.myuid && myData.score != undefined) {
  125. setTimeout(function(){
  126. if (confirm("?")) {
  127. window.location = mebtnopenurl;
  128. }
  129. else {
  130. document.location.href = mebtnopenurl;
  131. }
  132. }, 500);
  133. }
  134. else {
  135. document.location.href = guanzhuurl ;
  136. }
  137. }
  138. </script>
  139. <div style="display: none;">
  140. <script type="text/javascript" src="http://tajs.qq.com/stats?sId=36313548" charset="UTF-8"></script>
  141. </div>
  142. </body>
  143. </html>