hh.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="user-scalable=no width=device-width">
  6. <title>我去天安门广场跑个圈</title>
  7. <link rel="stylesheet" href="circle/css/style.css">
  8. <STYLE TYPE="text/css" MEDIA=screen>
  9. #desktop-ad {
  10. display: block;
  11. margin-left: -160px;
  12. width: 320px;
  13. position: absolute;
  14. top: 0px;
  15. left: 50%;
  16. z-index: 1000;
  17. text-align: center;
  18. }
  19. html{
  20. width: 100%;
  21. height: 100%;
  22. }
  23. body{
  24. width: 100%;
  25. height: 100%;
  26. }
  27. </STYLE>
  28. <script src="jquery/2.0.0/jquery.min.js"></script>
  29. <script type="text/javascript" language="JavaScript">
  30. function HideContent(d) {
  31. $('#' + d).hide();
  32. }
  33. function ShowContent(d) {
  34. $('#' + d).show(1000);
  35. }
  36. </script>
  37. <script type="text/javascript" src="circle/js/cookies.js"></script>
  38. <script src="ajax/libs/paper.js/0.9.18/paper-full.min.js"></script>
  39. </head>
  40. <body backgroud>
  41. <canvas id="canvas" resize stats hidpi="on"></canvas>
  42. <div id="inputpage" >
  43. <div id="middle">
  44. <div id="name_form">
  45. <p>载入中,请稍等。。。</p>
  46. </div>
  47. </div>
  48. </div>
  49. <div id="share" style="display: none">
  50. <img width=100% src="share.png"
  51. style="position: fixed; z-index: 9999; top: 0; left: 0; display: "
  52. ontouchstart="document.getElementById('share').style.display='none';"
  53. onclick="document.getElementById('share').style.display='none"
  54. />
  55. </div>
  56. <script type="text/paperscript" canvas="canvas" src="circle/js/circle_origin.js"></script>
  57. <script>
  58. var loading = true;
  59. var mebtnopenurl = 'http://play.3gjj.cn/index.html';
  60. var thegameurl ="http://play.3gjj.cn/games/bsqpz2/";
  61. var guanzhuurl ="http://mp.weixin.qq.com/s?__biz=MzAwNzQ4NzQyOQ==&mid=207029465&idx=1&sn=7b3e89d22b38e1e1337bf3a98ccdfb46#rd";
  62. var is9gUser=false;
  63. window.shareData = {
  64. "timeLineLink":thegameurl,
  65. "tTitle": "我去天安门广场跑个圈",
  66. "tContent": "我去天安门广场跑个圈"
  67. };
  68. function goHome(){
  69. window.location=mebtnopenurl;
  70. }
  71. function clickMore(){
  72. if((window.location+"").indexOf("zf",1)>0){
  73. window.location = mebtnopenurl;
  74. }
  75. else{
  76. goHome();
  77. }
  78. }
  79. function dp_share(){
  80. document.getElementById("share").style.display="";
  81. }
  82. function dp_Ranking(){
  83. window.location=mebtnopenurl;
  84. }
  85. function showAd(){
  86. }
  87. function hideAd(){
  88. }
  89. document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
  90. WeixinJSBridge.on('menu:share:appmessage', function(argv) {
  91. WeixinJSBridge.invoke('sendAppMessage', {
  92. "img_url": window.shareData.imgUrl,
  93. "link": window.shareData.timeLineLink,
  94. "desc": window.shareData.tContent,
  95. "title": window.shareData.tTitle
  96. }, onShareComplete);
  97. });
  98. WeixinJSBridge.on('menu:share:timeline', function(argv) {
  99. WeixinJSBridge.invoke('shareTimeline', {
  100. "img_url": window.shareData.imgUrl,
  101. "img_width": "640",
  102. "img_height": "640",
  103. "link": window.shareData.timeLineLink,
  104. "desc": window.shareData.tContent,
  105. "title": window.shareData.tTitle
  106. }, onShareComplete);
  107. });
  108. }, false);
  109. var share=document.getElementById("share");
  110. share.onclick=function(){
  111. share.style.display='none'
  112. ShowContent('desktop-ad');
  113. $(can).show()
  114. // $("body").css("background-image",'none');
  115. }
  116. </script>
  117. </body>
  118. </html>