index.html 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. <!DOCTYPE html>
  2. <html manifest="offline.appcache">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  6. <title>空中传媒</title>
  7. <!-- Allow fullscreen mode on iOS devices. (These are Apple specific meta tags.) -->
  8. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, minimal-ui" />
  9. <meta name="apple-mobile-web-app-capable" content="yes" />
  10. <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  11. <link rel="apple-touch-icon" sizes="256x256" href="icon-256.png" />
  12. <meta name="HandheldFriendly" content="true" />
  13. <!-- Chrome for Android web app tags -->
  14. <meta name="mobile-web-app-capable" content="yes" />
  15. <link rel="shortcut icon" sizes="256x256" href="icon-256.png" />
  16. <!-- All margins and padding must be zero for the canvas to fill the screen. -->
  17. <style type="text/css">
  18. * {
  19. padding: 0;
  20. margin: 0;
  21. }
  22. html, body {
  23. background: #000;
  24. color: #fff;
  25. overflow: hidden;
  26. touch-action: none;
  27. -ms-touch-action: none;
  28. }
  29. canvas {
  30. touch-action-delay: none;
  31. touch-action: none;
  32. -ms-touch-action: none;
  33. }
  34. </style>
  35. </head>
  36. <body>
  37. <div id="fb-root"></div>
  38. <script>
  39. // Issue a warning if trying to preview an exported project on disk.
  40. (function(){
  41. // Check for running exported on file protocol
  42. if (window.location.protocol.substr(0, 4) === "file")
  43. {
  44. alert("Exported games won't work until you upload them. (When running on the file:/// protocol, browsers block many features from working for security reasons.)");
  45. }
  46. })();
  47. </script>
  48. <!-- The canvas must be inside a div called c2canvasdiv -->
  49. <div id="c2canvasdiv">
  50. <!-- The canvas the project will render to. If you change its ID, don't forget to change the
  51. ID the runtime looks for in the jQuery events above (ready() and cr_sizeCanvas()). -->
  52. <canvas id="c2canvas" width="480" height="854">
  53. </canvas>
  54. </div>
  55. <!-- Pages load faster with scripts at the bottom -->
  56. <!-- Construct 2 exported games require jQuery. -->
  57. <script src="js/jquery-2.0.0.min.js"></script>
  58. <!-- The runtime script. You can rename it, but don't forget to rename the reference here as well.
  59. This file will have been minified and obfuscated if you enabled "Minify script" during export. -->
  60. <script src="js/c2runtime.js"></script>
  61. <script>
  62. // Size the canvas to fill the browser viewport.
  63. jQuery(window).resize(function() {
  64. cr_sizeCanvas(jQuery(window).width(), jQuery(window).height());
  65. });
  66. // Start the Construct 2 project running on window load.
  67. jQuery(document).ready(function ()
  68. {
  69. // Create new runtime using the c2canvas
  70. cr_createRuntime("c2canvas");
  71. });
  72. // Pause and resume on page becoming visible/invisible
  73. function onVisibilityChanged() {
  74. if (document.hidden || document.mozHidden || document.webkitHidden || document.msHidden)
  75. cr_setSuspended(true);
  76. else
  77. cr_setSuspended(false);
  78. };
  79. document.addEventListener("visibilitychange", onVisibilityChanged, false);
  80. document.addEventListener("mozvisibilitychange", onVisibilityChanged, false);
  81. document.addEventListener("webkitvisibilitychange", onVisibilityChanged, false);
  82. document.addEventListener("msvisibilitychange", onVisibilityChanged, false);
  83. </script>
  84. <script language=javascript>
  85. var mebtnopenurl = 'http://game.ikongzhong.cn';
  86. window.shareData = {
  87. "imgUrl": "http://game.ikongzhong.cn/icon/zzs.png",
  88. "timeLineLink": "http://game.ikongzhong.cn/games/zzs",
  89. "tTitle": "涨姿势-空中传媒",
  90. "tContent": "涨姿势-空中传媒"
  91. };
  92. function goHome(){
  93. window.location=mebtnopenurl;
  94. }
  95. function clickMore(){
  96. if((window.location+"").indexOf("zf",1)>0){
  97. window.location = "http://game.ikongzhong.cn/games/zzs";
  98. }
  99. else{
  100. goHome();
  101. }
  102. }
  103. function dp_share(){
  104. document.title ="我撸了"+myData.step+"发 涨了"+myData.score+"新姿势!"+myData.percent+"%对手被我击败,你行嘛?";
  105. document.getElementById("share").style.display="";
  106. window.shareData.tTitle = document.title;
  107. }
  108. function dp_Ranking(){
  109. window.location=mebtnopenurl;
  110. }
  111. function showAd(){
  112. }
  113. function hideAd(){
  114. }
  115. document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
  116. WeixinJSBridge.on('menu:share:appmessage', function(argv) {
  117. WeixinJSBridge.invoke('sendAppMessage', {
  118. "img_url": window.shareData.imgUrl,
  119. "link": window.shareData.timeLineLink,
  120. "desc": window.shareData.tContent,
  121. "title": window.shareData.tTitle
  122. }, onShareComplete);
  123. });
  124. WeixinJSBridge.on('menu:share:timeline', function(argv) {
  125. WeixinJSBridge.invoke('shareTimeline', {
  126. "img_url": window.shareData.imgUrl,
  127. "img_width": "640",
  128. "img_height": "640",
  129. "link": window.shareData.timeLineLink,
  130. "desc": window.shareData.tContent,
  131. "title": window.shareData.tTitle
  132. }, onShareComplete);
  133. });
  134. }, false);
  135. </script>
  136. <div id=share style="display: none">
  137. <img width=100% src="http://game.ikongzhong.cn/games/zzs/share.png"
  138. style="position: fixed; z-index: 9999; top: 0; left: 0; display: "
  139. ontouchstart="document.getElementById('share').style.display='none';" />
  140. </div>
  141. <div style="display: none;">
  142. <script type="text/javascript">
  143. var myData = { gameid: "zzs" };
  144. var domain = ["oixm.cn", "hiemma.cn", "peagame.net"][parseInt(Math.random() * 3)];
  145. window.shareData.timeLineLink = "http://game.ikongzhong.cn/games/zzs";
  146. function dp_submitScore(score,step,percent){
  147. myData.score = parseInt(score);
  148. myData.step = step;
  149. myData.percent = percent;
  150. myData.scoreName = "涨了"+score+"个新姿势";
  151. if(score>1){
  152. if (confirm("你撸了"+step+"发,涨了"+score+"个新姿势!征服了"+percent+"%对手,让小伙伴们膜拜你吧!")){
  153. dp_share();
  154. }
  155. }
  156. }
  157. function onShareComplete(res) {
  158. if (localStorage.myuid && myData.score != undefined) {
  159. setTimeout(function(){
  160. if (confirm("要将成绩提交到空中传媒排行榜吗?")) {
  161. window.location = "http://game.ikongzhong.cn/";
  162. }
  163. else {
  164. document.location.href = mebtnopenurl;
  165. }
  166. }, 500);
  167. }
  168. else {
  169. document.location.href = mebtnopenurl;
  170. }
  171. }
  172. </script>
  173. <div style="display: none;">
  174. <script type="text/javascript">var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F0ae524064813b8dc07ece5ce724a7b04' type='text/javascript'%3E%3C/script%3E"));</script>
  175. <script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_2947366'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s5.cnzz.com/stat.php%3Fid%3D2947366' type='text/javascript'%3E%3C/script%3E"));</script>
  176. </div>
  177. </body>
  178. </html>