index.html 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>粉蓝男女</title>
  6. <link rel="icon" type="image/GIF" href="res/favicon.ico"/>
  7. <meta name="viewport" content="width=321,user-scalable=no" />
  8. <meta name="apple-mobile-web-app-capable" content="yes"/>
  9. <meta name="full-screen" content="yes"/>
  10. <meta name="screen-orientation" content="portrait"/>
  11. <meta name="x5-fullscreen" content="true"/>
  12. <meta name="360-fullscreen" content="true"/>
  13. <style>
  14. body, canvas, div {
  15. -moz-user-select: none;
  16. -webkit-user-select: none;
  17. -ms-user-select: none;
  18. -khtml-user-select: none;
  19. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  20. }
  21. </style>
  22. <script src="game.min.js"></script>
  23. </head>
  24. <body style="padding:0; margin: 0; background: #000;">
  25. <canvas id="gameCanvas" style=" height: 100%;width: 100%;margin: 0;padding: 0;display: block;"></canvas>
  26. <script language=javascript>
  27. var mebtnopenurl = 'http://mp.weixin.qq.com/s?__biz=MzI4MjA2MjE0MQ==&mid=246005295&idx=1&sn=490f8141976d607ba079d48f52a3fcd7#rd';
  28. window.shareData = {
  29. "imgUrl": "http://game.ikongzhong.cn/icon/flnu.png",
  30. "timeLineLink": "http://game.ikongzhong.cn/games/flnu/index.html",
  31. "tTitle": "粉蓝男女-空中传媒",
  32. "tContent": "粉蓝男女-空中传媒"
  33. };
  34. function goHome(){
  35. window.location=mebtnopenurl;
  36. }
  37. function clickMore(){
  38. if((window.location+"").indexOf("f=zf",1)>0){
  39. window.location = "http://game.ikongzhong.cn/games/flnu/index.html";
  40. }
  41. else{
  42. goHome();
  43. }
  44. }
  45. function dp_share(){
  46. document.getElementById("share").style.display="";
  47. }
  48. function dp_Ranking(){
  49. window.location=mebtnopenurl;
  50. }
  51. function showAd(){
  52. }
  53. function hideAd(){
  54. }
  55. document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
  56. WeixinJSBridge.on('menu:share:appmessage', function(argv) {
  57. WeixinJSBridge.invoke('sendAppMessage', {
  58. "img_url": window.shareData.imgUrl,
  59. "link": window.shareData.timeLineLink,
  60. "desc": window.shareData.tContent,
  61. "title": window.shareData.tTitle
  62. }, onShareComplete);
  63. });
  64. WeixinJSBridge.on('menu:share:timeline', function(argv) {
  65. WeixinJSBridge.invoke('shareTimeline', {
  66. "img_url": window.shareData.imgUrl,
  67. "img_width": "640",
  68. "img_height": "640",
  69. "link": window.shareData.timeLineLink,
  70. "desc": window.shareData.tContent,
  71. "title": window.shareData.tTitle
  72. }, onShareComplete);
  73. });
  74. }, false);
  75. </script>
  76. <div id=share style="display: none">
  77. <img width="100%" src="./share.png"
  78. style="position: fixed; z-index: 9999; top: 0; left: 0; display: "
  79. ontouchstart="document.getElementById('share').style.display='none';" />
  80. </div>
  81. <script type="text/javascript">
  82. var myData = { gameid: "flnu" };
  83. // var domain = ["oixm.cn", "hiemma.cn", "peagame.net"][parseInt(Math.random() * 3)];
  84. window.shareData.timeLineLink = "http://game.ikongzhong.cn/games/flnu/index.html";
  85. function dp_submitScore(score){
  86. myData.score = parseInt(score);
  87. myData.scoreName ="桃花运指数"+score+"分";
  88. document.title = window.shareData.tTitle ="我的桃花运指数是"+score+"分,小伙伴们快来试试你们的花桃运吧!";
  89. }
  90. function onShareComplete(res) {
  91. if (localStorage.myuid && myData.score != undefined) {
  92. setTimeout(function(){
  93. if (confirm("要将成绩提交到9G游戏排行榜吗?")) {
  94. window.location = "http://game.ikongzhong.cn/games/flnu/index.html";
  95. }
  96. else {
  97. document.location.href = mebtnopenurl;
  98. }
  99. }, 500);
  100. }
  101. else {
  102. document.location.href = mebtnopenurl;
  103. }
  104. }
  105. </script>
  106. <div style="display: none;">
  107. <script type="text/javascript" src="http://tajs.qq.com/stats?sId=36313548" charset="UTF-8"></script>
  108. </div>
  109. <script type="text/javascript" src="./js/game9g.utils.js"></script>
  110. </body>
  111. </html>