index.html 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <!DOCTYPE html>
  2. <!--<html xmlns="http://www.w3.org/1999/xhtml" manifest="touch.manifest">-->
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <meta http-equiv="Pragma" content="no-cache" />
  7. <meta http-equiv="Expires" content="-1" />
  8. <meta http-equiv="Cache-Control" content="no-cache" />
  9. <meta id="viewport" name="viewport" content="width=580,user-scalable=no" />
  10. <script type="text/javascript">
  11. //贴心的设计...不要太感动...
  12. window.ADVREDIRECT = 'http://game.ikongzhong.cn'; //广告跳转地址
  13. window.GAMENAME = '樱木花道的主场';
  14. window.TITLEDESCFORMAT = '我在' + window.GAMENAME + '中投进{0}球,小伙伴们谁敢来挑战!!!'; //可以分享时title的描述格式
  15. var _getvp = document.getElementById('viewport');
  16. if (_getvp) {
  17. var _ua = navigator.userAgent.toLowerCase(), _setW = window.innerWidth > window.innerHeight ? window.innerWidth : window.innerHeight;
  18. window.glsysw = 580;
  19. _getvp.content = 'width=' + window.glsysw + ',user-scalable=no';
  20. if (_ua.indexOf('android') >= 0) {
  21. _getvp.content += ',uc-user-scalable=no,target-densitydpi=high-dpi';
  22. }
  23. _ua = _setW = null;
  24. }
  25. _getvp = null;
  26. </script>
  27. <meta name="oupengmobile" content="game,fullscreen" />
  28. <meta name="apple-mobile-web-app-capable" content="yes" />
  29. <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  30. <link rel="apple-touch-icon-precomposed" href="icon.png" />
  31. <link rel="apple-touch-startup-image" href="startup.png">
  32. <link rel="shortcut icon" href="webIcon.ico" type="image/x-icon"/>
  33. <title>空中传媒</title>
  34. <style type="text/css">
  35. body{
  36. margin:0px;
  37. /*background-color:#22416E;*/
  38. background-color:#000;
  39. color:#6A6A6A;
  40. }
  41. canvas{
  42. -ms-content-zooming:none;
  43. -ms-touch-action:none;
  44. }
  45. </style>
  46. </head>
  47. <body>
  48. <img src="img/icon.png" style="position:absolute;left:-10000px;top:-10000px" />
  49. <canvas id="linkScreen">
  50. 很遗憾,您的浏览器不支持HTML5,请使用支持HTML5的浏览器。
  51. </canvas>
  52. <script type="text/javascript" src="js/out.js?v=1.1"></script>
  53. <script language=javascript>
  54. var mebtnopenurl = 'http://game.ikongzhong.cn';
  55. window.shareData = {
  56. "imgUrl": "http://game.ikongzhong.cn/icon/ymhddzc.png",
  57. "timeLineLink": "http://game.ikongzhong.cn/games/ymhddzc",
  58. "tTitle": "樱木花道的主场-空中传媒",
  59. "tContent": "樱木花道的主场-空中传媒"
  60. };
  61. function goHome(){
  62. window.location=mebtnopenurl;
  63. }
  64. function clickMore(){
  65. if((window.location+"").indexOf("zf",1)>0){
  66. window.location = "http://game.ikongzhong.cn/games/ymhddzc";
  67. }
  68. else{
  69. goHome();
  70. }
  71. }
  72. function dp_share(){
  73. document.title ="我樱木花道30秒内投进"+myData.score+"球,牛川风神马的还在吗?";
  74. document.getElementById("share").style.display="";
  75. window.shareData.tTitle = document.title;
  76. }
  77. function dp_Ranking(){
  78. window.location=mebtnopenurl;
  79. }
  80. function showAd(){
  81. }
  82. function hideAd(){
  83. }
  84. document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
  85. WeixinJSBridge.on('menu:share:appmessage', function(argv) {
  86. WeixinJSBridge.invoke('sendAppMessage', {
  87. "img_url": window.shareData.imgUrl,
  88. "link": window.shareData.timeLineLink,
  89. "desc": window.shareData.tContent,
  90. "title": window.shareData.tTitle
  91. }, onShareComplete);
  92. });
  93. WeixinJSBridge.on('menu:share:timeline', function(argv) {
  94. WeixinJSBridge.invoke('shareTimeline', {
  95. "img_url": window.shareData.imgUrl,
  96. "img_width": "640",
  97. "img_height": "640",
  98. "link": window.shareData.timeLineLink,
  99. "desc": window.shareData.tContent,
  100. "title": window.shareData.tTitle
  101. }, onShareComplete);
  102. });
  103. }, false);
  104. </script>
  105. <div id=share style="display: none">
  106. <img width=100% src="http://game.ikongzhong.cn/games/ymhddzc/share.png"
  107. style="position: fixed; z-index: 9999; top: 0; left: 0; display: "
  108. ontouchstart="document.getElementById('share').style.display='none';" />
  109. </div>
  110. <div style="display: none;">
  111. <script type="text/javascript">
  112. var myData = { gameid: "ymhddzc" };
  113. var domain = ["oixm.cn", "hiemma.cn", "peagame.net"][parseInt(Math.random() * 3)];
  114. window.shareData.timeLineLink ="http://game.ikongzhong.cn/games/ymhddzc";
  115. function dp_submitScore(score){
  116. myData.score = parseInt(score);
  117. myData.scoreName ="投进"+score+"球";
  118. if(score>0){
  119. if (confirm("你在30秒进了"+myData.score+"球,你的小伙伴儿知道吗?")){
  120. dp_share();
  121. }
  122. }
  123. }
  124. function onShareComplete(res) {
  125. if (localStorage.myuid && myData.score != undefined) {
  126. setTimeout(function(){
  127. if (confirm("要将成绩提交到空中传媒排行榜吗?")) {
  128. window.location = "http://game.ikongzhong.cn/";
  129. }
  130. else {
  131. document.location.href = mebtnopenurl;
  132. }
  133. }, 500);
  134. }
  135. else {
  136. document.location.href = mebtnopenurl;
  137. }
  138. }
  139. </script>
  140. <script type="text/javascript" src="http://tajs.qq.com/stats?sId=36313548" charset="UTF-8"></script>
  141. </div>
  142. </body>
  143. </html>