index.html 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <div id='wx_pic' style='margin:0 auto;display:none;'>
  5. <img src='photo.jpg' />
  6. </div>
  7. <meta charset="utf-8">
  8. <title>七夕到了,给女神送束花</title>
  9. <link rel="icon" type="image/GIF" href="res/favicon.ico"/>
  10. <meta name="viewport" content="width=device-width, user-scalable=no">
  11. <meta name="apple-mobile-web-app-capable" content="yes"/>
  12. <meta name="full-screen" content="yes"/>
  13. <meta name="screen-orientation" content="portrait"/>
  14. <meta name="x5-fullscreen" content="true"/>
  15. <meta name="360-fullscreen" content="true"/>
  16. <style>
  17. body, canvas, div {
  18. -moz-user-select: none;
  19. -webkit-user-select: none;
  20. -ms-user-select: none;
  21. -khtml-user-select: none;
  22. -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  23. }
  24. </style>
  25. </head>
  26. <body style="padding:0; margin: 0; background-image:url(res/load.jpg);">
  27. <canvas id="gameCanvas" width="640" height="1000"></canvas>
  28. <script src="js/game.min.js?20140825"></script>
  29. <script language=javascript>
  30. var mebtnopenurl = 'http://igame.ikongzhong.cn';
  31. var thegameurl ="http://igame.ikongzhong.cn/games/qxxh/";
  32. var guanzhuurl ="http://mp.weixin.qq.com/s?__biz=MzAwNzQ4NzQyOQ==&mid=207029465&idx=1&sn=7b3e89d22b38e1e1337bf3a98ccdfb46#rd";
  33. window.shareData = {
  34. "imgUrl": "http://mmbiz.qpic.cn/mmbiz/2zpp2iaH4HWFX6tke5uPDQdhox50ehxKfkhXc6UibYO4Kd62Z8Gan6NGUtAIODUFuC0P1HViaf2Vmv24d9VmHgEDA/640",
  35. "timeLineLink": thegameurl,
  36. "tTitle": "七夕到了,给女神送束花",
  37. "tContent": "七夕到了,给女神送束花"
  38. };
  39. function goHome(){
  40. window.location=mebtnopenurl;
  41. }
  42. function clickMore(){
  43. if((window.location+"").indexOf("zf",1)>0){
  44. window.location = mebtnopenurl;
  45. }
  46. else{
  47. goHome();
  48. }
  49. }
  50. function dp_share(){
  51. document.title ="七夕节,我送给女神"+myData.score+"束鲜花,她给了我“"+myData.title+"”的有爱称号,你也来试试吧!";
  52. document.getElementById("share").style.display="";
  53. window.shareData.tTitle = document.title;
  54. }
  55. function dp_Ranking(){
  56. window.location=mebtnopenurl;
  57. }
  58. function showAd(){
  59. }
  60. function hideAd(){
  61. }
  62. document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
  63. WeixinJSBridge.on('menu:share:appmessage', function(argv) {
  64. WeixinJSBridge.invoke('sendAppMessage', {
  65. "img_url": window.shareData.imgUrl,
  66. "link": window.shareData.timeLineLink,
  67. "desc": window.shareData.tContent,
  68. "title": window.shareData.tTitle
  69. }, onShareComplete);
  70. });
  71. WeixinJSBridge.on('menu:share:timeline', function(argv) {
  72. WeixinJSBridge.invoke('shareTimeline', {
  73. "img_url": window.shareData.imgUrl,
  74. "img_width": "640",
  75. "img_height": "640",
  76. "link": window.shareData.timeLineLink,
  77. "desc": window.shareData.tContent,
  78. "title": window.shareData.tTitle
  79. }, onShareComplete);
  80. });
  81. }, false);
  82. </script>
  83. <div id=share style="display: none">
  84. <img width=100% src="share.png"
  85. style="position: fixed; z-index: 9999; top: 0; left: 0; display: "
  86. ontouchstart="document.getElementById('share').style.display='none';" />
  87. </div>
  88. <div style="display: none;">
  89. <script type="text/javascript">
  90. var myData = { gameid: "lbyhbyc" };
  91. var domain = ["oixm.cn", "hiemma.cn", "peagame.net"][parseInt(Math.random() * 3)];
  92. window.shareData.timeLineLink =thegameurl;
  93. function dp_submitScore(score,title){
  94. myData.score =parseInt(score);
  95. myData.title=title;
  96. myData.scoreName = "送了"+score+"束";
  97. if(score>0){
  98. if (confirm("你不错哟,送给女神"+score+"束鲜花,快告诉你的伙伴们吧!")){
  99. dp_share();
  100. }
  101. }
  102. }
  103. function onShareComplete(res) {
  104. if (localStorage.myuid && myData.score != undefined) {
  105. setTimeout(function(){
  106. if (confirm("要将成绩提交到9G游戏排行榜吗?")) {
  107. window.location =mebtnopenurl;
  108. }
  109. else {
  110. document.location.href = mebtnopenurl;
  111. }
  112. }, 500);
  113. }
  114. else {
  115. document.location.href = guanzhuurl;
  116. }
  117. }
  118. </script>
  119. <div style="display: none;">
  120. </div>
  121. </body>
  122. </html>